oga/lib/oga
Po Shan Cheah c75ca96d22 Ruby 2.4 Fixnum deprecation
In Ruby 2.4, Fixnum is deprecated and the following produces a warning:

$ irb
irb(main):001:0> puts RUBY_VERSION
2.4.0
=> nil
irb(main):002:0> require 'oga'
=> true
irb(main):003:0> Oga.parse_xml('<people><person>Alice</person></people>').css(':nth-child(1)')
/Users/pcheah/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/oga-2.7/lib/oga/xpath/conversion.rb:79: warning: constant ::Fixnum is deprecated
=> NodeSet(Element(name: "people" children: NodeSet(Element(name: "person" children: NodeSet(Text("Alice"))))), Element(name: "person" children: NodeSet(Text("Alice"))))
irb(main):004:0>
$

So oga/xpath/conversion.rb needs to test for Integer instead of Fixnum.

Also, it appears that json 1.8.3 no longer builds under Ruby 2.4, so the gemfile has to be upgraded to json 2.0.
2017-01-03 21:38:04 +01:00
..
css Revamp CSS parser for better axis support 2015-09-04 16:06:20 +02:00
html Removed start/end comments of YARD blocks 2015-09-01 19:59:52 +02:00
ruby Removed start/end comments of YARD blocks 2015-09-01 19:59:52 +02:00
xml Generating closing element & Doctype XML 2016-09-27 02:10:16 +02:00
xpath Ruby 2.4 Fixnum deprecation 2017-01-03 21:38:04 +01:00
blacklist.rb Removed start/end comments of YARD blocks 2015-09-01 19:59:52 +02:00
entity_decoder.rb Removed start/end comments of YARD blocks 2015-09-01 19:59:52 +02:00
lru.rb Removed start/end comments of YARD blocks 2015-09-01 19:59:52 +02:00
oga.rb Removed start/end comments of YARD blocks 2015-09-01 19:59:52 +02:00
version.rb Release 2.7 2016-09-27 11:54:27 +02:00
whitelist.rb Removed start/end comments of YARD blocks 2015-09-01 19:59:52 +02:00