Closed gummybears closed 11 years ago
Hum, I couldn't reproduce the error on my Mac even with RestClient 1.6.7.
Could you try this test script on your machine? https://gist.github.com/3601298
At this line, you should get StringIO instead of Hash.
/home/gummybears/bundler/common/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/payload.rb:109:in
close': undefined method closed?' for #<Hash:0xa172b7c> (NoMethodError)
If you can tell me which gems are recently updated in your project, it might help me too.
After much digging it seems a new gem hashery was being bundled by the gem pdf-reader. Don't know what it is supposed to do, but by reverting my Gemfile back to a previous commit and running all my rspec tests, the error is gone.
Thanks for your help
When running the example code (see https://github.com/nov/paypal-express/wiki/Recurring-Payment) I suddenly getting errors (since 30 augustus 2012) when making a call to
payment_request = Paypal::Payment::Request.new( :currency_code => :EUR, :billing_type => :RecurringPayments, :billing_agreement_description => "My billing agreement" )
/home/gummybears/bundler/common/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/payload.rb:109:in'
close': undefined method
closed?' for #Hash:0xa172b7c (NoMethodError) from /home/gummybears/bundler/common/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:66:inensure in execute' from /home/gummybears/bundler/common/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:66:in
execute' from /home/gummybears/bundler/common/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:inexecute' from /home/gummybears/bundler/common/ruby/1.9.1/gems/restclient_with_cert-0.0.8/lib/restclient_with_cert.rb:17:in
post' from /home/gummybears/bundler/common/ruby/1.9.1/gems/paypal-express-0.5.0/lib/paypal/nvp/request.rb:43:inpost' from /home/gummybears/bundler/common/ruby/1.9.1/gems/paypal-express-0.5.0/lib/paypal/nvp/request.rb:36:in
block in request' from /home/gummybears/bundler/common/ruby/1.9.1/gems/paypal-express-0.5.0/lib/paypal/nvp/request.rb:47:inhandle_response' from /home/gummybears/bundler/common/ruby/1.9.1/gems/paypal-express-0.5.0/lib/paypal/nvp/request.rb:35:in
request' from /home/gummybears/bundler/common/ruby/1.9.1/gems/paypal-express-0.5.0/lib/paypal/express/request.rb:28:insetup' from recurring.rb:30:in
$ ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
$ bundle list Gems included by the bundle: