Skip to content

Commit

Permalink
Merge pull request #61 from jhawthorn/ruby_2_4_deprecation_warnings
Browse files Browse the repository at this point in the history
Avoid Fixnum deprecation warnings in ruby 2.4
  • Loading branch information
bwillis committed Mar 16, 2017
2 parents 7c1d9d2 + 8aed72c commit ec42701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/versioncake/strategies/extraction_strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class ExtractionStrategy

def extract(request)
version = execute(request)
if version.is_a?(Fixnum)
if version.is_a?(Integer)
version
elsif version.is_a?(String) && /[0-9]+/.match(version)
version.to_i
Expand Down

0 comments on commit ec42701

Please sign in to comment.