nsanta / fbgraph

Facebook Open Graph API in Ruby
MIT License
324 stars 40 forks source link

undefined method `__request__' for class `Net::HTTP' #71

Closed jonlaing closed 10 years ago

jonlaing commented 10 years ago

Recently updated my gems while merging two branches together and got this error:

$ rake test --trace
rake aborted!
undefined method `__request__' for class `Net::HTTP'
/Users/******/.rvm/gems/ruby-1.9.3-p392@ftue_refactor/gems/fbgraph-1.10.0/lib/fbgraph/client.rb:75:in `<class:HTTP>'

I'm running ruby-1.9.3-p392 and rails 3.2.18 on Mac OSX 10.8.5. The code that's being pointed out is the following:

# :nodoc: undo the clusterfuck that rest-client has done
module Net
  class HTTP
    undef request
    alias request __request__  # <=====
  end
end

Did __request__ exist in an old version of Net::HTTP or a newer? or something? Any ideas would be greatly appreciated. Thanks!

dmorrow commented 10 years ago

jonlaing - did you have any success getting past this issue?

nsanta commented 10 years ago

@jonlaing @dmorrow This issue has been fixed. A new gem has been release by @pwnall (Thank you Victor)

dmorrow commented 10 years ago

Thanks @nsanta & @pwnall - much appreciated!