Skip to content

Instantly share code, notes, and snippets.

@lwe
Created December 20, 2011 13:50
Show Gist options
  • Select an option

  • Save lwe/1501622 to your computer and use it in GitHub Desktop.

Select an option

Save lwe/1501622 to your computer and use it in GitHub Desktop.

Revisions

  1. lwe revised this gist Dec 20, 2011. 1 changed file with 21 additions and 2 deletions.
    23 changes: 21 additions & 2 deletions results.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,16 @@
    ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
    -------------------------------------------------------------

    > ruby /tmp/test.rb
    > ruby /tmp/fail.rb
    Platform: universal-darwin11.0
    Nokogiri: 1.5.0
    <?xml version="1.0"?>
    <bar>
    <some>value</some>
    <other>1234</other>
    </bar>

    > ruby /tmp/ok.rb
    Platform: universal-darwin11.0
    Nokogiri: 1.5.0
    <?xml version="1.0"?>
    @@ -13,7 +22,17 @@ ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
    jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
    --------------------------------------------------------------------------------------------------------------------

    > jruby /tmp/test.rb
    > jruby /tmp/fail.rb
    Platform: java
    Nokogiri: 1.5.0
    <?xml version="1.0"?>

    > jruby /tmp/ok.rb
    Platform: java
    Nokogiri: 1.5.0
    <?xml version="1.0"?>
    <bar>
    <some>value</some>
    <other>1234</other>
    </bar>

  2. lwe revised this gist Dec 20, 2011. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions ok.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    require 'rubygems'
    require 'nokogiri'

    puts "Platform: #{RUBY_PLATFORM}"
    puts "Nokogiri: #{Nokogiri::VERSION}"

    xml = <<XML
    <bar>
    <some>value</some>
    <other>1234</other>
    </bar>
    XML

    doc = Nokogiri::XML(xml)
    puts doc.to_s
  3. lwe created this gist Dec 20, 2011.
    15 changes: 15 additions & 0 deletions fail.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    require 'rubygems'
    require 'nokogiri'

    puts "Platform: #{RUBY_PLATFORM}"
    puts "Nokogiri: #{Nokogiri::VERSION}"

    xml = <<XML
    <foo:bar>
    <some>value</some>
    <other>1234</other>
    </foo:bar>
    XML

    doc = Nokogiri::XML(xml)
    puts doc.to_s
    19 changes: 19 additions & 0 deletions results.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]
    -------------------------------------------------------------

    > ruby /tmp/test.rb
    Platform: universal-darwin11.0
    Nokogiri: 1.5.0
    <?xml version="1.0"?>
    <bar>
    <some>value</some>
    <other>1234</other>
    </bar>

    jruby 1.6.5 (ruby-1.8.7-p330) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]
    --------------------------------------------------------------------------------------------------------------------

    > jruby /tmp/test.rb
    Platform: java
    Nokogiri: 1.5.0
    <?xml version="1.0"?>