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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a225eae18c744a8c77819d37dbacdd8147dcdfab
4
- data.tar.gz: 9cb4b5e29fcf1feef6a1c1841c2d8ee4bc735d46
3
+ metadata.gz: e41c68668d3cadb98cd4ceb6ab0b5e9cf7f6dc4c
4
+ data.tar.gz: b9bfdd33477711d354185017e45f08466dadeba5
5
5
  SHA512:
6
- metadata.gz: cab3829af47fac93c9ac09666e8eff4ba707b4f86d989abb03bb3e7329744e753290208c103c7fc8592cc87aef33d98cd01c0c5745f8de5faf8b52782d0ea22f
7
- data.tar.gz: 9eb391a648d7addd9135f08ab673b5127c69f3af6c2d2f77099652a966ea3adc8c022ba48b5346111252b0b7b2a26e931f0d92f39d6a0fa32ce60432191fa69d
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 meory leak in OptionsCache](https://github.com/intridea/multi_json/commit/aa7498199ad272f3d4a13750d7c568a66047e2ee)
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, MultiJson will throw a `MultiJson::ParseError`. `MultiJson::DecodeError` and `MultiJson::LoadError` are aliases for backwards compatibility.
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 MultiJson adapter, takes either a symbol or a
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 MultiJson fails to load the specified adapter, it'll throw `MultiJson::AdapterError`
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 on one of these interpreters, it's a bug.
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
@@ -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
 
@@ -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 = 1 unless defined? MultiJson::Version::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.1
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
- MB4XDTE2MDQyNDIyMDk1MVoXDTE3MDQyNDIyMDk1MVowPzEOMAwGA1UEAwwFcGF2
18
+ MB4XDTE3MDkwNTA0MjAxNVoXDTE4MDkwNTA0MjAxNVowPzEOMAwGA1UEAwwFcGF2
19
19
  ZWwxGDAWBgoJkiaJk/IsZAEZFghwcmF2b3N1ZDETMBEGCgmSJomT8ixkARkWA2Nv
20
- bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK+YCSpSUOeZvxOyp0Zm
21
- DhlQ9Kc8ZxgaB3ekCS6lp7hV+eE6nZ84j4RLEqhfx0Vffx+yCmSx0lWum6eY9aOy
22
- rr+uCtiSiL+HR7t6KHqQ5myXwIvT7B+SqMYw8223fMFZMUit73PfTaMlIon+EsZB
23
- 9TWzVU7MSRIHLr8P92/kExOuDhVcqFgmz+pWLeZj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SDWXP6yq0Gi6vlcvyIoBrvfFRPsg/gGhUp5DYKDLYzaEjNE30bME9fwDvlab7XR
32
- v4so5Zmmcof+9apAoaXDtj7HijhJWJcia8GWN5ycuDX38qMcpSU9/PF84s567W6e
33
- De8xFEGqLG8vclcTv7gGjDJH5FJTXuwLg41wc8p4ONXEBgLiaC7+S/DVDXWpYxuB
34
- akI17ua4eRKTFNvBtzP1802SP1k=
29
+ ggEBAB5ZWFOjLnT6Klcr4UFvss5oW1Wtg0BdRCS5V7v8ZvnJ3mfD7rw+J3c7ylpT
30
+ 9F4c4JLfJsg+FFbkDSETB1LfviGKPkpfjL3Uy1z6nWOko62XpFUiBydB9hnq0Fll
31
+ pDshFjNeJVp6BgWXjVs9m8h1hRvGsy0WxEF/IQ+V5Dw7hvi+qg5K6eMoXvpv3OJh
32
+ Io9NF6vsT7YYaUl+zobpp+tMYsAST801YnAa2RSSlsRKEMtsDFtC9oTQZhAhGqHb
33
+ lnsOhB8m73/1c9sJkVBZl4lGniy6lnB4BIr+2+hTXDK5AjQJC1uwKG1etzwBuCkz
34
+ 8dtH5+dv1G5BCpbYE2uIVLsl+LY=
35
35
  -----END CERTIFICATE-----
36
- date: 2016-05-18 00:00:00.000000000 Z
36
+ date: 2017-09-05 00:00: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.4
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