sinatra-contrib 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/capture.rb +1 -1
- data/lib/sinatra/content_for.rb +1 -1
- data/lib/sinatra/contrib/version.rb +1 -1
- data/sinatra-contrib.gemspec +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bcd1e6fc0a5b6ccb8ff7ff466f2776fd7d06435ebb256f122f0152e48d90213
|
4
|
+
data.tar.gz: 68bd8c594086c441091986d641bfb347c3f9e0febb985890807f9b3ed51a5130
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f62db758529ec891f96d9c27cf557c6e8ad8bfac62a4c2a3f94e075022f47b78cbce2819b33a5472a54f181a181fc4c5e6bc2a8058a27fdefa6b49560054fca5
|
7
|
+
data.tar.gz: 06375d838e3778315ae61f579d9306d78412029af02a4cadf3af94fcf86ec6057194009ddbc20ab5f9f4a33544f4fdc7f32de688f1b39e73e60feb399542de53
|
data/lib/sinatra/capture.rb
CHANGED
@@ -87,7 +87,7 @@ module Sinatra
|
|
87
87
|
def capture(*args, &block)
|
88
88
|
return block[*args] if ruby?
|
89
89
|
|
90
|
-
if haml? && Tilt[:haml] == Tilt::HamlTemplate
|
90
|
+
if haml? && Tilt[:haml] == Tilt::HamlTemplate && defined?(Haml::Buffer)
|
91
91
|
buffer = Haml::Buffer.new(nil, Haml::Options.new.for_buffer)
|
92
92
|
with_haml_buffer(buffer) { capture_haml(*args, &block) }
|
93
93
|
else
|
data/lib/sinatra/content_for.rb
CHANGED
@@ -175,7 +175,7 @@ module Sinatra
|
|
175
175
|
# for <tt>:head</tt>.
|
176
176
|
def yield_content(key, *args, &block)
|
177
177
|
if block_given? && !content_for?(key)
|
178
|
-
haml? && Tilt[:haml] == Tilt::HamlTemplate ? capture_haml(*args, &block) : yield(*args)
|
178
|
+
haml? && Tilt[:haml] == Tilt::HamlTemplate && respond_to?(:capture_haml) ? capture_haml(*args, &block) : yield(*args)
|
179
179
|
else
|
180
180
|
content = content_blocks[key.to_sym].map { |b| capture(*args, &b) }
|
181
181
|
content.join.tap do |c|
|
data/sinatra-contrib.gemspec
CHANGED
@@ -46,7 +46,7 @@ RubyGems 2.0 or newer is required to protect against public gem pushes. You can
|
|
46
46
|
s.add_development_dependency 'asciidoctor'
|
47
47
|
s.add_development_dependency 'builder'
|
48
48
|
s.add_development_dependency 'erubi'
|
49
|
-
s.add_development_dependency 'haml'
|
49
|
+
s.add_development_dependency 'haml'
|
50
50
|
s.add_development_dependency 'liquid'
|
51
51
|
s.add_development_dependency 'markaby'
|
52
52
|
s.add_development_dependency 'nokogiri'
|
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: 3.0.
|
4
|
+
version: 3.0.2
|
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: 2022-
|
11
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.0.
|
47
|
+
version: 3.0.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.0.
|
54
|
+
version: 3.0.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sinatra
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.0.
|
61
|
+
version: 3.0.2
|
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: 3.0.
|
68
|
+
version: 3.0.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tilt
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,16 +126,16 @@ dependencies:
|
|
126
126
|
name: haml
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: liquid
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|