sinatra-contrib 2.0.5 → 2.0.6
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/respond_with.rb +5 -9
- data/sinatra-contrib.gemspec +1 -1
- metadata +11 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec8befbc3182254696e87006c0a7ef7f13604a9a5235e4e9c5e6b3b18c1c9c48
|
4
|
+
data.tar.gz: 728332e54d44ef6f3330729a83729bef77283a027285dc52f5005a28df7e22be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 543b6086ec58bd82fde49d6b0035ee558795a38dda0e6e6f788dadbdfbcafa31b6b61a214e3626c6cc076f6eb5880127ab3c5d18c9ac5944421597adf4cd4e53
|
7
|
+
data.tar.gz: b681a834fe8497ea3d7fe201b6a1e16b4a13e098d150f45414cf5017c0838e3c8156f35e7b5d7c61fc48db1fe0127a4d66fe912f5e6b5aa5df4febe3ef2ce1b1
|
data/lib/sinatra/respond_with.rb
CHANGED
@@ -173,16 +173,12 @@ module Sinatra
|
|
173
173
|
settings.template_engines[ext].each { |e| possible << [e, name] }
|
174
174
|
end
|
175
175
|
possible.each do |engine, template|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
begin
|
181
|
-
klass = Tilt[engine]
|
182
|
-
rescue LoadError
|
183
|
-
next
|
184
|
-
end
|
176
|
+
begin
|
177
|
+
klass = Tilt[engine]
|
178
|
+
rescue LoadError
|
179
|
+
next
|
185
180
|
end
|
181
|
+
|
186
182
|
find_template(settings.views, template, klass) do |file|
|
187
183
|
next unless File.exist? file
|
188
184
|
return settings.rendering_method(engine) << template.to_sym
|
data/sinatra-contrib.gemspec
CHANGED
@@ -39,7 +39,7 @@ EOF
|
|
39
39
|
s.add_dependency "sinatra", version
|
40
40
|
s.add_dependency "mustermann", "~> 1.0"
|
41
41
|
s.add_dependency "backports", ">= 2.8.2"
|
42
|
-
s.add_dependency "tilt",
|
42
|
+
s.add_dependency "tilt", "~> 2.0"
|
43
43
|
s.add_dependency "rack-protection", version
|
44
44
|
s.add_dependency "multi_json"
|
45
45
|
|
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.0.
|
4
|
+
version: 2.0.6
|
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: 2019-08-21 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.0.
|
19
|
+
version: 2.0.6
|
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.0.
|
26
|
+
version: 2.0.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mustermann
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,36 +56,30 @@ dependencies:
|
|
56
56
|
name: tilt
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.3'
|
62
|
-
- - "<"
|
59
|
+
- - "~>"
|
63
60
|
- !ruby/object:Gem::Version
|
64
|
-
version: '
|
61
|
+
version: '2.0'
|
65
62
|
type: :runtime
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
|
-
- - "
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '1.3'
|
72
|
-
- - "<"
|
66
|
+
- - "~>"
|
73
67
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
68
|
+
version: '2.0'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: rack-protection
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
78
72
|
requirements:
|
79
73
|
- - '='
|
80
74
|
- !ruby/object:Gem::Version
|
81
|
-
version: 2.0.
|
75
|
+
version: 2.0.6
|
82
76
|
type: :runtime
|
83
77
|
prerelease: false
|
84
78
|
version_requirements: !ruby/object:Gem::Requirement
|
85
79
|
requirements:
|
86
80
|
- - '='
|
87
81
|
- !ruby/object:Gem::Version
|
88
|
-
version: 2.0.
|
82
|
+
version: 2.0.6
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
84
|
name: multi_json
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -437,7 +431,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
437
431
|
version: '0'
|
438
432
|
requirements: []
|
439
433
|
rubyforge_project:
|
440
|
-
rubygems_version: 2.7.
|
434
|
+
rubygems_version: 2.7.3
|
441
435
|
signing_key:
|
442
436
|
specification_version: 4
|
443
437
|
summary: Collection of useful Sinatra extensions
|