summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.rdoc1
-rw-r--r--lib/plist/generator.rb4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc
index b9f5bbd..63adfd7 100644
--- a/CHANGELOG.rdoc
+++ b/CHANGELOG.rdoc
@@ -5,6 +5,7 @@
https://github.com/patsplat/plist/compare/dece870...HEAD
* Your contribution here!
+* Fix Fixnum, Bignum deprecations in Ruby 2.4
=== 3.2.0 (2016-01-28)
diff --git a/lib/plist/generator.rb b/lib/plist/generator.rb
index 3b84c30..e653675 100644
--- a/lib/plist/generator.rb
+++ b/lib/plist/generator.rb
@@ -94,7 +94,7 @@ module Plist::Emit
output << tag('date', element.utc.strftime('%Y-%m-%dT%H:%M:%SZ'))
when Date # also catches DateTime
output << tag('date', element.strftime('%Y-%m-%dT%H:%M:%SZ'))
- when String, Symbol, Fixnum, Bignum, Integer, Float
+ when String, Symbol, Integer, Float
output << tag(element_type(element), CGI::escapeHTML(element.to_s))
when IO, StringIO
element.rewind
@@ -159,7 +159,7 @@ module Plist::Emit
when String, Symbol
'string'
- when Fixnum, Bignum, Integer
+ when Integer
'integer'
when Float