multi_json 1.9.2 → 1.9.3
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 +4 -0
- data/Gemfile +1 -1
- data/lib/multi_json/adapters/oj.rb +1 -0
- data/lib/multi_json/version.rb +1 -1
- data/spec/gson_adapter_spec.rb +1 -1
- data/spec/oj_adapter_spec.rb +11 -1
- data/spec/spec_helper.rb +8 -0
- metadata +2 -2
- 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: 7c2a387cf1082722ed68ed290ba53909de8fa882
|
4
|
+
data.tar.gz: d06db47576a3cb2801b12af6d15fbd227facc800
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dab04d4d5f9f3bcda964d379a9d9fee49cd09b2a72cf5ecf67d3f1be339f12e4a54c8fae1269b07437d4be0b87f93c8ef3719bd74b2096fb75a9db69d3ecd6a5
|
7
|
+
data.tar.gz: 723e745ecc160b1ae47ea0e35b79d0833b8c65549b787c8f3e2b2e9ae26055239a2d0cac18b1b3a637cdf5b7778d99ed0ee91f116e55156e1c304146b7558110
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
1.9.3
|
2
|
+
-----
|
3
|
+
* [Convert indent option to Fixnum before passing to Oj](https://github.com/intridea/multi_json/commit/826fc5535b863b74fc9f981dfdda3e26f1ee4e5b)
|
4
|
+
|
1
5
|
1.9.2
|
2
6
|
-----
|
3
7
|
* [Enable use_to_json option for Oj adapter by default](https://github.com/intridea/multi_json/commit/76a4aaf697b10bbabd5d535d83cf1149efcfe5c7)
|
data/Gemfile
CHANGED
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 = 9 unless defined? MultiJson::Version::MINOR
|
5
|
-
PATCH =
|
5
|
+
PATCH = 3 unless defined? MultiJson::Version::PATCH
|
6
6
|
PRE = nil unless defined? MultiJson::Version::PRE
|
7
7
|
|
8
8
|
class << self
|
data/spec/gson_adapter_spec.rb
CHANGED
data/spec/oj_adapter_spec.rb
CHANGED
@@ -7,4 +7,14 @@ require 'multi_json/adapters/oj'
|
|
7
7
|
|
8
8
|
describe MultiJson::Adapters::Oj do
|
9
9
|
it_behaves_like 'an adapter', described_class
|
10
|
-
|
10
|
+
|
11
|
+
describe '.dump' do
|
12
|
+
describe '#dump_options' do
|
13
|
+
around{ |example| with_default_options(&example) }
|
14
|
+
|
15
|
+
it 'ensures indent is a Fixnum' do
|
16
|
+
expect{ MultiJson.dump(42, :indent => '')}.not_to raise_error
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -79,3 +79,11 @@ def get_exception(exception_class = StandardError)
|
|
79
79
|
exception
|
80
80
|
end
|
81
81
|
end
|
82
|
+
|
83
|
+
def with_default_options
|
84
|
+
adapter = MultiJson.adapter
|
85
|
+
adapter.load_options = adapter.dump_options = MultiJson.load_options = MultiJson.dump_options = nil
|
86
|
+
yield
|
87
|
+
ensure
|
88
|
+
adapter.load_options = adapter.dump_options = MultiJson.load_options = MultiJson.dump_options = nil
|
89
|
+
end
|
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.9.
|
4
|
+
version: 1.9.3
|
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: 2014-
|
36
|
+
date: 2014-04-27 00:00:00.000000000 Z
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|