ruhl 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README +9 -4
  2. data/VERSION +1 -1
  3. data/lib/ruhl.rb +0 -1
  4. data/ruhl.gemspec +1 -1
  5. metadata +1 -1
data/README CHANGED
@@ -70,10 +70,15 @@ _render_ - This is used in your layout and lets rule know where to inject
70
70
 
71
71
  _partial - Path to a partial file. RuHL must be able to find/read this file.
72
72
 
73
- _if - If the method returns nil, the tag will not be included on output.
74
-
75
- _unless - If the method does not return nil, the tag will not be
76
- included on output.
73
+ _if - If the method returns true, processing will continue.
74
+ If the method returns a value other than true, the inner_html
75
+ of the tag will be set to that value.
76
+ If the method returns false or nil, processing will halt and
77
+ the tag will not be included on output.
78
+
79
+ _unless - If the method returns true, processing will halt and the tag
80
+ will not included on output.
81
+ If the method returns false, processing will continue.
77
82
 
78
83
  _collection - RuHL expects the method reference to return an array of objects.
79
84
  RuHL will iteratate over the collection and render the contents
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.8.1
data/lib/ruhl.rb CHANGED
@@ -127,7 +127,6 @@ module Ruhl
127
127
  tag.remove
128
128
  true
129
129
  else
130
- tag.inner_html = contents unless contents == false
131
130
  false
132
131
  end
133
132
  end
data/ruhl.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruhl}
8
- s.version = "0.8.0"
8
+ s.version = "0.8.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Stone"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruhl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Stone