rhtml 0.0.8 → 0.0.9

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 (3) hide show
  1. data/lib/rhtml/html.rb +5 -0
  2. data/lib/rhtml/version.rb +1 -1
  3. metadata +2 -2
@@ -12,8 +12,10 @@ module Rhtml
12
12
  str, ps = ps, {} if ps.is_a? String
13
13
  ps[:class] = @cls if @cls
14
14
  ps[:id] = @id if @id
15
+
15
16
  @content << Rhtml.tag_open(tag_name, ps, @indent)
16
17
  @cls = @id = nil
18
+
17
19
  @indent += 1
18
20
  if str
19
21
  @content << INDENT * @indent << str << "\n"
@@ -22,6 +24,7 @@ module Rhtml
22
24
  @content << INDENT * @indent << ret.to_s << "\n" if ret.is_a?(String)
23
25
  end
24
26
  @indent -= 1
27
+
25
28
  @content << Rhtml.tag_close(tag_name, @indent)
26
29
  self
27
30
  end
@@ -45,7 +48,9 @@ module Rhtml
45
48
 
46
49
  def raw! string=''
47
50
  @content << string.to_s << "\n"
51
+ self
48
52
  end
53
+ alias_method :==, :raw!
49
54
 
50
55
  def to_s
51
56
  @content
@@ -1,3 +1,3 @@
1
1
  module Rhtml
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhtml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-30 00:00:00.000000000 Z
12
+ date: 2013-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler