Wednesday, March 25, 2009

blogger version 0.5.1 has been released!

The Blogger module provides services related to Blogger, and only blogger. The GData gem is great, but it provides a much lower-level interface to Google's Blogger API. With the Blogger gem, you have full access to the Blogger API, with easy to use classes, and it integrates with 6 different markup/markdown gems! What's more, you won't have to muck around with XML.

Sure, XML is easy. But why waste time messing around with it? With just 3 or 4 lines of Blogger.gem code, you'll be able to take a markdown-formatted string and post it as a blog post, with categories, and comments.

You can also search through all of your comments, old posts, and pretty much anything you can do at the blogger.com website, you can do with this gem.

Changes:

0.5.1 / 2009-03-25

  • Fixed a bug with Blogger::Account#post when userid is not provided
  • Fixed typo in the 3-parameter constructor of Blogger::Account

2 comments:

  1. Hi,

    Maybe I am doing something wrong, but here is what I am getting on my macbook with irb and ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0], blogger (0.5.1) and atom-tools (2.0.1) :


    >> account.authenticated?
    => true

    >> >> account.blog_for_id( 28124436 )
    NoMethodError: undefined method `local_name' for nil:NilClass
    from /Library/Ruby/Gems/1.8/gems/atom-tools-2.0.1/lib/atom/element.rb:418:in `parse'
    from /Library/Ruby/Gems/1.8/gems/blogger-0.5.1/lib/blogger.rb:140:in `retrieve_blogs'
    from /Library/Ruby/Gems/1.8/gems/blogger-0.5.1/lib/blogger.rb:114:in `blogs'
    from /Library/Ruby/Gems/1.8/gems/blogger-0.5.1/lib/blogger.rb:119:in `blog_for_id'
    from (irb):7


    >> account.retrieve_blogs
    NoMethodError: undefined method `local_name' for nil:NilClass
    from /Library/Ruby/Gems/1.8/gems/atom-tools-2.0.1/lib/atom/element.rb:418:in `parse'
    from /Library/Ruby/Gems/1.8/gems/blogger-0.5.1/lib/blogger.rb:140:in `retrieve_blogs'
    from (irb):5

    ReplyDelete
  2. It appears to be happening because the user_id attribute of the account is nil. When I manually set that attribute, I can suddenly retrieve the list of blogs, etc.

    ReplyDelete