Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rapuncel breaks sequel #2

Closed
jfontan opened this issue Jul 14, 2011 · 6 comments
Closed

rapuncel breaks sequel #2

jfontan opened this issue Jul 14, 2011 · 6 comments

Comments

@jfontan
Copy link

jfontan commented Jul 14, 2011

When rapuncel library is loaded before sequel it crashes:

bug.rb:

require 'rubygems'
require 'rapuncel'
require 'sequel'

ruby 1.9.2:

/Users/jfontan/.rvm/gems/ruby-1.9.2-p180/gems/rapuncel-0.0.4/lib/rapuncel/proxy.rb:33: warning: redefining `object_id' may cause serious problems
/Users/jfontan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': superclass mismatch for class BigDecimal (TypeError)
    from /Users/jfontan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/jfontan/.rvm/gems/ruby-1.9.2-p180/gems/sequel-3.25.0/lib/sequel/core.rb:1:in `block in <top (required)>'
    from /Users/jfontan/.rvm/gems/ruby-1.9.2-p180/gems/sequel-3.25.0/lib/sequel/core.rb:1:in `each'
    from /Users/jfontan/.rvm/gems/ruby-1.9.2-p180/gems/sequel-3.25.0/lib/sequel/core.rb:1:in `<top (required)>'
    from /Users/jfontan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/jfontan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/jfontan/.rvm/gems/ruby-1.9.2-p180/gems/sequel-3.25.0/lib/sequel/model.rb:1:in `<top (required)>'
    from /Users/jfontan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/jfontan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /Users/jfontan/.rvm/gems/ruby-1.9.2-p180/gems/sequel-3.25.0/lib/sequel.rb:1:in `<top (required)>'
    from /Users/jfontan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `require'
    from /Users/jfontan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `rescue in require'
    from /Users/jfontan/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from bug.rb:3:in `<main>'

ruby 1.8.7:

ruby ~/tmp/borrar/ruby/rapuncel/bug.rb 
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0/bigdecimal.bundle: BigDecimal is already defined (NameError)
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.22.0/lib/sequel/core.rb:1
    from /Library/Ruby/Gems/1.8/gems/sequel-3.22.0/lib/sequel/core.rb:1:in `each'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.22.0/lib/sequel/core.rb:1
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.22.0/lib/sequel/model.rb:1
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
    from /Library/Ruby/Gems/1.8/gems/sequel-3.22.0/lib/sequel.rb:1
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
    from /Users/jfontan/tmp/borrar/ruby/rapuncel/bug.rb:3
@cice
Copy link
Contributor

cice commented Jul 14, 2011

looking into it

@cice
Copy link
Contributor

cice commented Jul 14, 2011

hey,
first of all, thanks for reporting, seems i fixed this bug a while ago with refactoring for version 0.0.5, i just released a RC for 0.0.5, some feedback would be awesome (refactored quite a bit, and I'm a bit anxious it may break other apps, it's well tested though!)

here's the RC1
https://rubygems.org/gems/rapuncel/versions/0.0.5.RC1

use

gem install rapuncel --pre

to install

@jfontan
Copy link
Author

jfontan commented Jul 15, 2011

Thanks for the prompt response. I'll test the package with our software as soon as I can and update the ticket.

@jfontan
Copy link
Author

jfontan commented Jul 24, 2011

Finally I had time to test. That new version is working without trouble for us (http://opennebula.org | https://github.com/OpenNebula/one). Do you have idea when the 0.0.5 version is going to be ready. I am trying to stop using xmlrpc + xmlparser and rapuncel seems the way to go.

Thanks for the changes!

@cice
Copy link
Contributor

cice commented Jul 25, 2011

hi,
could you please test RC2, I'm using 0.0.5 pretty extensively atm, and it seems to be running smoothly. If you don't run into any bugs, it should be quite ready. Thanks for your feedback so far, please don't hesitate to ask for additional features etc. I really like to continue to improve rapuncel itself, as well as its documentation.

@cice
Copy link
Contributor

cice commented Dec 30, 2011

long resolved

@cice cice closed this as completed Dec 30, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants