gherkin 2.6.4 → 2.6.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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)
@@ -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}"
@@ -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: ruby
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: rake-compiler
18
- requirement: &2152322820 !ruby/object:Gem::Requirement
18
+ requirement: &2156711500 !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: *2152322820
26
+ version_requirements: *2156711500
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
- requirement: &2152332400 !ruby/object:Gem::Requirement
29
+ requirement: &2156751980 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 1.4.6
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2152332400
37
+ version_requirements: *2156751980
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: cucumber
40
- requirement: &2152329920 !ruby/object:Gem::Requirement
40
+ requirement: &2156751260 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 1.1.2
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *2152329920
48
+ version_requirements: *2156751260
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rake
51
- requirement: &2152328040 !ruby/object:Gem::Requirement
51
+ requirement: &2156750660 !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: *2152328040
59
+ version_requirements: *2156750660
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: bundler
62
- requirement: &2152327200 !ruby/object:Gem::Requirement
62
+ requirement: &2156750200 !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: *2152327200
70
+ version_requirements: *2156750200
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rspec
73
- requirement: &2152343000 !ruby/object:Gem::Requirement
73
+ requirement: &2156749740 !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: *2152343000
81
+ version_requirements: *2156749740
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: therubyracer
84
- requirement: &2152340400 !ruby/object:Gem::Requirement
84
+ requirement: &2156749120 !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: *2152340400
92
+ version_requirements: *2156749120
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: yard
95
- requirement: &2152339440 !ruby/object:Gem::Requirement
95
+ requirement: &2156748660 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: 0.7.3
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2152339440
103
+ version_requirements: *2156748660
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rdiscount
106
- requirement: &2152338460 !ruby/object:Gem::Requirement
106
+ requirement: &2156748200 !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: *2152338460
114
+ version_requirements: *2156748200
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: term-ansicolor
117
- requirement: &2152337480 !ruby/object:Gem::Requirement
117
+ requirement: &2156747740 !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: *2152337480
125
+ version_requirements: *2156747740
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: builder
128
- requirement: &2152336300 !ruby/object:Gem::Requirement
128
+ requirement: &2156747280 !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: *2152336300
136
+ version_requirements: *2156747280
137
137
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
138
138
  email: cukes@googlegroups.com
139
139
  executables: []
@@ -269,6 +269,7 @@ files:
269
269
  - spec/gherkin/fixtures/i18n_fr2.feature
270
270
  - spec/gherkin/fixtures/i18n_no.feature
271
271
  - spec/gherkin/fixtures/i18n_zh-CN.feature
272
+ - spec/gherkin/fixtures/issue_145.feature
272
273
  - spec/gherkin/fixtures/scenario_outline_with_tags.feature
273
274
  - spec/gherkin/fixtures/scenario_without_steps.feature
274
275
  - spec/gherkin/fixtures/simple_with_comments.feature
@@ -477,7 +478,7 @@ rubyforge_project:
477
478
  rubygems_version: 1.8.10
478
479
  signing_key:
479
480
  specification_version: 3
480
- summary: gherkin-2.6.4
481
+ summary: gherkin-2.6.5
481
482
  test_files:
482
483
  - features/escaped_pipes.feature
483
484
  - features/feature_parser.feature
@@ -507,6 +508,7 @@ test_files:
507
508
  - spec/gherkin/fixtures/i18n_fr2.feature
508
509
  - spec/gherkin/fixtures/i18n_no.feature
509
510
  - spec/gherkin/fixtures/i18n_zh-CN.feature
511
+ - spec/gherkin/fixtures/issue_145.feature
510
512
  - spec/gherkin/fixtures/scenario_outline_with_tags.feature
511
513
  - spec/gherkin/fixtures/scenario_without_steps.feature
512
514
  - spec/gherkin/fixtures/simple_with_comments.feature