gherkin 2.4.18-x86-mingw32 → 2.4.19-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,25 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gherkin (2.4.18)
5
- json (>= 1.4.6)
4
+ gherkin (2.4.19)
5
+ json (>= 1.6.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
10
  builder (3.0.0)
11
- cucumber (1.0.2)
11
+ cucumber (1.0.6)
12
12
  builder (>= 2.1.2)
13
13
  diff-lcs (>= 1.1.2)
14
- gherkin (~> 2.4.16)
14
+ gherkin (~> 2.4.18)
15
15
  json (>= 1.4.6)
16
16
  term-ansicolor (>= 1.0.6)
17
17
  diff-lcs (1.1.3)
18
- json (1.5.4)
19
- json (1.5.4-java)
18
+ json (1.6.0)
19
+ libv8 (3.3.10.2)
20
20
  rake (0.9.2)
21
21
  rake-compiler (0.7.9)
22
22
  rake
23
+ rdiscount (1.6.8)
23
24
  rspec (2.6.0)
24
25
  rspec-core (~> 2.6.0)
25
26
  rspec-expectations (~> 2.6.0)
@@ -29,6 +30,9 @@ GEM
29
30
  diff-lcs (~> 1.1.2)
30
31
  rspec-mocks (2.6.0)
31
32
  term-ansicolor (1.0.6)
33
+ therubyracer (0.9.4)
34
+ libv8 (~> 3.3.10)
35
+ yard (0.7.2)
32
36
 
33
37
  PLATFORMS
34
38
  java
@@ -37,9 +41,12 @@ PLATFORMS
37
41
  DEPENDENCIES
38
42
  builder (>= 2.1.2)
39
43
  bundler (>= 1.0.18)
40
- cucumber (>= 1.0.2)
44
+ cucumber (>= 1.0.6)
41
45
  gherkin!
42
46
  rake (>= 0.9.2)
43
47
  rake-compiler (>= 0.7.9)
48
+ rdiscount (>= 1.6.8)
44
49
  rspec (>= 2.6.0)
45
50
  term-ansicolor (>= 1.0.6)
51
+ therubyracer (>= 0.9.4)
52
+ yard (>= 0.7.2)
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.4.19](https://github.com/cucumber/gherkin/compare/v2.4.18...v2.4.19)
2
+
3
+ ### Bugfixes
4
+
5
+ * Filtering on Examples with 0 or 1 row now works ([from mailing list](http://groups.google.com/group/cukes/browse_thread/thread/3e55777ee29c445c) Aslak Hellesøy)
6
+ * Exclude .gitignore files from packaged gem ([#125](https://github.com/cucumber/gherkin/pull/125) John Hume)
7
+
1
8
  ## [2.4.18](https://github.com/cucumber/gherkin/compare/v2.4.17...v2.4.18)
2
9
 
3
10
  ### New Features
data/README.md CHANGED
@@ -52,10 +52,10 @@ The jar file is in the central Maven repo.
52
52
  <dependency>
53
53
  <groupId>info.cukes</groupId>
54
54
  <artifactId>gherkin</artifactId>
55
- <version>2.4.18</version>
55
+ <version>2.4.19</version>
56
56
  </dependency>
57
57
 
58
- You can get it manually from [ibiblio](http://mirrors.ibiblio.org/pub/mirrors/maven2/info/cukes/gherkin) or by searching at [maven central](http://search.maven.org/)
58
+ You can get it manually from [Maven Central](http://search.maven.org/#browse%7C-2073395818)
59
59
 
60
60
  ### .NET
61
61
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "gherkin"
5
- s.version = "2.4.18"
5
+ s.version = "2.4.19"
6
6
  s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
7
7
  s.description = "A fast Gherkin lexer/parser based on the Ragel State Machine Compiler."
8
8
  s.summary = "#{s.name}-#{s.version}"
@@ -42,9 +42,14 @@ Gem::Specification.new do |s|
42
42
  s.add_development_dependency('rake-compiler', '>= 0.7.9')
43
43
  end
44
44
 
45
- s.add_dependency('json', '>= 1.4.6')
45
+ # Hack because json is released as two different versions for MRI and JRuby :-/
46
+ if defined?(JRUBY_VERSION)
47
+ s.add_dependency('json', '>= 1.6.0.1')
48
+ else
49
+ s.add_dependency('json', '>= 1.6.0')
50
+ end
46
51
 
47
- s.add_development_dependency('cucumber', '>= 1.0.2')
52
+ s.add_development_dependency('cucumber', '>= 1.0.6')
48
53
  s.add_development_dependency('rake', '>= 0.9.2')
49
54
  s.add_development_dependency('bundler', '>= 1.0.18')
50
55
  s.add_development_dependency('rspec', '>= 2.6.0')
@@ -61,7 +61,12 @@ module Gherkin
61
61
  @examples_tags = examples.tags
62
62
  @examples_name = examples.name
63
63
 
64
- table_body_range = examples.rows[1].line..examples.rows[-1].line
64
+ table_body_range = case(examples.rows.length)
65
+ when 0 then examples.line_range.last..examples.line_range.last
66
+ when 1 then examples.rows[0].line..examples.rows[0].line
67
+ else examples.rows[1].line..examples.rows[-1].line
68
+ end
69
+
65
70
  @examples_range = examples.line_range.first..table_body_range.last
66
71
  if(@filter.eval([], [], [table_body_range]))
67
72
  examples.rows = @filter.filter_table_body_rows(examples.rows)
@@ -0,0 +1,14 @@
1
+ Feature: An example with only a header
2
+ See [this thread](http://groups.google.com/group/cukes/browse_thread/thread/3e55777ee29c445c)
3
+
4
+ Scenario Outline:
5
+ When I do <foo>
6
+ Then something
7
+
8
+ Examples: A
9
+ | page |
10
+ | Golf |
11
+
12
+ @failing
13
+ Examples: B
14
+ | Scottish Football |
@@ -60,6 +60,16 @@ module Gherkin
60
60
  self.file = 'scenario_outline_with_tags.feature'
61
61
  verify_filter(['~@wip'], 1..2, 12..14)
62
62
  end
63
+
64
+ it "should not replay examples from ignored scenario outline" do
65
+ self.file = 'scenario_outline_with_tags.feature'
66
+ verify_filter(['~@wip'], 1..2, 12..14)
67
+ end
68
+
69
+ it "should not choke on examples with only header" do
70
+ self.file = 'examples_with_only_header.feature'
71
+ verify_filter(['@failing'], 1..7, 12..15)
72
+ end
63
73
  end
64
74
 
65
75
  context "names" do
@@ -88,6 +98,11 @@ module Gherkin
88
98
  self.file = 'hantu_pisang.feature'
89
99
  verify_filter([/The background/], 1..5)
90
100
  end
101
+
102
+ it "should not choke on examples with only header" do
103
+ self.file = 'examples_with_only_header.feature'
104
+ verify_filter([/B/], 1..7, 12..15)
105
+ end
91
106
  end
92
107
 
93
108
  context "lines" do
@@ -112,6 +127,12 @@ module Gherkin
112
127
  it "should filter on second examples line" do
113
128
  verify_filter([57], 1..14, 46..49, 56..61)
114
129
  end
130
+
131
+ it "should not choke on examples with only header" do
132
+ self.file = 'examples_with_only_header.feature'
133
+ verify_filter([13], 1..7, 12..15)
134
+ verify_filter([14], 1..7, 12..15)
135
+ end
115
136
  end
116
137
 
117
138
  context "on the same line as step keyword" do
@@ -13,7 +13,15 @@ namespace :gems do
13
13
 
14
14
  desc 'Prepare JRuby binares'
15
15
  task :jruby => [:jar] do
16
- sh "rvm jruby@cucumber exec rspec spec"
16
+ begin
17
+ # Need to move the Gemfile.lock out of the way because the latest json gems
18
+ # don't exist in identical versions: https://github.com/flori/json/pull/95
19
+ # native gem is 1.6.0 and java gem is 1.6.0.1
20
+ mv "Gemfile.lock", "Gemfile.lock.hack"
21
+ sh "rvm jruby@cucumber exec rspec spec"
22
+ ensure
23
+ mv "Gemfile.lock.hack", "Gemfile.lock"
24
+ end
17
25
  end
18
26
 
19
27
  desc 'Prepare IronRuby binaries'
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.18
4
+ version: 2.4.19
5
5
  prerelease:
6
6
  platform: x86-mingw32
7
7
  authors:
@@ -11,33 +11,33 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-09-05 00:00:00.000000000Z
14
+ date: 2011-09-16 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json
18
- requirement: &2152330360 !ruby/object:Gem::Requirement
18
+ requirement: &2152536360 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
22
22
  - !ruby/object:Gem::Version
23
- version: 1.4.6
23
+ version: 1.6.0
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2152330360
26
+ version_requirements: *2152536360
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber
29
- requirement: &2152329880 !ruby/object:Gem::Requirement
29
+ requirement: &2152535620 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
- version: 1.0.2
34
+ version: 1.0.6
35
35
  type: :development
36
36
  prerelease: false
37
- version_requirements: *2152329880
37
+ version_requirements: *2152535620
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rake
40
- requirement: &2152329420 !ruby/object:Gem::Requirement
40
+ requirement: &2152535000 !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: *2152329420
48
+ version_requirements: *2152535000
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: bundler
51
- requirement: &2165576940 !ruby/object:Gem::Requirement
51
+ requirement: &2152534040 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 1.0.18
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *2165576940
59
+ version_requirements: *2152534040
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rspec
62
- requirement: &2165576480 !ruby/object:Gem::Requirement
62
+ requirement: &2152533540 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 2.6.0
68
68
  type: :development
69
69
  prerelease: false
70
- version_requirements: *2165576480
70
+ version_requirements: *2152533540
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: therubyracer
73
- requirement: &2165575940 !ruby/object:Gem::Requirement
73
+ requirement: &2152533000 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: 0.9.4
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2165575940
81
+ version_requirements: *2152533000
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: yard
84
- requirement: &2165575480 !ruby/object:Gem::Requirement
84
+ requirement: &2152532460 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: 0.7.2
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2165575480
92
+ version_requirements: *2152532460
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rdiscount
95
- requirement: &2165575020 !ruby/object:Gem::Requirement
95
+ requirement: &2152531960 !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: *2165575020
103
+ version_requirements: *2152531960
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: term-ansicolor
106
- requirement: &2165574560 !ruby/object:Gem::Requirement
106
+ requirement: &2152531460 !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: *2165574560
114
+ version_requirements: *2152531460
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: builder
117
- requirement: &2165574100 !ruby/object:Gem::Requirement
117
+ requirement: &2152531000 !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: *2165574100
125
+ version_requirements: *2152531000
126
126
  description: A fast Gherkin lexer/parser based on the Ragel State Machine Compiler.
127
127
  email: cukes@googlegroups.com
128
128
  executables: []
@@ -218,6 +218,7 @@ files:
218
218
  - spec/gherkin/fixtures/complex_for_filtering.feature
219
219
  - spec/gherkin/fixtures/complex_with_tags.feature
220
220
  - spec/gherkin/fixtures/dos_line_endings.feature
221
+ - spec/gherkin/fixtures/examples_with_only_header.feature
221
222
  - spec/gherkin/fixtures/hantu_pisang.feature
222
223
  - spec/gherkin/fixtures/i18n_fr.feature
223
224
  - spec/gherkin/fixtures/i18n_no.feature
@@ -382,10 +383,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
382
383
  version: '0'
383
384
  requirements: []
384
385
  rubyforge_project:
385
- rubygems_version: 1.8.6
386
+ rubygems_version: 1.8.10
386
387
  signing_key:
387
388
  specification_version: 3
388
- summary: gherkin-2.4.18
389
+ summary: gherkin-2.4.19
389
390
  test_files:
390
391
  - features/escaped_pipes.feature
391
392
  - features/feature_parser.feature
@@ -409,6 +410,7 @@ test_files:
409
410
  - spec/gherkin/fixtures/complex_for_filtering.feature
410
411
  - spec/gherkin/fixtures/complex_with_tags.feature
411
412
  - spec/gherkin/fixtures/dos_line_endings.feature
413
+ - spec/gherkin/fixtures/examples_with_only_header.feature
412
414
  - spec/gherkin/fixtures/hantu_pisang.feature
413
415
  - spec/gherkin/fixtures/i18n_fr.feature
414
416
  - spec/gherkin/fixtures/i18n_no.feature