fcoury / octopi

A Ruby interface to GitHub API v2
http://hasmany.info/2009/4/18/ruby-interface-to-github-api
MIT License
216 stars 47 forks source link

Bug in Ruby 1.9.2 #49

Closed stevenheidel closed 13 years ago

stevenheidel commented 13 years ago

The same code runs fine in Ruby 1.8.7, but in 1.9.2 I get:

/home/steven/.rvm/gems/ruby-1.9.2-p0/gems/octopi-0.2.8/lib/octopi/api.rb:198:in `submit': undefined method `first' for "application/x-yaml; charset=utf-8":String (NoMethodError)
from /home/steven/.rvm/gems/ruby-1.9.2-p0/gems/octopi-0.2.8/lib/octopi/api.rb:118:in `get'
from /home/steven/.rvm/gems/ruby-1.9.2-p0/gems/octopi-0.2.8/lib/octopi/api.rb:100:in `find'
from /home/steven/.rvm/gems/ruby-1.9.2-p0/gems/octopi-0.2.8/lib/octopi/resource.rb:41:in `find'
from /home/steven/.rvm/gems/ruby-1.9.2-p0/gems/octopi-0.2.8/lib/octopi/repository.rb:82:in `find'

wilkerlucio commented 13 years ago

have same problem here

radar commented 13 years ago

I think this is fixed with the latest version. Please try that.

stevenheidel commented 13 years ago

Works for me!

radar commented 13 years ago

Thanks for confirming.