cucumber_priority 0.3.0 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08253bd452fab3691947f47e32a8dd918b40dc1d87984383f11ec07d41662b7f'
4
- data.tar.gz: 5fbc94f014fc42891fcad6737aa78297f2f12485f92230615af538d400cdbd06
3
+ metadata.gz: 8ed9a7072272f713e1e32b980c5ca99c41ae94d8f6610286c5fb8ca23b5d3315
4
+ data.tar.gz: e1cfeb222c4461a540807af09cd09c5f6e0bf6b904c44cfd0399b44b0ee58bcf
5
5
  SHA512:
6
- metadata.gz: 901cc83b57973c9c6b2bdad8590be51bd7092b6ae46d50bec50506c67141b39803d6472991a28d43265c55621b60d6f79ef12460944c99c0fe147f5bc2fc558c
7
- data.tar.gz: 8c5a6341e332a6e42c277bcec38242d2ff682059ec23eb837ddcba771cbbeec0293f920cda80a424c6463693b1f00cf5856ed2ed6b0f4dc00ca81540b0f7a546
6
+ metadata.gz: 73ebacfbe80292698d474854ab78e637b84732f9818335f5bbe8b0b02272ede3b2c61b0961c8cbcf9aeaea78a9ebe169f209c22cbc1f7d856801cdfdf46c8890
7
+ data.tar.gz: 3a1f262fee2ee400448e7a7f357755c2c2fd6c89b721186bfff90209eb5ea4f176c9bfa72bfc692457d8294c4566e067812392d241ef3f1ad412907656574393
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: Tests
3
+ 'on':
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-20.04
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ include:
17
+ - ruby: 2.5.3
18
+ gemfile: Gemfile.cucumber-2.4
19
+ - ruby: 2.5.3
20
+ gemfile: Gemfile.cucumber-3.0
21
+ - ruby: 2.5.3
22
+ gemfile: Gemfile.cucumber-3.1
23
+ - ruby: 2.6.6
24
+ gemfile: Gemfile.cucumber-4.1
25
+ - ruby: 2.6.6
26
+ gemfile: Gemfile.cucumber-5.3
27
+ - ruby: 2.7.2
28
+ gemfile: Gemfile.cucumber-4.1
29
+ - ruby: 2.7.2
30
+ gemfile: Gemfile.cucumber-5.3
31
+ - ruby: 3.0.0
32
+ gemfile: Gemfile.cucumber-4.1
33
+ - ruby: 3.0.0
34
+ gemfile: Gemfile.cucumber-5.3
35
+ env:
36
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
37
+ steps:
38
+ - uses: actions/checkout@v2
39
+ - name: Install ruby
40
+ uses: ruby/setup-ruby@v1
41
+ with:
42
+ ruby-version: "${{ matrix.ruby }}"
43
+ - name: Bundle
44
+ run: |
45
+ gem install bundler:1.17.3
46
+ bundle install --no-deployment
47
+ - name: Run tests
48
+ run: bundle exec rake current_rspec
data/.gitignore CHANGED
@@ -6,3 +6,4 @@ pkg
6
6
  .rvmrc
7
7
  log/*.log
8
8
  .byebug_history
9
+ /tmp
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.3
1
+ 2.5.3
data/Gemfile CHANGED
@@ -1 +1 @@
1
- ./gemfiles/Gemfile.cucumber-2.4
1
+ Gemfile.cucumber-2.4
@@ -7,6 +7,7 @@ gem 'cucumber', '~> 1.3.20'
7
7
  gem 'rspec', '~> 1.0'
8
8
  gem 'gemika'
9
9
  gem 'rake', '=10.0.4'
10
+ gem 'aruba', '<0.7'
10
11
 
11
12
  # Gem under test
12
- gem 'cucumber_priority', :path => '..'
13
+ gem 'cucumber_priority', :path => '.'
@@ -1,32 +1,44 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- cucumber_priority (0.2.0)
4
+ cucumber_priority (0.3.3)
5
5
  cucumber
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- builder (3.2.2)
10
+ aruba (0.6.2)
11
+ childprocess (>= 0.3.6)
12
+ cucumber (>= 1.1.1)
13
+ rspec-expectations (>= 2.7.0)
14
+ builder (3.2.3)
15
+ childprocess (0.9.0)
16
+ ffi (~> 1.0, >= 1.0.11)
11
17
  cucumber (1.3.20)
12
18
  builder (>= 2.1.2)
13
19
  diff-lcs (>= 1.1.3)
14
20
  gherkin (~> 2.12)
15
21
  multi_json (>= 1.7.5, < 2.0)
16
22
  multi_test (>= 0.1.2)
17
- diff-lcs (1.2.5)
18
- gemika (0.3.2)
23
+ diff-lcs (1.3)
24
+ ffi (1.9.18)
25
+ gemika (0.5.0)
19
26
  gherkin (2.12.2)
20
27
  multi_json (~> 1.3)
21
- multi_json (1.11.2)
28
+ multi_json (1.13.1)
22
29
  multi_test (0.1.2)
23
30
  rake (10.0.4)
24
31
  rspec (1.3.2)
32
+ rspec-expectations (3.7.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.7.0)
35
+ rspec-support (3.7.1)
25
36
 
26
37
  PLATFORMS
27
38
  ruby
28
39
 
29
40
  DEPENDENCIES
41
+ aruba (< 0.7)
30
42
  cucumber (~> 1.3.20)
31
43
  cucumber_priority!
32
44
  gemika
@@ -7,6 +7,7 @@ gem 'cucumber', '~> 2.4.0'
7
7
  gem 'rspec', '~> 3.0'
8
8
  gem 'gemika'
9
9
  gem 'rake'
10
+ gem 'aruba', '<0.7'
10
11
 
11
12
  # Gem under test
12
- gem 'cucumber_priority', :path => '..'
13
+ gem 'cucumber_priority', :path => '.'
@@ -1,13 +1,19 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- cucumber_priority (0.2.0)
4
+ cucumber_priority (0.3.3)
5
5
  cucumber
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
+ aruba (0.6.2)
11
+ childprocess (>= 0.3.6)
12
+ cucumber (>= 1.1.1)
13
+ rspec-expectations (>= 2.7.0)
10
14
  builder (3.2.3)
15
+ childprocess (0.9.0)
16
+ ffi (~> 1.0, >= 1.0.11)
11
17
  cucumber (2.4.0)
12
18
  builder (>= 2.1.2)
13
19
  cucumber-core (~> 1.5.0)
@@ -20,7 +26,8 @@ GEM
20
26
  gherkin (~> 4.0)
21
27
  cucumber-wire (0.0.1)
22
28
  diff-lcs (1.3)
23
- gemika (0.3.2)
29
+ ffi (1.9.23)
30
+ gemika (0.5.0)
24
31
  gherkin (4.1.3)
25
32
  multi_json (1.13.1)
26
33
  multi_test (0.1.2)
@@ -43,6 +50,7 @@ PLATFORMS
43
50
  ruby
44
51
 
45
52
  DEPENDENCIES
53
+ aruba (< 0.7)
46
54
  cucumber (~> 2.4.0)
47
55
  cucumber_priority!
48
56
  gemika
@@ -50,4 +58,4 @@ DEPENDENCIES
50
58
  rspec (~> 3.0)
51
59
 
52
60
  BUNDLED WITH
53
- 1.16.1
61
+ 1.17.3
@@ -7,6 +7,7 @@ gem 'cucumber', '~> 3.0.0'
7
7
  gem 'rspec', '~> 3.0'
8
8
  gem 'gemika'
9
9
  gem 'rake'
10
+ gem 'aruba', '<0.7'
10
11
 
11
12
  # Gem under test
12
- gem 'cucumber_priority'
13
+ gem 'cucumber_priority', :path => '.'
@@ -1,14 +1,20 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cucumber_priority (0.3.3)
5
+ cucumber
6
+
1
7
  GEM
2
8
  remote: https://rubygems.org/
3
9
  specs:
4
- activesupport (5.0.1)
5
- concurrent-ruby (~> 1.0, >= 1.0.2)
6
- i18n (~> 0.7)
7
- minitest (~> 5.1)
8
- tzinfo (~> 1.1)
10
+ aruba (0.6.2)
11
+ childprocess (>= 0.3.6)
12
+ cucumber (>= 1.1.1)
13
+ rspec-expectations (>= 2.7.0)
9
14
  backports (3.11.1)
10
15
  builder (3.2.3)
11
- concurrent-ruby (1.0.3)
16
+ childprocess (0.9.0)
17
+ ffi (~> 1.0, >= 1.0.11)
12
18
  cucumber (3.0.2)
13
19
  builder (>= 2.1.2)
14
20
  cucumber-core (~> 3.0.0)
@@ -25,14 +31,10 @@ GEM
25
31
  cucumber-expressions (4.0.4)
26
32
  cucumber-tag_expressions (1.1.1)
27
33
  cucumber-wire (0.0.1)
28
- cucumber_priority (0.1.2)
29
- activesupport
30
- cucumber
31
34
  diff-lcs (1.3)
32
- gemika (0.3.2)
35
+ ffi (1.9.23)
36
+ gemika (0.5.0)
33
37
  gherkin (4.1.3)
34
- i18n (0.7.0)
35
- minitest (5.10.1)
36
38
  multi_json (1.13.1)
37
39
  multi_test (0.1.2)
38
40
  rake (10.4.2)
@@ -49,16 +51,14 @@ GEM
49
51
  diff-lcs (>= 1.2.0, < 2.0)
50
52
  rspec-support (~> 3.5.0)
51
53
  rspec-support (3.5.0)
52
- thread_safe (0.3.5)
53
- tzinfo (1.2.2)
54
- thread_safe (~> 0.1)
55
54
 
56
55
  PLATFORMS
57
56
  ruby
58
57
 
59
58
  DEPENDENCIES
59
+ aruba (< 0.7)
60
60
  cucumber (~> 3.0.0)
61
- cucumber_priority
61
+ cucumber_priority!
62
62
  gemika
63
63
  rake
64
64
  rspec (~> 3.0)
@@ -7,6 +7,7 @@ gem 'cucumber', '~> 3.1.0'
7
7
  gem 'rspec', '~> 3.0'
8
8
  gem 'gemika'
9
9
  gem 'rake'
10
+ gem 'aruba', '<0.7'
10
11
 
11
12
  # Gem under test
12
- gem 'cucumber_priority'
13
+ gem 'cucumber_priority', :path => '.'
@@ -1,14 +1,20 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cucumber_priority (0.3.3)
5
+ cucumber
6
+
1
7
  GEM
2
8
  remote: https://rubygems.org/
3
9
  specs:
4
- activesupport (5.0.1)
5
- concurrent-ruby (~> 1.0, >= 1.0.2)
6
- i18n (~> 0.7)
7
- minitest (~> 5.1)
8
- tzinfo (~> 1.1)
10
+ aruba (0.6.2)
11
+ childprocess (>= 0.3.6)
12
+ cucumber (>= 1.1.1)
13
+ rspec-expectations (>= 2.7.0)
9
14
  backports (3.11.1)
10
15
  builder (3.2.3)
11
- concurrent-ruby (1.0.3)
16
+ childprocess (0.9.0)
17
+ ffi (~> 1.0, >= 1.0.11)
12
18
  cucumber (3.1.0)
13
19
  builder (>= 2.1.2)
14
20
  cucumber-core (~> 3.1.0)
@@ -25,14 +31,10 @@ GEM
25
31
  cucumber-expressions (5.0.13)
26
32
  cucumber-tag_expressions (1.1.1)
27
33
  cucumber-wire (0.0.1)
28
- cucumber_priority (0.1.2)
29
- activesupport
30
- cucumber
31
34
  diff-lcs (1.3)
32
- gemika (0.3.2)
35
+ ffi (1.9.23)
36
+ gemika (0.5.0)
33
37
  gherkin (5.0.0)
34
- i18n (0.7.0)
35
- minitest (5.10.1)
36
38
  multi_json (1.13.1)
37
39
  multi_test (0.1.2)
38
40
  rake (10.4.2)
@@ -49,16 +51,14 @@ GEM
49
51
  diff-lcs (>= 1.2.0, < 2.0)
50
52
  rspec-support (~> 3.5.0)
51
53
  rspec-support (3.5.0)
52
- thread_safe (0.3.5)
53
- tzinfo (1.2.2)
54
- thread_safe (~> 0.1)
55
54
 
56
55
  PLATFORMS
57
56
  ruby
58
57
 
59
58
  DEPENDENCIES
59
+ aruba (< 0.7)
60
60
  cucumber (~> 3.1.0)
61
- cucumber_priority
61
+ cucumber_priority!
62
62
  gemika
63
63
  rake
64
64
  rspec (~> 3.0)
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'cucumber', '~> 4.1.0'
5
+
6
+ # Development dependencies
7
+ gem 'rspec', '~> 3.0'
8
+ gem 'gemika'
9
+ gem 'rake'
10
+ gem 'aruba'
11
+
12
+ # Gem under test
13
+ gem 'cucumber_priority', :path => '.'
@@ -0,0 +1,102 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cucumber_priority (0.3.3)
5
+ cucumber
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activesupport (6.1.3.1)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (>= 1.6, < 2)
13
+ minitest (>= 5.1)
14
+ tzinfo (~> 2.0)
15
+ zeitwerk (~> 2.3)
16
+ aruba (0.6.2)
17
+ childprocess (>= 0.3.6)
18
+ cucumber (>= 1.1.1)
19
+ rspec-expectations (>= 2.7.0)
20
+ builder (3.2.4)
21
+ childprocess (4.0.0)
22
+ concurrent-ruby (1.1.8)
23
+ cucumber (4.1.0)
24
+ builder (~> 3.2, >= 3.2.3)
25
+ cucumber-core (~> 7.1, >= 7.1.0)
26
+ cucumber-create-meta (~> 1.0.0, >= 1.0.0)
27
+ cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
28
+ cucumber-gherkin (~> 14.0, >= 14.0.1)
29
+ cucumber-html-formatter (~> 7.0, >= 7.0.0)
30
+ cucumber-messages (~> 12.2, >= 12.2.0)
31
+ cucumber-wire (~> 3.1, >= 3.1.0)
32
+ diff-lcs (~> 1.3, >= 1.3, < 1.4)
33
+ multi_test (~> 0.1, >= 0.1.2)
34
+ sys-uname (~> 1.0, >= 1.0.2)
35
+ cucumber-core (7.1.0)
36
+ cucumber-gherkin (~> 14.0, >= 14.0.1)
37
+ cucumber-messages (~> 12.2, >= 12.2.0)
38
+ cucumber-tag-expressions (~> 2.0, >= 2.0.4)
39
+ cucumber-create-meta (1.0.0)
40
+ cucumber-messages (~> 12.2, >= 12.2.0)
41
+ sys-uname (~> 1.2, >= 1.2.1)
42
+ cucumber-cucumber-expressions (10.3.0)
43
+ cucumber-gherkin (14.2.0)
44
+ cucumber-messages (~> 12.4, >= 12.4.0)
45
+ cucumber-html-formatter (7.2.0)
46
+ cucumber-messages (~> 12.4, >= 12.4.0)
47
+ cucumber-messages (12.4.0)
48
+ protobuf-cucumber (~> 3.10, >= 3.10.8)
49
+ cucumber-tag-expressions (2.0.4)
50
+ cucumber-wire (3.1.0)
51
+ cucumber-core (~> 7.1, >= 7.1.0)
52
+ cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
53
+ cucumber-messages (~> 12.2, >= 12.2.0)
54
+ diff-lcs (1.3)
55
+ ffi (1.15.0)
56
+ gemika (0.5.0)
57
+ i18n (1.8.9)
58
+ concurrent-ruby (~> 1.0)
59
+ middleware (0.1.0)
60
+ minitest (5.14.4)
61
+ multi_test (0.1.2)
62
+ protobuf-cucumber (3.10.8)
63
+ activesupport (>= 3.2)
64
+ middleware
65
+ thor
66
+ thread_safe
67
+ rake (13.0.3)
68
+ rspec (3.10.0)
69
+ rspec-core (~> 3.10.0)
70
+ rspec-expectations (~> 3.10.0)
71
+ rspec-mocks (~> 3.10.0)
72
+ rspec-core (3.10.1)
73
+ rspec-support (~> 3.10.0)
74
+ rspec-expectations (3.10.1)
75
+ diff-lcs (>= 1.2.0, < 2.0)
76
+ rspec-support (~> 3.10.0)
77
+ rspec-mocks (3.10.2)
78
+ diff-lcs (>= 1.2.0, < 2.0)
79
+ rspec-support (~> 3.10.0)
80
+ rspec-support (3.10.2)
81
+ sys-uname (1.2.2)
82
+ ffi (~> 1.1)
83
+ thor (1.1.0)
84
+ thread_safe (0.3.6)
85
+ tzinfo (2.0.4)
86
+ concurrent-ruby (~> 1.0)
87
+ zeitwerk (2.4.2)
88
+
89
+ PLATFORMS
90
+ ruby
91
+ x86_64-linux
92
+
93
+ DEPENDENCIES
94
+ aruba
95
+ cucumber (~> 4.1.0)
96
+ cucumber_priority!
97
+ gemika
98
+ rake
99
+ rspec (~> 3.0)
100
+
101
+ BUNDLED WITH
102
+ 2.2.3
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'cucumber', '~> 5.3.0'
5
+
6
+ # Development dependencies
7
+ gem 'rspec', '~> 3.0'
8
+ gem 'gemika'
9
+ gem 'rake'
10
+ gem 'aruba'
11
+
12
+ # Gem under test
13
+ gem 'cucumber_priority', :path => '.'
@@ -0,0 +1,102 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cucumber_priority (0.3.3)
5
+ cucumber
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activesupport (6.1.3.1)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (>= 1.6, < 2)
13
+ minitest (>= 5.1)
14
+ tzinfo (~> 2.0)
15
+ zeitwerk (~> 2.3)
16
+ aruba (0.6.2)
17
+ childprocess (>= 0.3.6)
18
+ cucumber (>= 1.1.1)
19
+ rspec-expectations (>= 2.7.0)
20
+ builder (3.2.4)
21
+ childprocess (4.0.0)
22
+ concurrent-ruby (1.1.8)
23
+ cucumber (5.3.0)
24
+ builder (~> 3.2, >= 3.2.4)
25
+ cucumber-core (~> 8.0, >= 8.0.1)
26
+ cucumber-create-meta (~> 2.0, >= 2.0.2)
27
+ cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
28
+ cucumber-gherkin (~> 15.0, >= 15.0.2)
29
+ cucumber-html-formatter (~> 9.0, >= 9.0.0)
30
+ cucumber-messages (~> 13.1, >= 13.1.0)
31
+ cucumber-wire (~> 4.0, >= 4.0.1)
32
+ diff-lcs (~> 1.4, >= 1.4.4)
33
+ multi_test (~> 0.1, >= 0.1.2)
34
+ sys-uname (~> 1.2, >= 1.2.1)
35
+ cucumber-core (8.0.1)
36
+ cucumber-gherkin (~> 15.0, >= 15.0.2)
37
+ cucumber-messages (~> 13.0, >= 13.0.1)
38
+ cucumber-tag-expressions (~> 2.0, >= 2.0.4)
39
+ cucumber-create-meta (2.0.4)
40
+ cucumber-messages (~> 13.1, >= 13.1.0)
41
+ sys-uname (~> 1.2, >= 1.2.1)
42
+ cucumber-cucumber-expressions (10.3.0)
43
+ cucumber-gherkin (15.0.2)
44
+ cucumber-messages (~> 13.0, >= 13.0.1)
45
+ cucumber-html-formatter (9.0.0)
46
+ cucumber-messages (~> 13.0, >= 13.0.1)
47
+ cucumber-messages (13.2.1)
48
+ protobuf-cucumber (~> 3.10, >= 3.10.8)
49
+ cucumber-tag-expressions (2.0.4)
50
+ cucumber-wire (4.0.1)
51
+ cucumber-core (~> 8.0, >= 8.0.1)
52
+ cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
53
+ cucumber-messages (~> 13.0, >= 13.0.1)
54
+ diff-lcs (1.4.4)
55
+ ffi (1.15.0)
56
+ gemika (0.5.0)
57
+ i18n (1.8.9)
58
+ concurrent-ruby (~> 1.0)
59
+ middleware (0.1.0)
60
+ minitest (5.14.4)
61
+ multi_test (0.1.2)
62
+ protobuf-cucumber (3.10.8)
63
+ activesupport (>= 3.2)
64
+ middleware
65
+ thor
66
+ thread_safe
67
+ rake (13.0.3)
68
+ rspec (3.10.0)
69
+ rspec-core (~> 3.10.0)
70
+ rspec-expectations (~> 3.10.0)
71
+ rspec-mocks (~> 3.10.0)
72
+ rspec-core (3.10.1)
73
+ rspec-support (~> 3.10.0)
74
+ rspec-expectations (3.10.1)
75
+ diff-lcs (>= 1.2.0, < 2.0)
76
+ rspec-support (~> 3.10.0)
77
+ rspec-mocks (3.10.2)
78
+ diff-lcs (>= 1.2.0, < 2.0)
79
+ rspec-support (~> 3.10.0)
80
+ rspec-support (3.10.2)
81
+ sys-uname (1.2.2)
82
+ ffi (~> 1.1)
83
+ thor (1.1.0)
84
+ thread_safe (0.3.6)
85
+ tzinfo (2.0.4)
86
+ concurrent-ruby (~> 1.0)
87
+ zeitwerk (2.4.2)
88
+
89
+ PLATFORMS
90
+ ruby
91
+ x86_64-linux
92
+
93
+ DEPENDENCIES
94
+ aruba
95
+ cucumber (~> 5.3.0)
96
+ cucumber_priority!
97
+ gemika
98
+ rake
99
+ rspec (~> 3.0)
100
+
101
+ BUNDLED WITH
102
+ 2.2.3
data/Gemfile.lock CHANGED
@@ -1 +1 @@
1
- ./gemfiles/Gemfile.cucumber-2.4.lock
1
+ Gemfile.cucumber-2.4.lock
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- cucumber_priority [![Build Status](https://travis-ci.org/makandra/cucumber_priority.svg?branch=master)](https://travis-ci.org/makandra/cucumber_priority)
1
+ cucumber_priority [![Tests](https://github.com/makandra/cucumber_priority/workflows/Tests/badge.svg)](https://github.com/makandra/cucumber_priority/actions?query=branch:master)
2
2
  =================
3
3
 
4
4
  Overridable step definitions for Cucumber
@@ -77,16 +77,16 @@ Development
77
77
 
78
78
  There are tests in `spec`. We only accept PRs with tests. To run tests:
79
79
 
80
- - Install Ruby 2.5.0
80
+ - Install Ruby 2.5.3
81
81
  - Install development dependencies using `bundle install`
82
82
  - Run tests using `bundle exec rspec`
83
83
 
84
- We recommend to test large changes against multiple versions of Ruby and multiple dependency sets. Supported combinations are configured in `.travis.yml`. We provide some rake tasks to help with this:
84
+ We recommend to test large changes against multiple versions of Ruby and multiple dependency sets. Supported combinations are configured in `.github/workflows/test.yml`. We provide some rake tasks to help with this:
85
85
 
86
86
  - Install development dependencies using `bundle matrix:install`
87
87
  - Run tests using `bundle matrix:spec`
88
88
 
89
- Note that we have configured Travis CI to automatically run tests in all supported Ruby versions and dependency sets after each push. We will only merge pull requests after a green Travis build.
89
+ Note that we have configured GitHub Actions to automatically run tests in all supported Ruby versions and dependency sets after each push. We will only merge pull requests after a green workflow build.
90
90
 
91
91
  If you would like to contribute:
92
92
 
@@ -11,10 +11,13 @@ Gem::Specification.new do |s|
11
11
  s.summary = %q{Overridable step definitions for Cucumber}
12
12
  s.description = %q{cucumber_priority provides a way to mark step definitions as overridable, meaning that they can always be overshadowed by a more specific version without raising an error.}
13
13
  s.license = 'MIT'
14
+ s.metadata = { 'rubygems_mfa_required' => 'true' }
14
15
 
15
- s.files = `git ls-files`.split("\n")
16
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
+ s.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(gemfiles|bin|test|spec|features)/})
18
+ end
19
+ s.bindir = "exe"
20
+ s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
18
21
  s.require_paths = ["lib"]
19
22
 
20
23
  s.add_dependency('cucumber')
@@ -12,13 +12,13 @@ module CucumberPriority
12
12
  elsif overriding.size == 1
13
13
  # If our ambiguity is due to another overridable step,
14
14
  # we can use the overriding step
15
- overriding
15
+ overriding.first
16
16
  elsif overriding.size == 0
17
17
  # If we have multiple overridable steps, we use the one
18
18
  # with the highest priority.
19
19
  overridable.sort_by { |match|
20
20
  - match.step_definition.priority
21
- }
21
+ }.first
22
22
  end
23
23
  end
24
24
 
@@ -34,7 +34,7 @@ if Cucumber::VERSION >= '3'
34
34
  def call_with_priority(*args)
35
35
  call_without_priority(*args)
36
36
  rescue Ambiguous => e
37
- CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)
37
+ [CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)]
38
38
  end
39
39
 
40
40
  CucumberPriority::Util.alias_chain self, :call, :priority
@@ -44,22 +44,39 @@ if Cucumber::VERSION >= '3'
44
44
 
45
45
  elsif Cucumber::VERSION >= '2.3'
46
46
 
47
+
48
+ # Cucumber 2.3 or higher has methods that return an array of Cucumber::StepMatch objects.
49
+ # These methods raise Cucumber::Ambiguous if the array has more than one element.
50
+ # Why this is implemented twice, noone knows...
51
+ #
47
52
  module Cucumber
53
+
48
54
  class Runtime
49
55
  class SupportCode
50
-
51
- # Cucumber 2.3 or higher has a single method #step_matches which returns an
52
- # array of Cucumber::StepMatch objects.
53
- # This method raises Cucumber::Ambiguous if the array has more than one element.
54
56
  def step_matches_with_priority(*args)
55
57
  step_matches_without_priority(*args)
56
58
  rescue Ambiguous => e
57
- CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)
59
+ [CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)]
58
60
  end
59
61
 
60
62
  CucumberPriority::Util.alias_chain self, :step_matches, :priority
61
63
  end
62
64
  end
65
+
66
+ module StepMatchSearch
67
+ class AssertUnambiguousMatch
68
+
69
+ def call_with_priority(*args)
70
+ call_without_priority(*args)
71
+ rescue Ambiguous => e
72
+ [CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)]
73
+ end
74
+
75
+ CucumberPriority::Util.alias_chain self, :call, :priority
76
+
77
+ end
78
+ end
79
+
63
80
  end
64
81
 
65
82
  else
@@ -74,7 +91,7 @@ else
74
91
  def step_match_with_priority(*args)
75
92
  step_match_without_priority(*args)
76
93
  rescue Ambiguous => e
77
- CucumberPriority::Resolver.resolve_ambiguity_through_priority(e).first
94
+ CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)
78
95
  end
79
96
 
80
97
  CucumberPriority::Util.alias_chain self, :step_match, :priority
@@ -1,3 +1,3 @@
1
1
  module CucumberPriority
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber_priority
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-28 00:00:00.000000000 Z
11
+ date: 2022-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -32,24 +32,28 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
+ - ".github/workflows/test.yml"
35
36
  - ".gitignore"
36
37
  - ".rspec"
37
38
  - ".ruby-version"
38
- - ".travis.yml"
39
39
  - Gemfile
40
+ - Gemfile.cucumber-1.3
41
+ - Gemfile.cucumber-1.3.lock
42
+ - Gemfile.cucumber-2.4
43
+ - Gemfile.cucumber-2.4.lock
44
+ - Gemfile.cucumber-3.0
45
+ - Gemfile.cucumber-3.0.lock
46
+ - Gemfile.cucumber-3.1
47
+ - Gemfile.cucumber-3.1.lock
48
+ - Gemfile.cucumber-4.1
49
+ - Gemfile.cucumber-4.1.lock
50
+ - Gemfile.cucumber-5.3
51
+ - Gemfile.cucumber-5.3.lock
40
52
  - Gemfile.lock
41
53
  - LICENSE
42
54
  - README.md
43
55
  - Rakefile
44
56
  - cucumber_priority.gemspec
45
- - gemfiles/Gemfile.cucumber-1.3
46
- - gemfiles/Gemfile.cucumber-1.3.lock
47
- - gemfiles/Gemfile.cucumber-2.4
48
- - gemfiles/Gemfile.cucumber-2.4.lock
49
- - gemfiles/Gemfile.cucumber-3.0
50
- - gemfiles/Gemfile.cucumber-3.0.lock
51
- - gemfiles/Gemfile.cucumber-3.1
52
- - gemfiles/Gemfile.cucumber-3.1.lock
53
57
  - lib/cucumber_priority.rb
54
58
  - lib/cucumber_priority/ambiguous_error_ext.rb
55
59
  - lib/cucumber_priority/require_cucumber.rb
@@ -57,14 +61,11 @@ files:
57
61
  - lib/cucumber_priority/step_definition_ext.rb
58
62
  - lib/cucumber_priority/util.rb
59
63
  - lib/cucumber_priority/version.rb
60
- - spec/cucumber_priority/support_code_ext_spec.rb
61
- - spec/spec.opts
62
- - spec/spec_helper.rb
63
- - spec/support/cucumber_helper.rb
64
64
  homepage: http://github.com/makandra/cucumber_priority
65
65
  licenses:
66
66
  - MIT
67
- metadata: {}
67
+ metadata:
68
+ rubygems_mfa_required: 'true'
68
69
  post_install_message:
69
70
  rdoc_options: []
70
71
  require_paths:
@@ -80,8 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
81
  - !ruby/object:Gem::Version
81
82
  version: '0'
82
83
  requirements: []
83
- rubyforge_project:
84
- rubygems_version: 2.7.3
84
+ rubygems_version: 3.3.9
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: Overridable step definitions for Cucumber
data/.travis.yml DELETED
@@ -1,41 +0,0 @@
1
- rvm:
2
- - 1.8.7
3
- - 2.1.10
4
- - 2.5.0
5
-
6
- gemfile:
7
- - gemfiles/Gemfile.cucumber-1.3
8
- - gemfiles/Gemfile.cucumber-2.4
9
- - gemfiles/Gemfile.cucumber-3.0
10
- - gemfiles/Gemfile.cucumber-3.1
11
-
12
- matrix:
13
- exclude:
14
- - gemfile: gemfiles/Gemfile.cucumber-3.1
15
- rvm: 1.8.7
16
- - gemfile: gemfiles/Gemfile.cucumber-3.1
17
- rvm: 2.1.10 # cucumber 3 wants ruby >= 2.2
18
- - gemfile: gemfiles/Gemfile.cucumber-3.0
19
- rvm: 1.8.7
20
- - gemfile: gemfiles/Gemfile.cucumber-3.0
21
- rvm: 2.1.10 # cucumber 3 wants ruby >= 2.2
22
- - gemfile: gemfiles/Gemfile.cucumber-2.4
23
- rvm: 1.8.7
24
- - gemfile: gemfiles/Gemfile.cucumber-1.3
25
- rvm: 2.5.0 # doesn't work with old RSpec
26
-
27
- install:
28
- # Replace default Travis CI bundler script with a version that doesn't
29
- # explode when lockfile doesn't match recently bumped version
30
- - gem update --system
31
- - bundle install --no-deployment --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
32
-
33
- script: bundle exec rake current_rspec
34
-
35
- sudo: false
36
-
37
- cache: bundler
38
-
39
- notifications:
40
- email:
41
- - fail@makandra.de
@@ -1,39 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Cucumber::Runtime, 'extended with cucumber_priority' do
4
-
5
- before(:each) do
6
- prepare_cucumber_example
7
- end
8
-
9
- describe '#step_matches' do
10
-
11
- it 'returns an overriding step if the only other match is a overridable step' do
12
- overridable_step = @main.Given(/^there is a movie with a (.*?) tone$/){ }.overridable
13
- overriding_step = @main.Given(/^there is a movie with a funny tone$/){ }
14
- match = first_step_match('there is a movie with a funny tone')
15
- match.step_definition.should == overriding_step
16
- match.should be_a(Cucumber::StepMatch)
17
- end
18
-
19
- it 'raises Cucumber::Ambiguous if more than two overriding steps match' do
20
- @main.Given(/^there is a movie with (.*?) tone$/){}.overridable(:priority => 1000)
21
- @main.Given(/^there is a movie with a [^ ]+ tone$/){}
22
- @main.Given(/^there is a movie with a funny tone$/){}
23
- expect do
24
- first_step_match('there is a movie with a funny tone')
25
- end.to raise_error(Cucumber::Ambiguous)
26
- end
27
-
28
- it 'returns the overridable step with the highest priority if no overriding steps match' do
29
- overridable_step = @main.Given(/^there is a movie with a (.*?) tone$/){ }.overridable
30
- higher_overridable_step = @main.Given(/^there is a movie with a [^ ]+ tone$/){ }.overridable(:priority => 5)
31
- lower_overridable_step = @main.Given(/^there is a movie with a [^ ]+ tone$/){ }.overridable(:priority => -5)
32
- match = first_step_match('there is a movie with a funny tone')
33
- match.step_definition.should == higher_overridable_step
34
- match.should be_a(Cucumber::StepMatch)
35
- end
36
-
37
- end
38
-
39
- end
data/spec/spec.opts DELETED
@@ -1 +0,0 @@
1
- --colour
data/spec/spec_helper.rb DELETED
@@ -1,7 +0,0 @@
1
- $: << File.join(File.dirname(__FILE__), "/../../lib" )
2
- require 'cucumber_priority'
3
- require 'gemika'
4
-
5
- Dir["#{File.dirname(__FILE__)}/support/*.rb"].sort.each {|f| require f}
6
-
7
- Gemika::RSpec.configure_should_syntax
@@ -1,31 +0,0 @@
1
- def prepare_cucumber_example
2
- if Cucumber::VERSION >= '3'
3
- @runtime = Cucumber::Runtime.new
4
- scenario = double('scenario', :language => 'en', :accept_hook? => true)
5
- @runtime.send(:begin_scenario, scenario)
6
- @main = Object.new
7
- @main.extend(Cucumber::Glue::Dsl)
8
- else
9
- @runtime = Cucumber::Runtime.new
10
- language = support_code.ruby if support_code.respond_to?(:ruby)
11
- language ||= support_code.load_programming_language('rb')
12
- language
13
- scenario = double('scenario', :language => 'en', :accept_hook? => true)
14
- language.send(:begin_scenario, scenario)
15
- @world = language.current_world
16
- @main = Object.new
17
- @main.extend(Cucumber::RbSupport::RbDsl)
18
- end
19
- end
20
-
21
- def invoke_cucumber_step(step)
22
- first_step_match(step).invoke(nil) # nil means no multiline args
23
- end
24
-
25
- def support_code
26
- @runtime.instance_variable_get(:@support_code)
27
- end
28
-
29
- def first_step_match(*args)
30
- support_code.send(:step_matches, *args).first
31
- end