Hi there,

I managed to get this working by making a simple change to gmail.rb in 
the gem.

Line 28 changed from:

url = 
page.search('//meta').first.attributes['content'].split("URL=").last 
rescue nil

To:

url = 
page.search('//meta').first.attributes['content'].split("url=").last.gsub("'","") 
rescue nil

A regex guru could probably think of a better way of doing this.

Hope that helps someone.

- matt.

Matt Stone1 wrote:
> Hi Dave,
> 
> This looks like a really, really useful library.
> 
> I've just given it ago & while the gem install successfully, when I ran 
> my simple code I received this error message.
> 
> /usr/lib/ruby/1.8/uri/common.rb:432:in `split': bad URI(is not URI?): 
> 0;%20url='http://www.google.co.uk/accounts/SetSID?ssdc=1&sidt=6QlI3RcBAAA..[snip]' 
> (URI::InvalidURIError)
> 
> I'm running Suse linux, 10.2 & ruby 1.86
> 
> My code is pretty simple.
> 
> require 'rubygems'
> require 'blackbook'
> 
> contacts = Blackbook.get :username => my_email , :password => 
> my_password
> contacts.each { |c| puts "#{c.name}: #{c.email}" }
> 
> Is there something else that I should be doing or need to install?
> 
> rgds,
> - matt.
> 
> Dave Myron wrote:
>> blackbook version 1.0.0 has been released!
>> 

-- 
Posted via http://www.ruby-forum.com/.