multi_json 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +6 -1
- data/README.md +5 -4
- data/lib/multi_json/adapter.rb +1 -1
- data/lib/multi_json/version.rb +1 -1
- metadata +18 -19
- metadata.gz.sig +0 -0
- data/multi_json.gemspec +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e41c68668d3cadb98cd4ceb6ab0b5e9cf7f6dc4c
|
4
|
+
data.tar.gz: b9bfdd33477711d354185017e45f08466dadeba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a3b5227ce0fb04cc4215e83aa6fb7f7946a480a08f02befb76485d823d84f8217afdd176702e7e14d59ed652811b4d9c0acc79ec17403d31fd3c489034f1ae4
|
7
|
+
data.tar.gz: 79fc9ccf104b8bd2dde8e3881c7b408b48ec83c0ec84a1cd6f55dc7c10072fcaf200d8325770af8214f7f5576a907add9dedd2b3f80f490684ac126802f1eee9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
+
1.12.2
|
2
|
+
------
|
3
|
+
|
4
|
+
* [Renew gem certificate](https://github.com/intridea/multi_json/commit/57922d898c6eb587cc9a28ba5724c11e81724700)
|
5
|
+
|
1
6
|
1.12.1
|
2
7
|
------
|
3
8
|
|
4
|
-
* [Prevent
|
9
|
+
* [Prevent memory leak in OptionsCache](https://github.com/intridea/multi_json/commit/aa7498199ad272f3d4a13750d7c568a66047e2ee)
|
5
10
|
|
6
11
|
1.12.0
|
7
12
|
------
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ MultiJson.dump({:abc => 'def'}) # convert Ruby back to JSON
|
|
24
24
|
MultiJson.dump({:abc => 'def'}, :pretty => true) # encoded in a pretty form (if supported by the coder)
|
25
25
|
```
|
26
26
|
|
27
|
-
When loading invalid JSON,
|
27
|
+
When loading invalid JSON, MultiJSON will throw a `MultiJson::ParseError`. `MultiJson::DecodeError` and `MultiJson::LoadError` are aliases for backwards compatibility.
|
28
28
|
|
29
29
|
```ruby
|
30
30
|
begin
|
@@ -38,11 +38,11 @@ end
|
|
38
38
|
`ParseError` instance has `cause` reader which contains the original exception.
|
39
39
|
It also has `data` reader with the input that caused the problem.
|
40
40
|
|
41
|
-
The `use` method, which sets the
|
41
|
+
The `use` method, which sets the MultiJSON adapter, takes either a symbol or a
|
42
42
|
class (to allow for custom JSON parsers) that responds to both `.load` and `.dump`
|
43
43
|
at the class level.
|
44
44
|
|
45
|
-
When
|
45
|
+
When MultiJSON fails to load the specified adapter, it'll throw `MultiJson::AdapterError`
|
46
46
|
which inherits from `ArgumentError`.
|
47
47
|
|
48
48
|
MultiJSON tries to have intelligent defaulting. That is, if you have any of the
|
@@ -75,6 +75,7 @@ implementations:
|
|
75
75
|
* Ruby 2.1
|
76
76
|
* Ruby 2.2.4
|
77
77
|
* Ruby 2.3.1
|
78
|
+
* Ruby 2.4.0
|
78
79
|
* [JRuby][]
|
79
80
|
* [Rubinius][]
|
80
81
|
* [MacRuby][] (not tested on Travis CI)
|
@@ -83,7 +84,7 @@ implementations:
|
|
83
84
|
[rubinius]: http://rubini.us/
|
84
85
|
[macruby]: http://www.macruby.org/
|
85
86
|
|
86
|
-
If something doesn't work
|
87
|
+
If something doesn't work in one of these implementations, it's a bug.
|
87
88
|
|
88
89
|
This library may inadvertently work (or seem to work) on other Ruby
|
89
90
|
implementations, however support will only be provided for the versions listed
|
data/lib/multi_json/adapter.rb
CHANGED
@@ -16,8 +16,8 @@ module MultiJson
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def load(string, options = {})
|
19
|
-
fail self::ParseError if blank?(string)
|
20
19
|
string = string.read if string.respond_to?(:read)
|
20
|
+
fail self::ParseError if blank?(string)
|
21
21
|
instance.load(string, cached_load_options(options))
|
22
22
|
end
|
23
23
|
|
data/lib/multi_json/version.rb
CHANGED
@@ -2,7 +2,7 @@ module MultiJson
|
|
2
2
|
class Version
|
3
3
|
MAJOR = 1 unless defined? MultiJson::Version::MAJOR
|
4
4
|
MINOR = 12 unless defined? MultiJson::Version::MINOR
|
5
|
-
PATCH =
|
5
|
+
PATCH = 2 unless defined? MultiJson::Version::PATCH
|
6
6
|
PRE = nil unless defined? MultiJson::Version::PRE
|
7
7
|
|
8
8
|
class << self
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multi_json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.12.
|
4
|
+
version: 1.12.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
@@ -15,25 +15,25 @@ cert_chain:
|
|
15
15
|
-----BEGIN CERTIFICATE-----
|
16
16
|
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MQ4wDAYDVQQDDAVwYXZl
|
17
17
|
bDEYMBYGCgmSJomT8ixkARkWCHByYXZvc3VkMRMwEQYKCZImiZPyLGQBGRYDY29t
|
18
|
-
|
18
|
+
MB4XDTE3MDkwNTA0MjAxNVoXDTE4MDkwNTA0MjAxNVowPzEOMAwGA1UEAwwFcGF2
|
19
19
|
ZWwxGDAWBgoJkiaJk/IsZAEZFghwcmF2b3N1ZDETMBEGCgmSJomT8ixkARkWA2Nv
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
20
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMBI9gFjVGizTKJZmmim
|
21
|
+
8zHrJmSu7NGlL7HBWRhV7e/Qp2qdKtiG7TGGi9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00.000000000 Z
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: bundler
|
@@ -83,7 +83,6 @@ files:
|
|
83
83
|
- lib/multi_json/parse_error.rb
|
84
84
|
- lib/multi_json/vendor/okjson.rb
|
85
85
|
- lib/multi_json/version.rb
|
86
|
-
- multi_json.gemspec
|
87
86
|
homepage: http://github.com/intridea/multi_json
|
88
87
|
licenses:
|
89
88
|
- MIT
|
@@ -104,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
103
|
version: 1.3.5
|
105
104
|
requirements: []
|
106
105
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.6.
|
106
|
+
rubygems_version: 2.6.13
|
108
107
|
signing_key:
|
109
108
|
specification_version: 4
|
110
109
|
summary: A common interface to multiple JSON libraries.
|
metadata.gz.sig
CHANGED
Binary file
|
data/multi_json.gemspec
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
require File.expand_path('../lib/multi_json/version.rb', __FILE__)
|
3
|
-
|
4
|
-
Gem::Specification.new do |spec|
|
5
|
-
spec.authors = ['Michael Bleigh', 'Josh Kalderimis', 'Erik Michaels-Ober', 'Pavel Pravosud']
|
6
|
-
spec.cert_chain = %w(certs/rwz.pem)
|
7
|
-
spec.summary = 'A common interface to multiple JSON libraries.'
|
8
|
-
spec.description = 'A common interface to multiple JSON libraries, including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem, NSJSONSerialization, gson.rb, JrJackson, and OkJson.'
|
9
|
-
spec.email = %w(michael@intridea.com josh.kalderimis@gmail.com sferik@gmail.com pavel@pravosud.com)
|
10
|
-
spec.files = Dir['CHANGELOG.md', 'CONTRIBUTING.md', 'LICENSE.md', 'README.md', 'multi_json.gemspec', 'lib/**/*']
|
11
|
-
spec.homepage = 'http://github.com/intridea/multi_json'
|
12
|
-
spec.license = 'MIT'
|
13
|
-
spec.name = 'multi_json'
|
14
|
-
spec.require_path = 'lib'
|
15
|
-
spec.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $PROGRAM_NAME =~ /gem\z/
|
16
|
-
spec.version = MultiJson::Version
|
17
|
-
|
18
|
-
spec.required_rubygems_version = '>= 1.3.5'
|
19
|
-
spec.add_development_dependency 'bundler', '~> 1.0'
|
20
|
-
end
|