multi_json 1.8.1 → 1.8.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/.rspec +0 -1
- data/.travis.yml +5 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -2
- data/README.md +0 -1
- data/lib/multi_json.rb +1 -1
- data/lib/multi_json/version.rb +1 -1
- data/spec/multi_json_spec.rb +5 -16
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 405bc62d55c229a4f869fb467808e194a090c0bd
|
4
|
+
data.tar.gz: 5b3f079d77935c2636d284e48b46452eeb0322c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4826c05405be5c145d35f04d26192dc83992ad6e45063dcd36423d8bf023ec8a58559c16dc0246156394272f75bed3a4227c696eee0792efae26478bab3f084
|
7
|
+
data.tar.gz: e9931cadf5f9195265b2e0bb91f1c5d10c76fd7ac8dd3aee4513503219e10f2a5fc1a3b1f1968ebdf7313da4387292ab11904365d4fd8edc36b113cd157cbcc0
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
1.8.2
|
2
|
+
-----
|
3
|
+
* [Downcase adapter string name for OS compatibility](https://github.com/intridea/multi_json/commit/b8e15a032247a63f1410d21a18add05035f3fa66)
|
4
|
+
|
5
|
+
1.8.1
|
6
|
+
-----
|
7
|
+
* [Let the adapter handle strings with invalid encoding](https://github.com/intridea/multi_json/commit/6af2bf87b89f44eabf2ae9ca96779febc65ea94b)
|
8
|
+
|
1
9
|
1.8.0
|
2
10
|
-----
|
3
11
|
* [Raise MultiJson::LoadError on blank input](https://github.com/intridea/multi_json/commit/c44f9c928bb25fe672246ad394b3e5b991be32e6)
|
data/Gemfile
CHANGED
@@ -13,7 +13,7 @@ end
|
|
13
13
|
|
14
14
|
platforms :jruby do
|
15
15
|
gem 'gson', '>= 0.6', :require => nil
|
16
|
-
gem 'jrjackson', '~> 0.2.
|
16
|
+
gem 'jrjackson', '~> 0.2.1', :require => nil
|
17
17
|
end
|
18
18
|
|
19
19
|
group :development do
|
@@ -23,7 +23,6 @@ group :development do
|
|
23
23
|
end
|
24
24
|
|
25
25
|
group :test do
|
26
|
-
gem 'coveralls', :require => false
|
27
26
|
gem 'rspec', '>= 2.14'
|
28
27
|
gem 'simplecov', :require => false
|
29
28
|
end
|
data/README.md
CHANGED
@@ -10,7 +10,6 @@
|
|
10
10
|
[travis]: http://travis-ci.org/intridea/multi_json
|
11
11
|
[gemnasium]: https://gemnasium.com/intridea/multi_json
|
12
12
|
[codeclimate]: https://codeclimate.com/github/intridea/multi_json
|
13
|
-
[coveralls]: https://coveralls.io/r/intridea/multi_json
|
14
13
|
|
15
14
|
Lots of Ruby libraries parse JSON and everyone has their favorite JSON coder.
|
16
15
|
Instead of choosing a single JSON coder and forcing users of your library to be
|
data/lib/multi_json.rb
CHANGED
@@ -151,7 +151,7 @@ module MultiJson
|
|
151
151
|
|
152
152
|
def load_adapter_from_string_name(name)
|
153
153
|
name = ALIASES.fetch(name, name)
|
154
|
-
require "multi_json/adapters/#{name}"
|
154
|
+
require "multi_json/adapters/#{name.downcase}"
|
155
155
|
klass_name = name.to_s.split('_').map(&:capitalize) * ''
|
156
156
|
MultiJson::Adapters.const_get(klass_name)
|
157
157
|
end
|
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 = 8 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
|
data/spec/multi_json_spec.rb
CHANGED
@@ -72,6 +72,11 @@ describe MultiJson do
|
|
72
72
|
expect(MultiJson.adapter).to eq(MultiJson::Adapters::JsonGem)
|
73
73
|
end
|
74
74
|
|
75
|
+
it 'is settable via a case-insensitive string' do
|
76
|
+
MultiJson.use 'Json_Gem'
|
77
|
+
expect(MultiJson.adapter).to eq(MultiJson::Adapters::JsonGem)
|
78
|
+
end
|
79
|
+
|
75
80
|
it 'is settable via a class' do
|
76
81
|
adapter = Class.new
|
77
82
|
MultiJson.use adapter
|
@@ -169,22 +174,6 @@ describe MultiJson do
|
|
169
174
|
|
170
175
|
it_behaves_like 'has options', MultiJson
|
171
176
|
|
172
|
-
# %w(gson jr_jackson json_gem json_pure nsjsonserialization oj ok_json yajl).each do |adapter|
|
173
|
-
# next if !jruby? && %w(gson jr_jackson).include?(adapter)
|
174
|
-
# next if !macruby? && adapter == 'nsjsonserialization'
|
175
|
-
# next if jruby? && %w(oj yajl).include?(adapter)
|
176
|
-
|
177
|
-
# context adapter do
|
178
|
-
# it_behaves_like 'an adapter', adapter
|
179
|
-
# end
|
180
|
-
# end
|
181
|
-
|
182
|
-
# %w(json_gem json_pure).each do |adapter|
|
183
|
-
# context adapter do
|
184
|
-
# it_behaves_like 'JSON-like adapter', adapter
|
185
|
-
# end
|
186
|
-
# end
|
187
|
-
|
188
177
|
describe 'aliases' do
|
189
178
|
if jruby?
|
190
179
|
describe 'jrjackson' do
|
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.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
@@ -33,7 +33,7 @@ cert_chain:
|
|
33
33
|
7BTxdlSpJZDcAK29Ni3NRCRu6Air4wfDln0Ilzeuut6cJ4/j2/RlvsccVSRaEfOa
|
34
34
|
wM7GTK5SEdU3qelyBdc4+RRs6uU=
|
35
35
|
-----END CERTIFICATE-----
|
36
|
-
date: 2013-10-
|
36
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: bundler
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: 1.3.5
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.1.
|
123
|
+
rubygems_version: 2.1.5
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: A common interface to multiple JSON libraries.
|
metadata.gz.sig
CHANGED
Binary file
|