mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 18:43:59 +02:00

002ac2771c...e09ffc0d7d
* Remove Rubinius exception since transcoding should be working now.
* Fix https://github.com/flori/json/issues/162 reported by Marc-Andre
Lafortune <github_rocks@marc-andre.ca>. Thanks!
* Applied patches by Yui NARUSE <naruse@airemix.jp> to suppress
warning with -Wchar-subscripts and better validate UTF-8 strings.
* Applied patch by ginriki@github to remove unnecessary if.
* Add load/dump interface to JSON::GenericObject to make
serialize :some_attribute, JSON::GenericObject
work in Rails active models for convenient
SomeModel#some_attribute.foo.bar access to serialised JSON data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8 lines
271 B
Ruby
8 lines
271 B
Ruby
module JSON
|
|
# JSON version
|
|
VERSION = '1.8.1'
|
|
VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
|
|
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
|
|
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
|
|
VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
|
|
end
|