Skip to content

Commit

Permalink
Merge pull request #1051 from treydock/fixnum
Browse files Browse the repository at this point in the history
Replace deprecated Fixnum with Integer
  • Loading branch information
ghoneycutt authored Jan 19, 2019
2 parents d22db0e + a3a516e commit e3c1de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/parser/functions/sensu_sorted_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def validate_keys(obj)

def sorted_generate(obj)
case obj
when Fixnum, Float, TrueClass, FalseClass, NilClass
when Integer, Float, TrueClass, FalseClass, NilClass
return obj.to_json
when String
# Convert quoted integers (string) to int
Expand Down Expand Up @@ -71,7 +71,7 @@ def sorted_pretty_generate(obj, indent_len=4)

case obj

when Fixnum, Float, TrueClass, FalseClass, NilClass
when Integer, Float, TrueClass, FalseClass, NilClass
return obj.to_json

when String
Expand Down

0 comments on commit e3c1de1

Please sign in to comment.