sinatra-contrib 3.0.1 → 3.0.3

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: 8824a728fa52ef0b5735eb30465a8ecd7193c1776b6e5677ddbf5ac9ca7763d4
4
+ data.tar.gz: f5f4705d6fa867239bb57aa38460975b18b5322abd22fd71e0020a552490aac1
5
5
  SHA512:
6
- metadata.gz: 46883391c32d3967e92d8c39ec2d47b9495c6153e490e7b078d0858045f916df985fbae6d056e00d8a270b29c8176fca2e391eb04681cc35910594403784965e
7
- data.tar.gz: 523d3e5353956f6cc81a8695a954c90a45eec09ff516dc6f1695785972944b93ee4b36aee2d1b333ace39fe2c7edafcea3a839c09af373f809c149187657202f
6
+ metadata.gz: 74816ed52019b2053523adb828db893647572109fb1d13ba42cfb84484a562eeeb341c76672734a2d4ec442952e3b0b6bdf564056d89db0267226eb3b1754ee5
7
+ data.tar.gz: 67c7c1ff253fe69c8e974a548adf43417f9251ebe144b576187f1e1a5b2f4a4cca8933cddf953747e1184c9dd0f43f825b1a7c4ca517689a8c4e89f666388950
@@ -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.2'
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.3
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-11-11 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.3
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.3
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.3
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.3
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