multi_json 1.14.0 → 1.14.1

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
  SHA256:
3
- metadata.gz: 02ad660c95a2df79f974de05f499d46341d93c8074842a0a9e36190506342044
4
- data.tar.gz: 9cfe4e4f78047c49b52561278f970bb9a666f42630dc1f805bedd4f3375a857d
3
+ metadata.gz: 4177b19f8193cf97c820d97c1781aa1f80640af156550dc3d3ef85d7429acfe6
4
+ data.tar.gz: 9b3e63206fe2a296f26182e06e5ca16860017032bdfe9a6ff4f5d3c489069df7
5
5
  SHA512:
6
- metadata.gz: 373167f0f1c769c8d8a29ca0eb4003932ad63780e3bd3e441b42bb3ca38fe50d299aaed44539187d65fd59f5c03a791d8158cc738dd96806d156087b7b90a8d7
7
- data.tar.gz: 85e81611fc298ab9cdaca114f0a0454f0fa2957a6a492321403709592d95824988ac71611f8387799ddeb347d6c5cb19b8a911d4dea2bc380a7e8e98c7aff706
6
+ metadata.gz: 4d850277f4d5b015dfe158227b20f0a7c78f41aee81fe54a256a64add52dbc597ed30404ed0e9ae168a9d173f497e897669c4bfe923cd28af1b9a94df4a90f53
7
+ data.tar.gz: a6725acebf16b259cd04557c2c2ceb18a78c1fcab530897bc47eaa162e3e1bc7b62f6a74e490400b5cb76567dbde859f1521b75bb8b6a6c8edbbfa3824782fd0
@@ -1,7 +1,11 @@
1
+ 1.14.1
2
+ ------
3
+
4
+ * [Fix a warning in Ruby 2.7](https://github.com/intridea/multi_json/commit/26a94ab8c78a394cc237e2ea292c1de4f6ed30d7)
5
+
1
6
  1.14.0
2
7
  ------
3
8
 
4
- * [Fix a warning in Ruby 2.7](https://github.com/intridea/multi_json/commit/5d8febdbebc428882811b90d514f3628617a61d5)
5
9
  * [Support Oj 3.x gem](https://github.com/intridea/multi_json/commit/5d8febdbebc428882811b90d514f3628617a61d5)
6
10
 
7
11
  1.13.1
@@ -7,9 +7,9 @@ module MultiJson
7
7
  @load_cache = {}
8
8
  end
9
9
 
10
- def fetch(type, key)
10
+ def fetch(type, key, &block)
11
11
  cache = instance_variable_get("@#{type}_cache")
12
- cache.key?(key) ? cache[key] : write(cache, key, &Proc.new)
12
+ cache.key?(key) ? cache[key] : write(cache, key, &block)
13
13
  end
14
14
 
15
15
  private
@@ -2,7 +2,7 @@ module MultiJson
2
2
  class Version
3
3
  MAJOR = 1 unless defined? MultiJson::Version::MAJOR
4
4
  MINOR = 14 unless defined? MultiJson::Version::MINOR
5
- PATCH = 0 unless defined? MultiJson::Version::PATCH
5
+ PATCH = 1 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.14.0
4
+ version: 1.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-10-14 00:00:00.000000000 Z
14
+ date: 2019-10-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
@@ -75,10 +75,15 @@ files:
75
75
  - lib/multi_json/parse_error.rb
76
76
  - lib/multi_json/vendor/okjson.rb
77
77
  - lib/multi_json/version.rb
78
- homepage: http://github.com/intridea/multi_json
78
+ homepage: https://github.com/intridea/multi_json
79
79
  licenses:
80
80
  - MIT
81
- metadata: {}
81
+ metadata:
82
+ bug_tracker_uri: https://github.com/intridea/multi_json/issues
83
+ changelog_uri: https://github.com/intridea/multi_json/blob/v1.14.1/CHANGELOG.md
84
+ documentation_uri: https://www.rubydoc.info/gems/multi_json/1.14.1
85
+ source_code_uri: https://github.com/intridea/multi_json/tree/v1.14.1
86
+ wiki_uri: https://github.com/intridea/multi_json/wiki
82
87
  post_install_message:
83
88
  rdoc_options: []
84
89
  require_paths: