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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/garterbelt.gemspec +1 -1
  3. data/lib/view.rb +6 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
data/garterbelt.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{garterbelt}
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kane Baccigalupi"]
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
- alias :to_s :render
276
- alias :to_html :render
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kane Baccigalupi