hanklords/flickraw

Use of deprecated Fixnum

mtn opened this issue · 1 comments

mtn commented

Feature #12005 unified Fixnum and Bignum into Integer. Fixnum is used in response.rb at line 40, leading to the following error:

/usr/local/lib/ruby/gems/2.4.0/gems/flickraw-0.9.9/lib/flickraw/response.rb:40: warning: constant ::Fixnum is deprecated

I think the solution is just to change def [](k); k.is_a?(Fixnum) ? @a[k] : super(k) end to def [](k); k.is_a?(Integer) ? @a[k] : super(k) end

mtn commented

Handled by #97.