Rakefiles: extend `Integer` class rather than `Fixnum` class
authorJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 21 Sep 2018 23:19:25 +0100
changeset 256 a648d3479a60
parent 255 6d6880749905
child 257 c6a3ceed613c
Rakefiles: extend `Integer` class rather than `Fixnum` class ...since in newer Ruby versions, `Fixnum` has been deprecated. In oldre versions, `Fixnum` inherits from `Integer` so this change is backward-compatible. This fixes annoying warning `dsl.rb:21: warning: constant ::Fixnum is deprecated`
rakelib/dsl.rb
--- a/rakelib/dsl.rb	Fri Sep 21 23:14:41 2018 +0100
+++ b/rakelib/dsl.rb	Fri Sep 21 23:19:25 2018 +0100
@@ -18,7 +18,7 @@
 end
 
 
-class Fixnum
+class Integer
   def self.new_property_value(*args, &block)
     # TODO: add check
     args[0]