rubymotion-community / sugarcube

Some sugar for your cocoa. RubyMotion helpers.
Other
422 stars 66 forks source link

Upgraded to latest 2.1.4 but getting uninitialized constant SugarCube #159

Closed VGraupera closed 10 years ago

VGraupera commented 10 years ago

I was using 1.6.1 before without issue. sugarcube used to work, but now I get this error. Just did a bundle update and got 2.1.4.

Not sure what changed in 2.1.x in how you require it.

Thanks,

Vidal.

NameError: uninitialized constant SugarCube
/Users/vidalgraupera/.rvm/gems/ruby-2.1.1/gems/sugarcube-2.1.4/lib/sugarcube-classic.rb:20:in `<top (required)>'
/Users/vidalgraupera/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require'
/Users/vidalgraupera/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/Users/vidalgraupera/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each'
/Users/vidalgraupera/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require'
/Users/vidalgraupera/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each'
/Users/vidalgraupera/.rvm/gems/ruby-2.1.1/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `requ
colinta commented 10 years ago

Thanks for the heads up! I see what's wrong, I'll push out 2.1.5 in a moment.

trestrantham commented 10 years ago

Literally just ran into this issue 1 minute ago. Check here, bundle update, and now all is fixed. :+1:

colinta commented 10 years ago

Nice! Wow, you must have updated moments after I pushed out 2.1.5.

colinta commented 10 years ago

@VGraupera Thanks for including the trace. It's amazing how many people don't do that. :frowning: Made it so easy to find & fix the bug. :+1:

VGraupera commented 10 years ago

Thanks guys for the quick turn around and replies. @colinta you're welcome. thank you