Hello - we are very excited to start using irbtools on our team, but we're encountering a problem.
We are using irbtools 2.1.0 and Nokogiri 1.8.1, ruby 2.2.5 and Rails 4.2.7.1.
We are getting an error when building XML documents with Nokogiri::XML::Builder, when irbtools is installed.
This is our code:
builder = Nokogiri::XML::Builder.new do |xml|
xml.send(:version, 12345)
end
It raises this error:
ArgumentError: wrong number of arguments (1 for 0)
from /Volumes/OSXHOME/Users/michael/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/irbtools-2.1.0/lib/irbtools/libraries.rb:100:in `version'
It appears that what is actually happening is that Nokogiri is somehow calling the version method defined inlib/irbtools/libraries.rb, around line 100:
Irbtools.add_library 'ruby_version', :autoload => :RubyVersion do
def version() RubyVersion end unless defined? version
end
Hello - we are very excited to start using irbtools on our team, but we're encountering a problem.
We are using irbtools 2.1.0 and Nokogiri 1.8.1, ruby 2.2.5 and Rails 4.2.7.1.
We are getting an error when building XML documents with Nokogiri::XML::Builder, when irbtools is installed.
This is our code:
It raises this error:
It appears that what is actually happening is that Nokogiri is somehow calling the
version
method defined inlib/irbtools/libraries.rb
, around line 100:The same is true for the following:
All of these call the methods defined in
irbtools/libraries.rb