sinatra-content-for2 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sinatra/content_for2.rb +2 -2
- data/sinatra-content-for2.gemspec +3 -1
- metadata +2 -9
data/lib/sinatra/content_for2.rb
CHANGED
@@ -42,10 +42,10 @@ module Sinatra
|
|
42
42
|
# if you call from erubis, you call this with <tt>=</tt> sign.IE,
|
43
43
|
#in a <tt><%= %></tt> block, and not in a <tt><% %></tt> block.
|
44
44
|
def yield_content(key, *args)
|
45
|
-
content_blocks[key.to_sym].map do |content|
|
45
|
+
content_blocks[key.to_sym].map do |content|
|
46
46
|
if respond_to?(:block_is_haml?) && block_is_haml?(content)
|
47
47
|
capture_haml(*args, &content)
|
48
|
-
elsif Erubis
|
48
|
+
elsif defined?(Erubis)
|
49
49
|
content.binding.eval ' _buf = "" '
|
50
50
|
content.call(*args)
|
51
51
|
else
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-content-for2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 21
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- "Nicol\xC3\xA1s Sanguinetti"
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
28
|
segments:
|
31
29
|
- 0
|
32
30
|
version: "0"
|
@@ -40,7 +38,6 @@ dependencies:
|
|
40
38
|
requirements:
|
41
39
|
- - ">="
|
42
40
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 3
|
44
41
|
segments:
|
45
42
|
- 0
|
46
43
|
version: "0"
|
@@ -54,7 +51,6 @@ dependencies:
|
|
54
51
|
requirements:
|
55
52
|
- - ">="
|
56
53
|
- !ruby/object:Gem::Version
|
57
|
-
hash: 3
|
58
54
|
segments:
|
59
55
|
- 0
|
60
56
|
version: "0"
|
@@ -68,7 +64,6 @@ dependencies:
|
|
68
64
|
requirements:
|
69
65
|
- - ">="
|
70
66
|
- !ruby/object:Gem::Version
|
71
|
-
hash: 3
|
72
67
|
segments:
|
73
68
|
- 0
|
74
69
|
version: "0"
|
@@ -103,7 +98,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
98
|
requirements:
|
104
99
|
- - ">="
|
105
100
|
- !ruby/object:Gem::Version
|
106
|
-
hash: 3
|
107
101
|
segments:
|
108
102
|
- 0
|
109
103
|
version: "0"
|
@@ -112,7 +106,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
106
|
requirements:
|
113
107
|
- - ">="
|
114
108
|
- !ruby/object:Gem::Version
|
115
|
-
hash: 3
|
116
109
|
segments:
|
117
110
|
- 0
|
118
111
|
version: "0"
|