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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 875fcac85ec3549476fa9363e6d74a93169d9bff6a285afa085dd9927e377b8f
4
- data.tar.gz: a6f37d1271320146ef8a988b236276bb9b5385a44839f26ccc9740e5bd1fba85
3
+ metadata.gz: ec8befbc3182254696e87006c0a7ef7f13604a9a5235e4e9c5e6b3b18c1c9c48
4
+ data.tar.gz: 728332e54d44ef6f3330729a83729bef77283a027285dc52f5005a28df7e22be
5
5
  SHA512:
6
- metadata.gz: 129dad2460c8a80bca9db661361479bf78a8c1369c053056414df493fc37a4b4135dd155c7bc0660b37a5ab03acc68da5dacea9fe35bf48e7493aab833ae5fde
7
- data.tar.gz: ee1bccd800b4636a48a74e31c0371ed3be754e5037c1bf9afe95d782cb3ce8ddabced908fbe1a32cc9841dce16729513cd5c61baf1c0853ca30eb27b8404e60e
6
+ metadata.gz: 543b6086ec58bd82fde49d6b0035ee558795a38dda0e6e6f788dadbdfbcafa31b6b61a214e3626c6cc076f6eb5880127ab3c5d18c9ac5944421597adf4cd4e53
7
+ data.tar.gz: b681a834fe8497ea3d7fe201b6a1e16b4a13e098d150f45414cf5017c0838e3c8156f35e7b5d7c61fc48db1fe0127a4d66fe912f5e6b5aa5df4febe3ef2ce1b1
@@ -1,6 +1,6 @@
1
1
  module Sinatra
2
2
  module Contrib
3
- VERSION = '2.0.5'
3
+ VERSION = '2.0.6'
4
4
  end
5
5
  end
6
6
 
@@ -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
- # not exactly like Tilt[engine], but does not trigger a require
177
- if Tilt.respond_to?(:mappings)
178
- klass = Tilt.mappings[Tilt.normalize(engine)].first
179
- else
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
@@ -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", ">= 1.3", "< 3"
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.5
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: 2018-12-22 00:00:00.000000000 Z
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.5
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.5
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: '3'
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: '3'
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.5
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.5
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.6
434
+ rubygems_version: 2.7.3
441
435
  signing_key:
442
436
  specification_version: 4
443
437
  summary: Collection of useful Sinatra extensions