ronin-rb / ronin-web

ronin-web is a collection of useful web helper methods and commands.
https://ronin-rb.dev
GNU General Public License v3.0
40 stars 10 forks source link

ruby 1.92 support ? #2

Closed vpereira closed 13 years ago

vpereira commented 13 years ago
ruby-1.9.2-p136 :002 > require 'ronin/web'
TypeError: superclass mismatch for class Text
    from /home/victor.pereira/.rvm/gems/ruby-1.9.2-p136/gems/ronin-web-0.2.1/lib/ronin/web/extensions/nokogiri/xml/text.rb:5:in `<module:XML>'
    from /home/victor.pereira/.rvm/gems/ruby-1.9.2-p136/gems/ronin-web-0.2.1/lib/ronin/web/extensions/nokogiri/xml/text.rb:4:in `<module:Nokogiri>'
    from /home/victor.pereira/.rvm/gems/ruby-1.9.2-p136/gems/ronin-web-0.2.1/lib/ronin/web/extensions/nokogiri/xml/text.rb:3:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /home/victor.pereira/.rvm/gems/ruby-1.9.2-p136/gems/ronin-web-0.2.1/lib/ronin/web/extensions/nokogiri/xml.rb:2:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /home/victor.pereira/.rvm/gems/ruby-1.9.2-p136/gems/ronin-web-0.2.1/lib/ronin/web/extensions/nokogiri.rb:1:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /home/victor.pereira/.rvm/gems/ruby-1.9.2-p136/gems/ronin-web-0.2.1/lib/ronin/web/extensions.rb:22:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /home/victor.pereira/.rvm/gems/ruby-1.9.2-p136/gems/ronin-web-0.2.1/lib/ronin/web.rb:22:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:33:in `require'
    from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from (irb):2
    from /home/victor.pereira/.rvm/rubies/ruby-1.9.2-p136/bin/irb:16:in `<main>'ruby-1.9.2-p136 :003 > 
postmodern commented 13 years ago

This is fixed in ronin-web edge. At some point nokogiri switch the superclass of Nokogiri::XML::Text from Node to CharacterData. I'll be releasing new versions of ronin-web, ronin-scanners, ronin-exploits soon.