erbal 1.0.rc2 → 1.0.rc3
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/ext/erbal/parser.c +1 -1
- data/ext/erbal/parser.rl +1 -1
- data/spec/erbal_spec.rb +6 -2
- data/tasks/gem.rake +1 -1
- metadata +3 -3
data/ext/erbal/parser.c
CHANGED
data/ext/erbal/parser.rl
CHANGED
data/spec/erbal_spec.rb
CHANGED
@@ -24,7 +24,11 @@ describe Erbal do
|
|
24
24
|
end
|
25
25
|
|
26
26
|
it "should parse the <% tag" do
|
27
|
-
erbal_parse("<% 1 + 1 %>").should == "@out = ''; 1 + 1
|
27
|
+
erbal_parse("<% 1 + 1 %>").should == "@out = ''; 1 + 1 ;\n@out"
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should add a line break after <% %> tags incase the tags ended with a comment" do
|
31
|
+
erbal_parse("<% 1 + 1 # eeek comment! %> hi mom").should == "@out = ''; 1 + 1 # eeek comment! ;\n@out << %Q` hi mom`;@out"
|
28
32
|
end
|
29
33
|
|
30
34
|
it "should parse the <%= tag" do
|
@@ -44,7 +48,7 @@ describe Erbal do
|
|
44
48
|
end
|
45
49
|
|
46
50
|
it "should concat text surrounding the tags when the opening tag is <%" do
|
47
|
-
erbal_parse("1 + 1 is <% 1 + 1 %>. Easy!").should == "@out = '';@out << %Q`1 + 1 is `; 1 + 1
|
51
|
+
erbal_parse("1 + 1 is <% 1 + 1 %>. Easy!").should == "@out = '';@out << %Q`1 + 1 is `; 1 + 1 ;\n@out << %Q`. Easy!`;@out"
|
48
52
|
end
|
49
53
|
|
50
54
|
it "should concat text surrounding the tags when the opening tag is <%=" do
|
data/tasks/gem.rake
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erbal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 977940500
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- rc3
|
10
|
+
version: 1.0.rc3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ian Leitch
|