README.md in oj-2.14.6 vs README.md in oj-2.15.0
- old
+ new
@@ -155,14 +155,29 @@
true (allow).
* `:quirks_mode` [Boolean] Allow single JSON values instead of
documents, default is true (allow).
+* `:nan` [:null|:huge|:word|:raise|:auto] How to dump Infinity, -Infinity, and
+ NaN in null, strict, and compat mode. :null places a null, :huge places a huge
+ number, :word places Infinity or NaN, :raise raises and exception, :auto uses
+ default for each mode which are :raise for :strict, :null for :null, and :word
+ for :compat. Default is :auto.
+
## Releases
-**Release 2.14.6**
+** Release 2.15.0**
- - Changed JSON::ParserError to inherit from JSON::JSONError which inherits from StandardError.
+ - Fixed bug where encoded strings could be GCed.
+
+ - :nan option added for dumping Infinity, -Infinity, and NaN. This is an
+ edition to the API. The default value for the :non option is :auto which uses
+ the previous NaN handling on dumping of non-object modes.
+
+**Release 2.14.7**
+
+ - Fixed bug where a comment before another JSON element caused an
+ error. Comments are not part of the spec but this keep support consistent.
[Older release notes](http://www.ohler.com/dev/oj_misc/release_notes.html).
## Compatibility