slippers 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/engine/slippers.treetop +7 -2
- data/lib/slippers.rb +0 -1
- data/spec/parse_attributes.rb +1 -1
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/engine/slippers.treetop
CHANGED
@@ -51,7 +51,7 @@ grammar Slippers
|
|
51
51
|
to_s
|
52
52
|
end
|
53
53
|
def to_s
|
54
|
-
|
54
|
+
elements.inject('') {|rendered, item| rendered + item.to_s}
|
55
55
|
end
|
56
56
|
}
|
57
57
|
end
|
@@ -135,7 +135,12 @@ grammar Slippers
|
|
135
135
|
end
|
136
136
|
|
137
137
|
rule not_delimiter
|
138
|
-
escape delimiter
|
138
|
+
escape delimiter {
|
139
|
+
def to_s
|
140
|
+
delimiter.text_value
|
141
|
+
end
|
142
|
+
}
|
143
|
+
/ !delimiter . {
|
139
144
|
def to_s
|
140
145
|
text_value
|
141
146
|
end
|
data/lib/slippers.rb
CHANGED
data/spec/parse_attributes.rb
CHANGED
@@ -31,7 +31,7 @@ describe SlippersParser do
|
|
31
31
|
end
|
32
32
|
|
33
33
|
it 'should not match on escaped delimiters' do
|
34
|
-
@parser.parse('stuff \$notmatched\$').eval(stub(:nothing)).should eql('stuff
|
34
|
+
@parser.parse('stuff \$notmatched\$').eval(stub(:nothing)).should eql('stuff $notmatched$')
|
35
35
|
end
|
36
36
|
|
37
37
|
it "should render a list of objects" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slippers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sarah Taraporewalla
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-02-05 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|