sinatra-contrib 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/contrib/version.rb +1 -1
- data/lib/sinatra/namespace.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56bc8589a21075194b76aa26daae7790568dddf0d3f4094ba980aee8319d70e4
|
4
|
+
data.tar.gz: e5c414d4d897a18dbf4338e0f6dd034e4b0074091f44ad844cbbb76f1d85be33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cc49665d4b53a9e3c284f4d7a2ef8e3d92eea9dc7fbf01e427e4a23dff912b524cbe8548e363fb2a888a1f925a3a4a25c36c71cde7934b9cf652c338aa4a196
|
7
|
+
data.tar.gz: ef656443050ea347f37a535524a6767b4fba9505ba6cdcde03a6a78042bb649278ae22e08e4c43192cf0c58fd1eaaa19a16b04a22b51b72a2a9712e553bd04af
|
data/lib/sinatra/namespace.rb
CHANGED
@@ -238,7 +238,7 @@ module Sinatra
|
|
238
238
|
|
239
239
|
def helpers(*extensions, &block)
|
240
240
|
class_eval(&block) if block_given?
|
241
|
-
|
241
|
+
include(*extensions) if extensions.any?
|
242
242
|
end
|
243
243
|
|
244
244
|
def register(*extensions, &block)
|
@@ -284,8 +284,8 @@ module Sinatra
|
|
284
284
|
end
|
285
285
|
|
286
286
|
def set(key, value = self, &block)
|
287
|
+
return key.each { |k,v| set(k, v) } if key.respond_to?(:each) and block.nil? and value == self
|
287
288
|
raise ArgumentError, "may not set #{key}" unless ([:views] + ALLOWED_ENGINES).include?(key)
|
288
|
-
return key.each { |k,v| set(k, v) } if block.nil? and value == self
|
289
289
|
block ||= proc { value }
|
290
290
|
singleton_class.send(:define_method, key, &block)
|
291
291
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-contrib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/sinatra/sinatra/graphs/contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mustermann
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: 2.2.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: 2.2.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: multi_json
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|