erbal 1.0.rc6 → 1.0.rc7

Sign up to get free protection for your applications and to get access to all the features.
data/ext/erbal/parser.c CHANGED
@@ -48,6 +48,7 @@ inline void erbal_parser_tag_open_for_output(erbal_parser *parser) {
48
48
  }
49
49
 
50
50
  inline void erbal_parser_tag_open_for_comment(erbal_parser *parser) {
51
+ erbal_parser_tag_open_common(parser, -2);
51
52
  parser->state = TAG_OPEN_FOR_COMMENT;
52
53
  }
53
54
 
@@ -176,7 +177,7 @@ void erbal_parser_init(erbal_parser *parser) {
176
177
  parser->src = rb_str_dup(parser->buffer_name);
177
178
  rb_str_buf_cat(parser->src, " = '';", 6);
178
179
 
179
- #line 180 "parser.c"
180
+ #line 181 "parser.c"
180
181
  {
181
182
  cs = erbal_parser_start;
182
183
  ts = 0;
@@ -184,14 +185,14 @@ void erbal_parser_init(erbal_parser *parser) {
184
185
  act = 0;
185
186
  }
186
187
 
187
- #line 178 "parser.rl"
188
+ #line 179 "parser.rl"
188
189
  }
189
190
 
190
191
  void erbal_parser_exec(erbal_parser *parser) {
191
192
  p = RSTRING(parser->str)->ptr;
192
193
  pe = p + strlen(p);
193
194
 
194
- #line 195 "parser.c"
195
+ #line 196 "parser.c"
195
196
  {
196
197
  if ( p == pe )
197
198
  goto _test_eof;
@@ -241,7 +242,7 @@ st1:
241
242
  case 1:
242
243
  #line 1 "NONE"
243
244
  {ts = p;}
244
- #line 245 "parser.c"
245
+ #line 246 "parser.c"
245
246
  switch( (*p) ) {
246
247
  case 37: goto st2;
247
248
  case 45: goto tr4;
@@ -263,7 +264,7 @@ st3:
263
264
  if ( ++p == pe )
264
265
  goto _test_eof3;
265
266
  case 3:
266
- #line 267 "parser.c"
267
+ #line 268 "parser.c"
267
268
  if ( (*p) == 37 )
268
269
  goto st0;
269
270
  goto tr6;
@@ -313,6 +314,6 @@ case 5:
313
314
 
314
315
  }
315
316
 
316
- #line 184 "parser.rl"
317
+ #line 185 "parser.rl"
317
318
  erbal_parser_finish(parser);
318
319
  }
data/ext/erbal/parser.rl CHANGED
@@ -47,6 +47,7 @@ inline void erbal_parser_tag_open_for_output(erbal_parser *parser) {
47
47
  }
48
48
 
49
49
  inline void erbal_parser_tag_open_for_comment(erbal_parser *parser) {
50
+ erbal_parser_tag_open_common(parser, -2);
50
51
  parser->state = TAG_OPEN_FOR_COMMENT;
51
52
  }
52
53
 
data/spec/erbal_spec.rb CHANGED
@@ -40,7 +40,7 @@ describe Erbal do
40
40
  end
41
41
 
42
42
  it "should parse the comment tag <%#" do
43
- erbal_parse("<%# I'm a comment %>").should == "@out = '';@out"
43
+ erbal_parse("Something:<br />\n<%# I'm a comment %>").should == "@out = '';@out << %Q`Something:<br />\n`;@out"
44
44
  end
45
45
 
46
46
  it "should swallow the following newline if the -%> tag is used" do
data/tasks/gem.rake CHANGED
@@ -2,7 +2,7 @@ require 'rake/gempackagetask'
2
2
  require 'yaml'
3
3
 
4
4
  WIN_SUFFIX = ENV['WIN_SUFFIX'] || 'i386-mswin32'
5
- ERBAL_VERSION = '1.0.rc6'
5
+ ERBAL_VERSION = '1.0.rc7'
6
6
 
7
7
  task :clean => :clobber_package
8
8
 
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: 977940499
4
+ hash: 977940496
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - rc6
10
- version: 1.0.rc6
9
+ - rc7
10
+ version: 1.0.rc7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ian Leitch