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 +4 -4
- data/CHANGELOG.md +4 -2
- data/VERSION +1 -1
- data/lib/sinatra/indifferent_hash.rb +13 -9
- data/lib/sinatra/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0a9fb798a1b2f906d9b84c950dd0095bbe7fa043468ffcc6b5a48f0320d14a1
|
4
|
+
data.tar.gz: 9e05cfa93c2426526551ad0149562132157a7a01e6ebacc1f153f5d75bd4ea0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2d1a38d64c63b2b5de785bc301843a1ce8a84daa752beceea399d3d936d3fdc3ed2e65d642c9f7ad736a3b67d5b66ae4b60078ab5a24841a67d6ccd9fe68d62
|
7
|
+
data.tar.gz: a8382fe4d07c482efa87001d9b4de97dffbf48eb69ded2d177e202cae852898ddf394095bc108f170f789ba2e47b8a45900191efcb8aa81b6e9df5289cf682e4
|
data/CHANGELOG.md
CHANGED
@@ -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!(
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
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(
|
150
|
-
dup.merge!(
|
153
|
+
def merge(*other_hashes, &block)
|
154
|
+
dup.merge!(*other_hashes, &block)
|
151
155
|
end
|
152
156
|
|
153
157
|
def replace(other_hash)
|
data/lib/sinatra/version.rb
CHANGED
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
|