Giter Club home page Giter Club logo

rapuncel's Issues

rapuncel breaks sequel

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

Net::HTTP can't find host, but it's there

Installed version 0.0.3 and I can't seem to make a call to my XMLRPC server. I tried doing proxy = client.proxy, but that fails simliarly; I tried without the :path and get the same as well:

ruby-1.9.2-p180 :015 > client = Rapuncel::Client.new :host => "http://testlink.pelco.org", :path => '/lib/api/xmlrpc.php', :port => 80
 => #<Rapuncel::Client:0x00000100af3e70 @connection=#<Rapuncel::Connection:0x00000100af3c68 @host="http://testlink.pelco.org", @port=80, @path="lib/api/xmlrpc.php", @headers={}>, raise_on_faultfalse, raise_on_errorfalse 
ruby-1.9.2-p180 :016 > client.call "tl.about"
SocketError: getaddrinfo: nodename nor servname provided, or not known
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:644:in `initialize'
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:644:in `open'
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:644:in `block in connect'
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:44:in `timeout'
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/timeout.rb:87:in `timeout'
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:644:in `connect'
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:626:in `start'
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:1168:in `request'
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http.rb:978:in `post'
    from /Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rapuncel-0.0.3/lib/rapuncel/adapters/net_http_adapter.rb:30:in `send_method_call'
    from /Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rapuncel-0.0.3/lib/rapuncel/client.rb:51:in `execute'
    from /Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rapuncel-0.0.3/lib/rapuncel/client.rb:35:in `call'
    from (irb):16
    from /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `<main>'

XML dump for call

It'd be great if you could somehow dump the XML generated for a call. Not a biggie, just a nice debugging feature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.