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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cc91437517239e1f49a017a777c667068cf0ee0ff384d6d746f39236f218337
4
- data.tar.gz: fc7b4a89a9060b44858829ae24801cc439dc3e451d5ed66b08ca8580b730c7fc
3
+ metadata.gz: 0bcd1e6fc0a5b6ccb8ff7ff466f2776fd7d06435ebb256f122f0152e48d90213
4
+ data.tar.gz: 68bd8c594086c441091986d641bfb347c3f9e0febb985890807f9b3ed51a5130
5
5
  SHA512:
6
- metadata.gz: 46883391c32d3967e92d8c39ec2d47b9495c6153e490e7b078d0858045f916df985fbae6d056e00d8a270b29c8176fca2e391eb04681cc35910594403784965e
7
- data.tar.gz: 523d3e5353956f6cc81a8695a954c90a45eec09ff516dc6f1695785972944b93ee4b36aee2d1b333ace39fe2c7edafcea3a839c09af373f809c149187657202f
6
+ metadata.gz: f62db758529ec891f96d9c27cf557c6e8ad8bfac62a4c2a3f94e075022f47b78cbce2819b33a5472a54f181a181fc4c5e6bc2a8058a27fdefa6b49560054fca5
7
+ data.tar.gz: 06375d838e3778315ae61f579d9306d78412029af02a4cadf3af94fcf86ec6057194009ddbc20ab5f9f4a33544f4fdc7f32de688f1b39e73e60feb399542de53
@@ -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
@@ -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|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sinatra
4
4
  module Contrib
5
- VERSION = '3.0.0'
5
+ VERSION = '3.0.1'
6
6
  end
7
7
  end
@@ -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', '~> 5'
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.1
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-09-26 00:00:00.000000000 Z
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.1
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.1
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.1
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.1
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: '5'
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: '5'
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: liquid
141
141
  requirement: !ruby/object:Gem::Requirement