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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c7bf44cc16efece231078942a86b6a5f4403205
4
- data.tar.gz: 72033c9d66380bbb86f54cf97a9aa2a1bfcb3a9a
3
+ metadata.gz: 405bc62d55c229a4f869fb467808e194a090c0bd
4
+ data.tar.gz: 5b3f079d77935c2636d284e48b46452eeb0322c0
5
5
  SHA512:
6
- metadata.gz: d7f57462a5cab82e55419698f43ab35d57cb0e2af12dd7b671acfb21515f62c21bdb5d69c0bb9785562a1efc15f39af19b044ab8108e8824b614012e054e9038
7
- data.tar.gz: d51223b32e9ba6f53b7260126b0d5a13b793be281ac4e376feda73335f7b87fe4dd5c9deff58b7abfde592e38ef1f63d1d139f1b56ca018fb86bf4419dbfd2a5
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
@@ -1,3 +1,2 @@
1
1
  --color
2
- --fail-fast
3
2
  --order random
data/.travis.yml CHANGED
@@ -9,3 +9,8 @@ rvm:
9
9
  - 1.9.2
10
10
  - 1.9.3
11
11
  - 2.0.0
12
+
13
+ matrix:
14
+ allow_failures:
15
+ - rvm: jruby-18mode
16
+ - rvm: jruby-19mode
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.0', :require => nil
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
@@ -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 = 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
@@ -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.1
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-04 00:00:00.000000000 Z
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.0
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