gherkin 2.6.9-java → 2.7.1-java

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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: java
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: &2152583680 !ruby/object:Gem::Requirement
18
+ requirement: &2164650960 !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: *2152583680
26
+ version_requirements: *2164650960
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber
29
- requirement: &2152583140 !ruby/object:Gem::Requirement
29
+ requirement: &2164649880 !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: *2152583140
37
+ version_requirements: *2164649880
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rake
40
- requirement: &2152582240 !ruby/object:Gem::Requirement
40
+ requirement: &2164648700 !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: *2152582240
48
+ version_requirements: *2164648700
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
- requirement: &2152581280 !ruby/object:Gem::Requirement
51
+ requirement: &2164647140 !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: *2152581280
59
+ version_requirements: *2164647140
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &2152596400 !ruby/object:Gem::Requirement
62
+ requirement: &2164645320 !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: *2152596400
70
+ version_requirements: *2164645320
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rubyzip
73
- requirement: &2152595720 !ruby/object:Gem::Requirement
73
+ requirement: &2164644600 !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: *2152595720
81
+ version_requirements: *2164644600
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: therubyracer
84
- requirement: &2152594320 !ruby/object:Gem::Requirement
84
+ requirement: &2164643900 !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: *2152594320
92
+ version_requirements: *2164643900
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: yard
95
- requirement: &2152593400 !ruby/object:Gem::Requirement
95
+ requirement: &2164643080 !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: *2152593400
103
+ version_requirements: *2164643080
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rdiscount
106
- requirement: &2152592680 !ruby/object:Gem::Requirement
106
+ requirement: &2164642500 !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: *2152592680
114
+ version_requirements: *2164642500
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: term-ansicolor
117
- requirement: &2152591960 !ruby/object:Gem::Requirement
117
+ requirement: &2164641920 !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: *2152591960
125
+ version_requirements: *2164641920
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: builder
128
- requirement: &2152591240 !ruby/object:Gem::Requirement
128
+ requirement: &2164641060 !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: *2152591240
136
+ version_requirements: *2164641060
137
137
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
138
138
  email: cukes@googlegroups.com
139
139
  executables: []
@@ -300,7 +300,7 @@ rubyforge_project:
300
300
  rubygems_version: 1.8.10
301
301
  signing_key:
302
302
  specification_version: 3
303
- summary: gherkin-2.6.9
303
+ summary: gherkin-2.7.1
304
304
  test_files:
305
305
  - features/escaped_pipes.feature
306
306
  - features/feature_parser.feature