garterbelt 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/garterbelt.gemspec +1 -1
- data/lib/view.rb +6 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.6
|
data/garterbelt.gemspec
CHANGED
data/lib/view.rb
CHANGED
|
@@ -265,6 +265,9 @@ module Garterbelt
|
|
|
265
265
|
output
|
|
266
266
|
end
|
|
267
267
|
|
|
268
|
+
alias :to_s :render
|
|
269
|
+
alias :to_html :render
|
|
270
|
+
|
|
268
271
|
def render_block
|
|
269
272
|
return output unless block
|
|
270
273
|
block.call
|
|
@@ -272,8 +275,9 @@ module Garterbelt
|
|
|
272
275
|
output
|
|
273
276
|
end
|
|
274
277
|
|
|
275
|
-
|
|
276
|
-
|
|
278
|
+
def call_block
|
|
279
|
+
block.call if block
|
|
280
|
+
end
|
|
277
281
|
|
|
278
282
|
def render_buffer
|
|
279
283
|
array = buffer.dup
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: garterbelt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.0.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Kane Baccigalupi
|