gherkin 2.6.9-x86-mswin32 → 2.7.1-x86-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. data/History.md +11 -0
  2. data/README.md +1 -10
  3. data/features/step_definitions/json_formatter_steps.rb +1 -1
  4. data/features/step_definitions/pretty_formatter_steps.rb +1 -1
  5. data/gherkin.gemspec +2 -2
  6. data/lib/1.8/gherkin_lexer_ar.so +0 -0
  7. data/lib/1.8/gherkin_lexer_bg.so +0 -0
  8. data/lib/1.8/gherkin_lexer_ca.so +0 -0
  9. data/lib/1.8/gherkin_lexer_cs.so +0 -0
  10. data/lib/1.8/gherkin_lexer_cy_gb.so +0 -0
  11. data/lib/1.8/gherkin_lexer_da.so +0 -0
  12. data/lib/1.8/gherkin_lexer_de.so +0 -0
  13. data/lib/1.8/gherkin_lexer_en.so +0 -0
  14. data/lib/1.8/gherkin_lexer_en_au.so +0 -0
  15. data/lib/1.8/gherkin_lexer_en_lol.so +0 -0
  16. data/lib/1.8/gherkin_lexer_en_pirate.so +0 -0
  17. data/lib/1.8/gherkin_lexer_en_scouse.so +0 -0
  18. data/lib/1.8/gherkin_lexer_en_tx.so +0 -0
  19. data/lib/1.8/gherkin_lexer_eo.so +0 -0
  20. data/lib/1.8/gherkin_lexer_es.so +0 -0
  21. data/lib/1.8/gherkin_lexer_et.so +0 -0
  22. data/lib/1.8/gherkin_lexer_fi.so +0 -0
  23. data/lib/1.8/gherkin_lexer_fr.so +0 -0
  24. data/lib/1.8/gherkin_lexer_he.so +0 -0
  25. data/lib/1.8/gherkin_lexer_hr.so +0 -0
  26. data/lib/1.8/gherkin_lexer_hu.so +0 -0
  27. data/lib/1.8/gherkin_lexer_id.so +0 -0
  28. data/lib/1.8/gherkin_lexer_is.so +0 -0
  29. data/lib/1.8/gherkin_lexer_it.so +0 -0
  30. data/lib/1.8/gherkin_lexer_ja.so +0 -0
  31. data/lib/1.8/gherkin_lexer_ko.so +0 -0
  32. data/lib/1.8/gherkin_lexer_lt.so +0 -0
  33. data/lib/1.8/gherkin_lexer_lu.so +0 -0
  34. data/lib/1.8/gherkin_lexer_lv.so +0 -0
  35. data/lib/1.8/gherkin_lexer_nl.so +0 -0
  36. data/lib/1.8/gherkin_lexer_no.so +0 -0
  37. data/lib/1.8/gherkin_lexer_pl.so +0 -0
  38. data/lib/1.8/gherkin_lexer_pt.so +0 -0
  39. data/lib/1.8/gherkin_lexer_ro.so +0 -0
  40. data/lib/1.8/gherkin_lexer_ru.so +0 -0
  41. data/lib/1.8/gherkin_lexer_sk.so +0 -0
  42. data/lib/1.8/gherkin_lexer_sr_cyrl.so +0 -0
  43. data/lib/1.8/gherkin_lexer_sr_latn.so +0 -0
  44. data/lib/1.8/gherkin_lexer_sv.so +0 -0
  45. data/lib/1.8/gherkin_lexer_tr.so +0 -0
  46. data/lib/1.8/gherkin_lexer_uk.so +0 -0
  47. data/lib/1.8/gherkin_lexer_uz.so +0 -0
  48. data/lib/1.8/gherkin_lexer_vi.so +0 -0
  49. data/lib/1.8/gherkin_lexer_zh_cn.so +0 -0
  50. data/lib/1.8/gherkin_lexer_zh_tw.so +0 -0
  51. data/lib/1.9/gherkin_lexer_ar.so +0 -0
  52. data/lib/1.9/gherkin_lexer_bg.so +0 -0
  53. data/lib/1.9/gherkin_lexer_ca.so +0 -0
  54. data/lib/1.9/gherkin_lexer_cs.so +0 -0
  55. data/lib/1.9/gherkin_lexer_cy_gb.so +0 -0
  56. data/lib/1.9/gherkin_lexer_da.so +0 -0
  57. data/lib/1.9/gherkin_lexer_de.so +0 -0
  58. data/lib/1.9/gherkin_lexer_en.so +0 -0
  59. data/lib/1.9/gherkin_lexer_en_au.so +0 -0
  60. data/lib/1.9/gherkin_lexer_en_lol.so +0 -0
  61. data/lib/1.9/gherkin_lexer_en_pirate.so +0 -0
  62. data/lib/1.9/gherkin_lexer_en_scouse.so +0 -0
  63. data/lib/1.9/gherkin_lexer_en_tx.so +0 -0
  64. data/lib/1.9/gherkin_lexer_eo.so +0 -0
  65. data/lib/1.9/gherkin_lexer_es.so +0 -0
  66. data/lib/1.9/gherkin_lexer_et.so +0 -0
  67. data/lib/1.9/gherkin_lexer_fi.so +0 -0
  68. data/lib/1.9/gherkin_lexer_fr.so +0 -0
  69. data/lib/1.9/gherkin_lexer_he.so +0 -0
  70. data/lib/1.9/gherkin_lexer_hr.so +0 -0
  71. data/lib/1.9/gherkin_lexer_hu.so +0 -0
  72. data/lib/1.9/gherkin_lexer_id.so +0 -0
  73. data/lib/1.9/gherkin_lexer_is.so +0 -0
  74. data/lib/1.9/gherkin_lexer_it.so +0 -0
  75. data/lib/1.9/gherkin_lexer_ja.so +0 -0
  76. data/lib/1.9/gherkin_lexer_ko.so +0 -0
  77. data/lib/1.9/gherkin_lexer_lt.so +0 -0
  78. data/lib/1.9/gherkin_lexer_lu.so +0 -0
  79. data/lib/1.9/gherkin_lexer_lv.so +0 -0
  80. data/lib/1.9/gherkin_lexer_nl.so +0 -0
  81. data/lib/1.9/gherkin_lexer_no.so +0 -0
  82. data/lib/1.9/gherkin_lexer_pl.so +0 -0
  83. data/lib/1.9/gherkin_lexer_pt.so +0 -0
  84. data/lib/1.9/gherkin_lexer_ro.so +0 -0
  85. data/lib/1.9/gherkin_lexer_ru.so +0 -0
  86. data/lib/1.9/gherkin_lexer_sk.so +0 -0
  87. data/lib/1.9/gherkin_lexer_sr_cyrl.so +0 -0
  88. data/lib/1.9/gherkin_lexer_sr_latn.so +0 -0
  89. data/lib/1.9/gherkin_lexer_sv.so +0 -0
  90. data/lib/1.9/gherkin_lexer_tr.so +0 -0
  91. data/lib/1.9/gherkin_lexer_uk.so +0 -0
  92. data/lib/1.9/gherkin_lexer_uz.so +0 -0
  93. data/lib/1.9/gherkin_lexer_vi.so +0 -0
  94. data/lib/1.9/gherkin_lexer_zh_cn.so +0 -0
  95. data/lib/1.9/gherkin_lexer_zh_tw.so +0 -0
  96. data/lib/gherkin/formatter/filter_formatter.rb +5 -1
  97. data/lib/gherkin/formatter/json_formatter.rb +1 -1
  98. data/lib/gherkin/formatter/pretty_formatter.rb +5 -1
  99. data/spec/gherkin/formatter/json_formatter_spec.rb +1 -1
  100. data/spec/gherkin/js_lexer_spec.rb +1 -1
  101. data/spec/gherkin/json_parser_spec.rb +1 -1
  102. metadata +26 -26
data/History.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [2.7.1](https://github.com/cucumber/gherkin/compare/v2.7.0...v2.7.1)
2
+
3
+ 2.7.0 release got hosed
4
+
5
+ ## [2.7.0](https://github.com/cucumber/gherkin/compare/v2.6.9...v2.7.0)
6
+
7
+ ### Changed Features
8
+
9
+ * Formatter.close no longer closes streams. (Alan Parkinson)
10
+ * Formatter.close renamed to Formatter.done. (Aslak Hellesøy)
11
+
1
12
  ## [2.6.9](https://github.com/cucumber/gherkin/compare/v2.6.8...v2.6.9)
2
13
 
3
14
  ### Changed Features
data/README.md CHANGED
@@ -54,7 +54,7 @@ The jar file is in the central Maven repo.
54
54
  <dependency>
55
55
  <groupId>info.cukes</groupId>
56
56
  <artifactId>gherkin</artifactId>
57
- <version>2.6.9</version>
57
+ <version>2.7.1</version>
58
58
  </dependency>
59
59
 
60
60
  You can get it manually from [Maven Central](http://search.maven.org/#browse%7C-2073395818)
@@ -145,13 +145,6 @@ And you can try it out with node.js:
145
145
 
146
146
  node js/example/print.js spec/gherkin/fixtures/1.feature
147
147
 
148
- You can also try out Gherkin running in the browser (likely to move to a separate project):
149
-
150
- # Pull in the Ace (http://ace.ajax.org/) editor:
151
- git submodule update --init
152
- # Open a sample Gherkin-powered editor in Chrome
153
- open js/example/index.html
154
-
155
148
  If you're hacking and just want to rebuild the English parser:
156
149
 
157
150
  rake js/lib/gherkin/lexer/en.js
@@ -227,8 +220,6 @@ Now you can build Windows gems:
227
220
  * Run `bundle update`, so Gemfile.lock gets updated with the changes.
228
221
  * Commit changes, otherwise you will get an error at the end when a tag is made.
229
222
  * Run `bundle exec rake gems:prepare && ./build_native_gems.sh && bundle exec rake release:ALL`
230
- * The specs intermittently fail with a segfault from therubyracer. Running specs can be disabled with SKIP_JS_SPECS=true
231
- * Announce on Cucumber list, IRC and Twitter.
232
223
 
233
224
  ## Note on Patches/Pull Requests
234
225
 
@@ -17,7 +17,7 @@ end
17
17
 
18
18
  Then /^the outputted JSON should be:$/ do |expected_json|
19
19
  require 'json'
20
- @formatter.close
20
+ @formatter.done
21
21
  actual_json = @out.string
22
22
  puts actual_json
23
23
  puts JSON.pretty_generate(JSON.parse(actual_json))
@@ -20,7 +20,7 @@ module PrettyPlease
20
20
  json_formatter = Gherkin::Formatter::JSONFormatter.new(json)
21
21
  gherkin_parser = Gherkin::Parser::Parser.new(json_formatter, true)
22
22
  parse(gherkin_parser, gherkin, feature_path)
23
- json_formatter.close
23
+ json_formatter.done
24
24
 
25
25
  io = StringIO.new
26
26
  pretty_formatter = Gherkin::Formatter::PrettyFormatter.new(io, true, false)
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "gherkin"
5
5
  # If bumping the major version here, comment out the cucumber dependency below and uncomment in the Gemfile to build against a local cucumber.
6
- s.version = "2.6.9"
6
+ s.version = "2.7.1"
7
7
  s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
8
8
  s.description = "A fast Gherkin lexer/parser based on the Ragel State Machine Compiler."
9
9
  s.summary = "#{s.name}-#{s.version}"
@@ -46,7 +46,7 @@ Gem::Specification.new do |s|
46
46
 
47
47
  s.add_runtime_dependency('json', '>= 1.4.6')
48
48
 
49
- s.add_development_dependency('cucumber', '>= 1.1.3')
49
+ s.add_development_dependency('cucumber', '>= 1.1.4')
50
50
  s.add_development_dependency('rake', '>= 0.9.2')
51
51
  s.add_development_dependency('bundler', '>= 1.0.21')
52
52
  s.add_development_dependency('rspec', '>= 2.7.0')
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -89,6 +89,10 @@ module Gherkin
89
89
  @formatter.eof
90
90
  end
91
91
 
92
+ def done
93
+ @formatter.done
94
+ end
95
+
92
96
  private
93
97
 
94
98
  def detect_filter(filters)
@@ -128,7 +132,7 @@ module Gherkin
128
132
  @examples_events.clear
129
133
  @examples_tags.clear
130
134
  @examples_name = nil
131
- @examples_range = nil
135
+ @examples_range = nil
132
136
  end
133
137
 
134
138
  def replay_events!(events)
@@ -18,7 +18,7 @@ module Gherkin
18
18
  @feature_hashes = []
19
19
  end
20
20
 
21
- def close
21
+ def done
22
22
  @io.write(@feature_hashes.to_json)
23
23
  end
24
24
 
@@ -155,6 +155,10 @@ module Gherkin
155
155
  # NO-OP
156
156
  end
157
157
 
158
+ def done
159
+ # NO-OP
160
+ end
161
+
158
162
  def table(rows)
159
163
  cell_lengths = rows.map do |row|
160
164
  row.cells.map do |cell|
@@ -177,7 +181,7 @@ module Gherkin
177
181
 
178
182
  private
179
183
 
180
- def doc_string(doc_string)
184
+ def doc_string(doc_string)
181
185
  @io.puts " \"\"\"" + doc_string.content_type + "\n" + escape_triple_quotes(indent(doc_string.value, ' ')) + "\n \"\"\""
182
186
  end
183
187
 
@@ -22,7 +22,7 @@ module Gherkin
22
22
  f.result(Model::Result.new(:passed, 1, nil))
23
23
 
24
24
  f.eof
25
- f.close
25
+ f.done
26
26
 
27
27
  expected = %{
28
28
  [
@@ -1,5 +1,5 @@
1
1
  #encoding: utf-8
2
- if !defined?(JRUBY_VERSION) && !(defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby") && ENV['GHERKIN_JS'] && !ENV['SKIP_JS_SPECS']
2
+ if !defined?(JRUBY_VERSION) && !(defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby") && ENV['GHERKIN_JS']
3
3
  require 'spec_helper'
4
4
  require 'gherkin/js_lexer'
5
5
 
@@ -12,7 +12,7 @@ module Gherkin
12
12
  f = Formatter::JSONFormatter.new(io)
13
13
  p = JSONParser.new(f, f)
14
14
  p.parse(json)
15
- f.close
15
+ f.done
16
16
  expected = JSON.parse(json)
17
17
  actual = JSON.parse(io.string)
18
18
  actual.should == expected
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gherkin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.9
4
+ version: 2.7.1
5
5
  prerelease:
6
6
  platform: x86-mswin32
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-12-03 00:00:00.000000000 Z
14
+ date: 2011-12-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
18
- requirement: &2156936720 !ruby/object:Gem::Requirement
18
+ requirement: &2156940740 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,21 +23,21 @@ dependencies:
23
23
  version: 1.4.6
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2156936720
26
+ version_requirements: *2156940740
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber
29
- requirement: &2156935980 !ruby/object:Gem::Requirement
29
+ requirement: &2156940140 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
- version: 1.1.3
34
+ version: 1.1.4
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2156935980
37
+ version_requirements: *2156940140
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rake
40
- requirement: &2156935260 !ruby/object:Gem::Requirement
40
+ requirement: &2156939500 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 0.9.2
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2156935260
48
+ version_requirements: *2156939500
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
- requirement: &2156934600 !ruby/object:Gem::Requirement
51
+ requirement: &2156938280 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 1.0.21
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2156934600
59
+ version_requirements: *2156938280
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &2156933900 !ruby/object:Gem::Requirement
62
+ requirement: &2156936140 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 2.7.0
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2156933900
70
+ version_requirements: *2156936140
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rubyzip
73
- requirement: &2156933380 !ruby/object:Gem::Requirement
73
+ requirement: &2156934660 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: 0.9.5
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2156933380
81
+ version_requirements: *2156934660
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: therubyracer
84
- requirement: &2156949200 !ruby/object:Gem::Requirement
84
+ requirement: &2156931900 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: 0.9.9
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2156949200
92
+ version_requirements: *2156931900
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: yard
95
- requirement: &2156948500 !ruby/object:Gem::Requirement
95
+ requirement: &2156930420 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: 0.7.4
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2156948500
103
+ version_requirements: *2156930420
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rdiscount
106
- requirement: &2156947740 !ruby/object:Gem::Requirement
106
+ requirement: &2156929680 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: 1.6.8
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *2156947740
114
+ version_requirements: *2156929680
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: term-ansicolor
117
- requirement: &2156947060 !ruby/object:Gem::Requirement
117
+ requirement: &2156928400 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: 1.0.6
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *2156947060
125
+ version_requirements: *2156928400
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: builder
128
- requirement: &2156946480 !ruby/object:Gem::Requirement
128
+ requirement: &2156926260 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,7 +133,7 @@ dependencies:
133
133
  version: 2.1.2
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *2156946480
136
+ version_requirements: *2156926260
137
137
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
138
138
  email: cukes@googlegroups.com
139
139
  executables: []
@@ -389,7 +389,7 @@ rubyforge_project:
389
389
  rubygems_version: 1.8.10
390
390
  signing_key:
391
391
  specification_version: 3
392
- summary: gherkin-2.6.9
392
+ summary: gherkin-2.7.1
393
393
  test_files:
394
394
  - features/escaped_pipes.feature
395
395
  - features/feature_parser.feature