slippers 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 13
4
+ :patch: 14
@@ -51,7 +51,7 @@ grammar Slippers
51
51
  to_s
52
52
  end
53
53
  def to_s
54
- text_value
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 / !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
@@ -1,6 +1,5 @@
1
1
  require 'rubygems'
2
2
  require 'treetop'
3
- require 'active_support'
4
3
 
5
4
  require File.dirname(__FILE__) + '/engine/template'
6
5
  require File.dirname(__FILE__) + '/engine/file_template'
@@ -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 \$notmatched\$')
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.13
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: 2009-12-05 00:00:00 +00:00
12
+ date: 2010-02-05 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency