gherkin 2.6.4-java → 2.6.5-java

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -12,4 +12,4 @@ notifications:
12
12
  - cukes-devs@googlegroups.com
13
13
  irc:
14
14
  - "irc.freenode.org#cucumber"
15
-
15
+
data/History.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [2.6.5](https://github.com/cucumber/gherkin/compare/v2.6.4...v2.6.5)
2
+
3
+ ### Bugfixes
4
+
5
+ * Bad filtering when Scenario Outline+Examples followed by Scenario ([https://github.com/cucumber/gherkin/issues/145](#145) Aslak Hellesøy)
6
+
1
7
  ## [2.6.4](https://github.com/cucumber/gherkin/compare/v2.6.3...v2.6.4)
2
8
 
3
9
  ### 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.4</version>
57
+ <version>2.6.5</version>
58
58
  </dependency>
59
59
 
60
60
  You can get it manually from [Maven Central](http://search.maven.org/#browse%7C-2073395818)
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.4"
6
+ s.version = "2.6.5"
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}"
data/lib/gherkin.jar CHANGED
Binary file
@@ -128,6 +128,7 @@ module Gherkin
128
128
  @examples_events.clear
129
129
  @examples_tags.clear
130
130
  @examples_name = nil
131
+ @examples_range = nil
131
132
  end
132
133
 
133
134
  def replay_events!(events)
@@ -0,0 +1,22 @@
1
+ Feature: issue 145
2
+
3
+ Scenario: Scenario 1
4
+ Given some condition
5
+
6
+ Scenario Outline: Scenario 2
7
+ Given some condition
8
+ When I go to <page>
9
+ Then some assertion
10
+
11
+ Examples:
12
+ | page |
13
+ | /aaaa |
14
+ | /bbbb |
15
+ | /cccc |
16
+
17
+ Scenario: Scenario 3
18
+ Given some condition
19
+
20
+ Scenario: Scenario 4
21
+ Given some condition
22
+
@@ -28,7 +28,7 @@ module Gherkin
28
28
  expected = (line_ranges.map do |line_range|
29
29
  source_lines[(line_range.first-1..line_range.last-1)]
30
30
  end.flatten).join("\n").gsub(/# __EOF__/, '')
31
- io.string.should == expected
31
+ io.string.strip.should == expected.strip
32
32
  end
33
33
 
34
34
  context "tags" do
@@ -133,6 +133,16 @@ module Gherkin
133
133
  verify_filter([13], 1..7, 12..15)
134
134
  verify_filter([14], 1..7, 12..15)
135
135
  end
136
+
137
+ it "should fix issue 145" do
138
+ self.file = 'issue_145.feature'
139
+ verify_filter([14], 1..2, 6..12, 14..14)
140
+ end
141
+
142
+ it "should fix issue 145 more tests" do
143
+ self.file = 'issue_145.feature'
144
+ verify_filter([13,15,18], 1..2, 6..13, 15..15, 16..18)
145
+ end
136
146
  end
137
147
 
138
148
  context "on the same line as step keyword" do
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.4
4
+ version: 2.6.5
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-11-12 00:00:00.000000000 Z
14
+ date: 2011-11-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
18
- requirement: &2164297360 !ruby/object:Gem::Requirement
18
+ requirement: &2156370880 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 1.4.6
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2164297360
26
+ version_requirements: *2156370880
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber
29
- requirement: &2164295440 !ruby/object:Gem::Requirement
29
+ requirement: &2156370380 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.1.2
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2164295440
37
+ version_requirements: *2156370380
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rake
40
- requirement: &2164293780 !ruby/object:Gem::Requirement
40
+ requirement: &2156369900 !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: *2164293780
48
+ version_requirements: *2156369900
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
- requirement: &2164319720 !ruby/object:Gem::Requirement
51
+ requirement: &2156369440 !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: *2164319720
59
+ version_requirements: *2156369440
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &2164317560 !ruby/object:Gem::Requirement
62
+ requirement: &2156368980 !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: *2164317560
70
+ version_requirements: *2156368980
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: therubyracer
73
- requirement: &2164316020 !ruby/object:Gem::Requirement
73
+ requirement: &2156368440 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: 0.9.9
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2164316020
81
+ version_requirements: *2156368440
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: yard
84
- requirement: &2164314220 !ruby/object:Gem::Requirement
84
+ requirement: &2156349520 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: 0.7.3
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2164314220
92
+ version_requirements: *2156349520
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rdiscount
95
- requirement: &2164313240 !ruby/object:Gem::Requirement
95
+ requirement: &2156349000 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: 1.6.8
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2164313240
103
+ version_requirements: *2156349000
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: term-ansicolor
106
- requirement: &2164335280 !ruby/object:Gem::Requirement
106
+ requirement: &2156348500 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: 1.0.6
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *2164335280
114
+ version_requirements: *2156348500
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: builder
117
- requirement: &2164332140 !ruby/object:Gem::Requirement
117
+ requirement: &2156347860 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,7 +122,7 @@ dependencies:
122
122
  version: 2.1.2
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *2164332140
125
+ version_requirements: *2156347860
126
126
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
127
127
  email: cukes@googlegroups.com
128
128
  executables: []
@@ -213,6 +213,7 @@ files:
213
213
  - spec/gherkin/fixtures/i18n_fr2.feature
214
214
  - spec/gherkin/fixtures/i18n_no.feature
215
215
  - spec/gherkin/fixtures/i18n_zh-CN.feature
216
+ - spec/gherkin/fixtures/issue_145.feature
216
217
  - spec/gherkin/fixtures/scenario_outline_with_tags.feature
217
218
  - spec/gherkin/fixtures/scenario_without_steps.feature
218
219
  - spec/gherkin/fixtures/simple_with_comments.feature
@@ -289,7 +290,7 @@ rubyforge_project:
289
290
  rubygems_version: 1.8.10
290
291
  signing_key:
291
292
  specification_version: 3
292
- summary: gherkin-2.6.4
293
+ summary: gherkin-2.6.5
293
294
  test_files:
294
295
  - features/escaped_pipes.feature
295
296
  - features/feature_parser.feature
@@ -319,6 +320,7 @@ test_files:
319
320
  - spec/gherkin/fixtures/i18n_fr2.feature
320
321
  - spec/gherkin/fixtures/i18n_no.feature
321
322
  - spec/gherkin/fixtures/i18n_zh-CN.feature
323
+ - spec/gherkin/fixtures/issue_145.feature
322
324
  - spec/gherkin/fixtures/scenario_outline_with_tags.feature
323
325
  - spec/gherkin/fixtures/scenario_without_steps.feature
324
326
  - spec/gherkin/fixtures/simple_with_comments.feature