gherkin 2.2.3 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +5 -0
  2. data/VERSION +1 -1
  3. data/ragel/lexer.c.rl.erb +6 -2
  4. metadata +5 -5
@@ -1,3 +1,8 @@
1
+ == 2.2.4 (2010-09-22)
2
+
3
+ === Bugfixes
4
+ * C99 features used by gherkin code (#75 Graham Agnew)
5
+
1
6
  == 2.2.3 (2010-09-21)
2
7
 
3
8
  === Bugfixes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.2.4
@@ -198,7 +198,9 @@ static VALUE rb_eGherkinLexingError;
198
198
  if (cs < lexer_first_final) {
199
199
  if (raise_lexer_error != NULL) {
200
200
  size_t count = 0;
201
- int newstr_count = 0;
201
+ VALUE newstr_val;
202
+ char *newstr;
203
+ int newstr_count = 0;
202
204
  size_t len;
203
205
  const char *buff;
204
206
  if (lexer->last_newline != 0) {
@@ -209,7 +211,9 @@ static VALUE rb_eGherkinLexingError;
209
211
  buff = data;
210
212
  }
211
213
 
212
- char newstr[len];
214
+ // Allocate as a ruby string so that it gets cleaned up by GC
215
+ newstr_val = rb_str_new(buff, len);
216
+ newstr = RSTRING_PTR(newstr_val);
213
217
 
214
218
  for (count = 0; count < len; count++) {
215
219
  if(buff[count] == 10) {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 3
10
- version: 2.2.3
9
+ - 4
10
+ version: 2.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Sassak
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-09-21 00:00:00 +02:00
20
+ date: 2010-09-22 00:00:00 +02:00
21
21
  default_executable: gherkin
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -504,7 +504,7 @@ rubyforge_project:
504
504
  rubygems_version: 1.3.7
505
505
  signing_key:
506
506
  specification_version: 3
507
- summary: gherkin-2.2.3
507
+ summary: gherkin-2.2.4
508
508
  test_files:
509
509
  - features/escaped_pipes.feature
510
510
  - features/feature_parser.feature