oga/lib/oga/xpath
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
..
compiler.rb XPath support for nested pipe operators 2016-02-23 22:24:07 +01:00
context.rb Evaluate compiled blocks in an isolated Binding 2015-09-07 14:02:31 +02:00
conversion.rb Ruby 2.4 Fixnum deprecation 2017-01-03 21:38:04 +01:00
lexer.rl Unicode support for CSS/XPath 2015-09-03 11:21:45 +02:00
parser.rll Removed start/end comments of YARD blocks 2015-09-01 19:59:52 +02:00