gherkin 2.6.9 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +11 -0
- data/README.md +1 -10
- data/features/step_definitions/json_formatter_steps.rb +1 -1
- data/features/step_definitions/pretty_formatter_steps.rb +1 -1
- data/gherkin.gemspec +2 -2
- data/lib/gherkin/formatter/filter_formatter.rb +5 -1
- data/lib/gherkin/formatter/json_formatter.rb +1 -1
- data/lib/gherkin/formatter/pretty_formatter.rb +5 -1
- data/spec/gherkin/formatter/json_formatter_spec.rb +1 -1
- data/spec/gherkin/js_lexer_spec.rb +1 -1
- data/spec/gherkin/json_parser_spec.rb +1 -1
- metadata +28 -28
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.
|
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
|
|
@@ -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.
|
23
|
+
json_formatter.done
|
24
24
|
|
25
25
|
io = StringIO.new
|
26
26
|
pretty_formatter = Gherkin::Formatter::PrettyFormatter.new(io, true, false)
|
data/gherkin.gemspec
CHANGED
@@ -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
|
+
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.
|
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')
|
@@ -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
|
-
|
135
|
+
@examples_range = nil
|
132
136
|
end
|
133
137
|
|
134
138
|
def replay_events!(events)
|
@@ -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
|
-
|
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
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#encoding: utf-8
|
2
|
-
if !defined?(JRUBY_VERSION) && !(defined?(RUBY_ENGINE) && RUBY_ENGINE == "ironruby") && ENV['GHERKIN_JS']
|
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
|
|
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.
|
4
|
+
version: 2.7.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2011-12-
|
14
|
+
date: 2011-12-10 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake-compiler
|
18
|
-
requirement: &
|
18
|
+
requirement: &2157036760 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: 0.7.9
|
24
24
|
type: :development
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *2157036760
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: json
|
29
|
-
requirement: &
|
29
|
+
requirement: &2157016300 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,21 +34,21 @@ dependencies:
|
|
34
34
|
version: 1.4.6
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *2157016300
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: cucumber
|
40
|
-
requirement: &
|
40
|
+
requirement: &2157015420 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.1.
|
45
|
+
version: 1.1.4
|
46
46
|
type: :development
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *2157015420
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: rake
|
51
|
-
requirement: &
|
51
|
+
requirement: &2157014680 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: 0.9.2
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *2157014680
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: bundler
|
62
|
-
requirement: &
|
62
|
+
requirement: &2157013760 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ! '>='
|
@@ -67,10 +67,10 @@ dependencies:
|
|
67
67
|
version: 1.0.21
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *2157013760
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: rspec
|
73
|
-
requirement: &
|
73
|
+
requirement: &2157012740 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ! '>='
|
@@ -78,10 +78,10 @@ dependencies:
|
|
78
78
|
version: 2.7.0
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
|
-
version_requirements: *
|
81
|
+
version_requirements: *2157012740
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: rubyzip
|
84
|
-
requirement: &
|
84
|
+
requirement: &2157011640 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ! '>='
|
@@ -89,10 +89,10 @@ dependencies:
|
|
89
89
|
version: 0.9.5
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
|
-
version_requirements: *
|
92
|
+
version_requirements: *2157011640
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: therubyracer
|
95
|
-
requirement: &
|
95
|
+
requirement: &2157010920 !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
98
98
|
- - ! '>='
|
@@ -100,10 +100,10 @@ dependencies:
|
|
100
100
|
version: 0.9.9
|
101
101
|
type: :development
|
102
102
|
prerelease: false
|
103
|
-
version_requirements: *
|
103
|
+
version_requirements: *2157010920
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: yard
|
106
|
-
requirement: &
|
106
|
+
requirement: &2157009840 !ruby/object:Gem::Requirement
|
107
107
|
none: false
|
108
108
|
requirements:
|
109
109
|
- - ! '>='
|
@@ -111,10 +111,10 @@ dependencies:
|
|
111
111
|
version: 0.7.4
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
|
-
version_requirements: *
|
114
|
+
version_requirements: *2157009840
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: rdiscount
|
117
|
-
requirement: &
|
117
|
+
requirement: &2157008940 !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|
120
120
|
- - ! '>='
|
@@ -122,10 +122,10 @@ dependencies:
|
|
122
122
|
version: 1.6.8
|
123
123
|
type: :development
|
124
124
|
prerelease: false
|
125
|
-
version_requirements: *
|
125
|
+
version_requirements: *2157008940
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: term-ansicolor
|
128
|
-
requirement: &
|
128
|
+
requirement: &2157008020 !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
131
131
|
- - ! '>='
|
@@ -133,10 +133,10 @@ dependencies:
|
|
133
133
|
version: 1.0.6
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
|
-
version_requirements: *
|
136
|
+
version_requirements: *2157008020
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
138
|
name: builder
|
139
|
-
requirement: &
|
139
|
+
requirement: &2157006020 !ruby/object:Gem::Requirement
|
140
140
|
none: false
|
141
141
|
requirements:
|
142
142
|
- - ! '>='
|
@@ -144,7 +144,7 @@ dependencies:
|
|
144
144
|
version: 2.1.2
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
|
-
version_requirements: *
|
147
|
+
version_requirements: *2157006020
|
148
148
|
description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
|
149
149
|
email: cukes@googlegroups.com
|
150
150
|
executables: []
|
@@ -490,7 +490,7 @@ rubyforge_project:
|
|
490
490
|
rubygems_version: 1.8.10
|
491
491
|
signing_key:
|
492
492
|
specification_version: 3
|
493
|
-
summary: gherkin-2.
|
493
|
+
summary: gherkin-2.7.1
|
494
494
|
test_files:
|
495
495
|
- features/escaped_pipes.feature
|
496
496
|
- features/feature_parser.feature
|