lyang / braintree-rails

MIT License
65 stars 22 forks source link

cannot load such file -- active_support/core_ext/hash/deep_dup (LoadError) #11

Closed MirkoCindric closed 11 years ago

MirkoCindric commented 11 years ago

Using ruby 2.0.0 and rails 4.0.0 i get the following error

/Users/Mirko/.rvm/gems/ruby-2.0.0-p247/gems/braintree-rails-1.2.0/lib/braintree-rails.rb:5:in require': cannot load such file -- active_support/core_ext/hash/deep_dup (LoadError) from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247/gems/braintree-rails-1.2.0/lib/braintree-rails.rb:5:in<top (required)>' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in require' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:inblock (2 levels) in require' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in each' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:inblock in require' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in each' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:inrequire' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in require' from /Users/Mirko/projects/Sentia/doccy-app/config/application.rb:7:in<top (required)>' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:76:in require' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:76:inblock in <top (required)>' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in tap' from /Users/Mirko/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.0/lib/rails/commands.rb:73:in<top (required)>' from script/rails:6:in require' from script/rails:6:in

'

lyang commented 11 years ago

Hi @MirkoCindric , thanks for the feedback.

This is caused by Rails 4.0 moved active_support/core_ext/hash/deep_dup to active_support/core_ext/object/deep_dup.

I've pushed out the fix to make it compatible with Rails 4.

Let me know if you encounter other issues in Rails 4.

Thanks

MirkoCindric commented 11 years ago

No probs l keep meaning to add the subscription features and will get around to it soon hopefully

lyang commented 11 years ago

I've added Plan/Subscription as well as other features to this gem, you can take a look at https://github.com/lyang/braintree-rails/wiki

Let me know what's missing.

Thanks