sinatra 2.0.8 → 2.0.8.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sinatra might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 996ffb850e9fba979b72012a00ba18a9baf51dd8ecb4369330bd0a8f3057b599
4
- data.tar.gz: cd3ccb02b5348188a5f644b5a208d94dad535703236d85e1402f53f32e13d054
3
+ metadata.gz: d0a9fb798a1b2f906d9b84c950dd0095bbe7fa043468ffcc6b5a48f0320d14a1
4
+ data.tar.gz: 9e05cfa93c2426526551ad0149562132157a7a01e6ebacc1f153f5d75bd4ea0b
5
5
  SHA512:
6
- metadata.gz: 6f1f6450b109378735e2018291f54d91be717942d04613df5db578c476c2ad70ec08fe589fb3a917007549957a8e45cc6abf70cee9bbd2fb09b59ff721a69837
7
- data.tar.gz: 7aa231036ecad7c7ce280556d7cfbad1000572466c24c36bc47e5a32aa1594e4aac0393f598211c41b1c65e028125b7d45689a3442d824dcddd7a6a5adba23b8
6
+ metadata.gz: c2d1a38d64c63b2b5de785bc301843a1ce8a84daa752beceea399d3d936d3fdc3ed2e65d642c9f7ad736a3b67d5b66ae4b60078ab5a24841a67d6ccd9fe68d62
7
+ data.tar.gz: a8382fe4d07c482efa87001d9b4de97dffbf48eb69ded2d177e202cae852898ddf394095bc108f170f789ba2e47b8a45900191efcb8aa81b6e9df5289cf682e4
@@ -1,3 +1,7 @@
1
+ ## 2.0.8.1 / 2020-01-02
2
+
3
+ * Allow multiple hashes to be passed in `merge` and `merge!` for `Sinatra::IndifferentHash` [#1572](https://github.com/sinatra/sinatra/pull/1572) by Shota Iguchi
4
+
1
5
  ## 2.0.8 / 2020-01-01
2
6
 
3
7
  * Lookup Tilt class for template engine without loading files [#1558](https://github.com/sinatra/sinatra/pull/1558). Fixes [#1172](https://github.com/sinatra/sinatra/issues/1172) by Jordan Owens
@@ -6,8 +10,6 @@
6
10
 
7
11
  * Add `.yaml` support in `Sinatra::Contrib::ConfigFile` [#1564](https://github.com/sinatra/sinatra/issues/1564). Fixes [#1563](https://github.com/sinatra/sinatra/issues/1563) by Emerson Manabu Araki
8
12
 
9
- * Allow multiple hashes to be passed in `merge` and `merge!` for `Sinatra::IndifferentHash` [#1572](https://github.com/sinatra/sinatra/pull/1572) by Shota Iguchi
10
-
11
13
  * Remove only routing parameters from @params hash [#1569](https://github.com/sinatra/sinatra/pull/1569). Fixes [#1567](https://github.com/sinatra/sinatra/issues/1567) by Jordan Owens, Horacio
12
14
 
13
15
  * Support `capture` and `content_for` with Hamlit [#1580](https://github.com/sinatra/sinatra/pull/1580) by Takashi Kokubun
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.8
1
+ 2.0.8.1
@@ -132,13 +132,17 @@ module Sinatra
132
132
  super(*keys)
133
133
  end
134
134
 
135
- def merge!(other_hash)
136
- return super if other_hash.is_a?(self.class)
137
-
138
- other_hash.each_pair do |key, value|
139
- key = convert_key(key)
140
- value = yield(key, self[key], value) if block_given? && key?(key)
141
- self[key] = convert_value(value)
135
+ def merge!(*other_hashes)
136
+ other_hashes.each do |other_hash|
137
+ if other_hash.is_a?(self.class)
138
+ super(other_hash)
139
+ else
140
+ other_hash.each_pair do |key, value|
141
+ key = convert_key(key)
142
+ value = yield(key, self[key], value) if block_given? && key?(key)
143
+ self[key] = convert_value(value)
144
+ end
145
+ end
142
146
  end
143
147
 
144
148
  self
@@ -146,8 +150,8 @@ module Sinatra
146
150
 
147
151
  alias_method :update, :merge!
148
152
 
149
- def merge(other_hash, &block)
150
- dup.merge!(other_hash, &block)
153
+ def merge(*other_hashes, &block)
154
+ dup.merge!(*other_hashes, &block)
151
155
  end
152
156
 
153
157
  def replace(other_hash)
@@ -1,3 +1,3 @@
1
1
  module Sinatra
2
- VERSION = '2.0.8'
2
+ VERSION = '2.0.8.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Mizerany
@@ -47,14 +47,14 @@ dependencies:
47
47
  requirements:
48
48
  - - '='
49
49
  - !ruby/object:Gem::Version
50
- version: 2.0.8
50
+ version: 2.0.8.1
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - '='
56
56
  - !ruby/object:Gem::Version
57
- version: 2.0.8
57
+ version: 2.0.8.1
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mustermann
60
60
  requirement: !ruby/object:Gem::Requirement