cucumber_factory 2.5.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.rails-7.lock CHANGED
@@ -1,138 +1,132 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cucumber_factory (2.5.0)
4
+ cucumber_factory (2.7.0)
5
5
  activerecord
6
6
  activesupport
7
7
  cucumber
8
- cucumber_priority (>= 0.2.0)
8
+ cucumber_priority (>= 1.1.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activemodel (7.0.0)
14
- activesupport (= 7.0.0)
15
- activerecord (7.0.0)
16
- activemodel (= 7.0.0)
17
- activesupport (= 7.0.0)
18
- activesupport (7.0.0)
13
+ activemodel (7.0.8.7)
14
+ activesupport (= 7.0.8.7)
15
+ activerecord (7.0.8.7)
16
+ activemodel (= 7.0.8.7)
17
+ activesupport (= 7.0.8.7)
18
+ activesupport (7.0.8.7)
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
20
  i18n (>= 1.6, < 2)
21
21
  minitest (>= 5.1)
22
22
  tzinfo (~> 2.0)
23
- addressable (2.8.0)
24
- public_suffix (>= 2.0.2, < 5.0)
25
- builder (3.2.4)
26
- carrierwave (2.2.2)
27
- activemodel (>= 5.0.0)
28
- activesupport (>= 5.0.0)
23
+ addressable (2.8.7)
24
+ public_suffix (>= 2.0.2, < 7.0)
25
+ base64 (0.2.0)
26
+ bigdecimal (3.1.9)
27
+ builder (3.3.0)
28
+ carrierwave (3.1.1)
29
+ activemodel (>= 6.0.0)
30
+ activesupport (>= 6.0.0)
29
31
  addressable (~> 2.6)
30
32
  image_processing (~> 1.1)
31
33
  marcel (~> 1.0.0)
32
- mini_mime (>= 0.1.3)
33
34
  ssrf_filter (~> 1.0)
34
- concurrent-ruby (1.1.9)
35
- cucumber (5.3.0)
36
- builder (~> 3.2, >= 3.2.4)
37
- cucumber-core (~> 8.0, >= 8.0.1)
38
- cucumber-create-meta (~> 2.0, >= 2.0.2)
39
- cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
40
- cucumber-gherkin (~> 15.0, >= 15.0.2)
41
- cucumber-html-formatter (~> 9.0, >= 9.0.0)
42
- cucumber-messages (~> 13.1, >= 13.1.0)
43
- cucumber-wire (~> 4.0, >= 4.0.1)
44
- diff-lcs (~> 1.4, >= 1.4.4)
45
- multi_test (~> 0.1, >= 0.1.2)
46
- sys-uname (~> 1.2, >= 1.2.1)
47
- cucumber-core (8.0.1)
48
- cucumber-gherkin (~> 15.0, >= 15.0.2)
49
- cucumber-messages (~> 13.0, >= 13.0.1)
50
- cucumber-tag-expressions (~> 2.0, >= 2.0.4)
51
- cucumber-create-meta (2.0.4)
52
- cucumber-messages (~> 13.1, >= 13.1.0)
53
- sys-uname (~> 1.2, >= 1.2.1)
54
- cucumber-cucumber-expressions (10.3.0)
55
- cucumber-gherkin (15.0.2)
56
- cucumber-messages (~> 13.0, >= 13.0.1)
57
- cucumber-html-formatter (9.0.0)
58
- cucumber-messages (~> 13.0, >= 13.0.1)
59
- cucumber-messages (13.2.1)
60
- protobuf-cucumber (~> 3.10, >= 3.10.8)
61
- cucumber-tag-expressions (2.0.4)
62
- cucumber-wire (4.0.1)
63
- cucumber-core (~> 8.0, >= 8.0.1)
64
- cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
65
- cucumber-messages (~> 13.0, >= 13.0.1)
66
- cucumber_priority (0.3.2)
35
+ concurrent-ruby (1.3.5)
36
+ cucumber (9.2.1)
37
+ builder (~> 3.2)
38
+ cucumber-ci-environment (> 9, < 11)
39
+ cucumber-core (> 13, < 14)
40
+ cucumber-cucumber-expressions (~> 17.0)
41
+ cucumber-gherkin (> 24, < 28)
42
+ cucumber-html-formatter (> 20.3, < 22)
43
+ cucumber-messages (> 19, < 25)
44
+ diff-lcs (~> 1.5)
45
+ mini_mime (~> 1.1)
46
+ multi_test (~> 1.1)
47
+ sys-uname (~> 1.2)
48
+ cucumber-ci-environment (10.0.1)
49
+ cucumber-core (13.0.3)
50
+ cucumber-gherkin (>= 27, < 28)
51
+ cucumber-messages (>= 20, < 23)
52
+ cucumber-tag-expressions (> 5, < 7)
53
+ cucumber-cucumber-expressions (17.1.0)
54
+ bigdecimal
55
+ cucumber-gherkin (27.0.0)
56
+ cucumber-messages (>= 19.1.4, < 23)
57
+ cucumber-html-formatter (21.7.0)
58
+ cucumber-messages (> 19, < 27)
59
+ cucumber-messages (22.0.0)
60
+ cucumber-tag-expressions (6.1.1)
61
+ cucumber_priority (1.1.0)
67
62
  cucumber
68
- database_cleaner (2.0.1)
69
- database_cleaner-active_record (~> 2.0.0)
70
- database_cleaner-active_record (2.0.1)
63
+ database_cleaner (2.1.0)
64
+ database_cleaner-active_record (>= 2, < 3)
65
+ database_cleaner-active_record (2.2.0)
71
66
  activerecord (>= 5.a)
72
67
  database_cleaner-core (~> 2.0.0)
73
68
  database_cleaner-core (2.0.1)
74
- diff-lcs (1.4.4)
75
- factory_bot (6.2.0)
69
+ diff-lcs (1.5.1)
70
+ factory_bot (6.5.0)
76
71
  activesupport (>= 5.0.0)
77
- ffi (1.15.4)
78
- gemika (0.6.1)
79
- i18n (1.8.11)
72
+ ffi (1.17.1-x86_64-linux-gnu)
73
+ gemika (0.8.4)
74
+ i18n (1.14.7)
80
75
  concurrent-ruby (~> 1.0)
81
- image_processing (1.12.1)
76
+ image_processing (1.13.0)
82
77
  mini_magick (>= 4.9.5, < 5)
83
78
  ruby-vips (>= 2.0.17, < 3)
84
- marcel (1.0.2)
85
- middleware (0.1.0)
86
- mini_magick (4.11.0)
87
- mini_mime (1.1.2)
88
- minitest (5.15.0)
89
- multi_test (0.1.2)
90
- pg (1.2.3)
91
- protobuf-cucumber (3.10.8)
92
- activesupport (>= 3.2)
93
- middleware
94
- thor
95
- thread_safe
96
- public_suffix (4.0.6)
97
- rake (13.0.6)
98
- rspec (3.10.0)
99
- rspec-core (~> 3.10.0)
100
- rspec-expectations (~> 3.10.0)
101
- rspec-mocks (~> 3.10.0)
102
- rspec-core (3.10.1)
103
- rspec-support (~> 3.10.0)
104
- rspec-expectations (3.10.1)
79
+ logger (1.6.5)
80
+ marcel (1.0.4)
81
+ mini_magick (4.13.2)
82
+ mini_mime (1.1.5)
83
+ minitest (5.25.4)
84
+ multi_test (1.1.0)
85
+ mutex_m (0.3.0)
86
+ pg (1.5.9)
87
+ public_suffix (6.0.1)
88
+ rake (13.2.1)
89
+ rspec (3.13.0)
90
+ rspec-core (~> 3.13.0)
91
+ rspec-expectations (~> 3.13.0)
92
+ rspec-mocks (~> 3.13.0)
93
+ rspec-core (3.13.2)
94
+ rspec-support (~> 3.13.0)
95
+ rspec-expectations (3.13.3)
105
96
  diff-lcs (>= 1.2.0, < 2.0)
106
- rspec-support (~> 3.10.0)
107
- rspec-mocks (3.10.2)
97
+ rspec-support (~> 3.13.0)
98
+ rspec-mocks (3.13.2)
108
99
  diff-lcs (>= 1.2.0, < 2.0)
109
- rspec-support (~> 3.10.0)
110
- rspec-support (3.10.3)
111
- ruby-vips (2.1.4)
100
+ rspec-support (~> 3.13.0)
101
+ rspec-support (3.13.2)
102
+ ruby-vips (2.2.2)
112
103
  ffi (~> 1.12)
113
- ssrf_filter (1.0.7)
114
- sys-uname (1.2.2)
104
+ logger
105
+ ssrf_filter (1.2.0)
106
+ sys-uname (1.3.1)
115
107
  ffi (~> 1.1)
116
- thor (1.1.0)
117
- thread_safe (0.3.6)
118
- tzinfo (2.0.4)
108
+ tzinfo (2.0.6)
119
109
  concurrent-ruby (~> 1.0)
120
110
 
121
111
  PLATFORMS
122
112
  x86_64-linux
123
113
 
124
114
  DEPENDENCIES
125
- activerecord (~> 7.0.0)
126
- activesupport (~> 7.0.0)
115
+ activerecord (~> 7.0.1)
116
+ activesupport (~> 7.0.1)
117
+ base64
118
+ bigdecimal
127
119
  carrierwave
128
- cucumber (~> 5.3.0)
120
+ cucumber (~> 9.2.1)
129
121
  cucumber_factory!
130
122
  database_cleaner
131
123
  factory_bot
132
- gemika
133
- pg
134
- rake
124
+ gemika (>= 0.8.1)
125
+ logger
126
+ mutex_m
127
+ pg (> 1.2.3)
128
+ rake (> 10.0)
135
129
  rspec (~> 3.0)
136
130
 
137
131
  BUNDLED WITH
138
- 2.3.0
132
+ 2.6.3
data/Gemfile.rails-8 ADDED
@@ -0,0 +1,20 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'cucumber', '~> 9.2.1'
5
+ gem 'activesupport', '~> 8.0.0'
6
+ gem 'activerecord', '~> 8.0.0'
7
+ gem 'pg', '> 1.2.3'
8
+
9
+ # Development dependencies
10
+ gem 'rspec', '~> 3.0'
11
+ gem 'rake', '> 10.0'
12
+ gem 'database_cleaner'
13
+ gem 'gemika', '>= 0.8.1'
14
+
15
+ # Test dependencies
16
+ gem 'factory_bot'
17
+ gem 'carrierwave'
18
+
19
+ # Gem under test
20
+ gem 'cucumber_factory', :path => '.'
@@ -0,0 +1,162 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cucumber_factory (2.7.0)
5
+ activerecord
6
+ activesupport
7
+ cucumber
8
+ cucumber_priority (>= 1.1.0)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ activemodel (8.0.1)
14
+ activesupport (= 8.0.1)
15
+ activerecord (8.0.1)
16
+ activemodel (= 8.0.1)
17
+ activesupport (= 8.0.1)
18
+ timeout (>= 0.4.0)
19
+ activesupport (8.0.1)
20
+ base64
21
+ benchmark (>= 0.3)
22
+ bigdecimal
23
+ concurrent-ruby (~> 1.0, >= 1.3.1)
24
+ connection_pool (>= 2.2.5)
25
+ drb
26
+ i18n (>= 1.6, < 2)
27
+ logger (>= 1.4.2)
28
+ minitest (>= 5.1)
29
+ securerandom (>= 0.3)
30
+ tzinfo (~> 2.0, >= 2.0.5)
31
+ uri (>= 0.13.1)
32
+ addressable (2.8.7)
33
+ public_suffix (>= 2.0.2, < 7.0)
34
+ base64 (0.2.0)
35
+ benchmark (0.4.0)
36
+ bigdecimal (3.1.9)
37
+ builder (3.3.0)
38
+ carrierwave (3.1.1)
39
+ activemodel (>= 6.0.0)
40
+ activesupport (>= 6.0.0)
41
+ addressable (~> 2.6)
42
+ image_processing (~> 1.1)
43
+ marcel (~> 1.0.0)
44
+ ssrf_filter (~> 1.0)
45
+ concurrent-ruby (1.3.5)
46
+ connection_pool (2.5.0)
47
+ cucumber (9.2.1)
48
+ builder (~> 3.2)
49
+ cucumber-ci-environment (> 9, < 11)
50
+ cucumber-core (> 13, < 14)
51
+ cucumber-cucumber-expressions (~> 17.0)
52
+ cucumber-gherkin (> 24, < 28)
53
+ cucumber-html-formatter (> 20.3, < 22)
54
+ cucumber-messages (> 19, < 25)
55
+ diff-lcs (~> 1.5)
56
+ mini_mime (~> 1.1)
57
+ multi_test (~> 1.1)
58
+ sys-uname (~> 1.2)
59
+ cucumber-ci-environment (10.0.1)
60
+ cucumber-core (13.0.3)
61
+ cucumber-gherkin (>= 27, < 28)
62
+ cucumber-messages (>= 20, < 23)
63
+ cucumber-tag-expressions (> 5, < 7)
64
+ cucumber-cucumber-expressions (17.1.0)
65
+ bigdecimal
66
+ cucumber-gherkin (27.0.0)
67
+ cucumber-messages (>= 19.1.4, < 23)
68
+ cucumber-html-formatter (21.7.0)
69
+ cucumber-messages (> 19, < 27)
70
+ cucumber-messages (22.0.0)
71
+ cucumber-tag-expressions (6.1.1)
72
+ cucumber_priority (1.1.0)
73
+ cucumber
74
+ database_cleaner (2.1.0)
75
+ database_cleaner-active_record (>= 2, < 3)
76
+ database_cleaner-active_record (2.2.0)
77
+ activerecord (>= 5.a)
78
+ database_cleaner-core (~> 2.0.0)
79
+ database_cleaner-core (2.0.1)
80
+ diff-lcs (1.5.1)
81
+ drb (2.2.1)
82
+ factory_bot (6.5.0)
83
+ activesupport (>= 5.0.0)
84
+ ffi (1.17.1)
85
+ ffi (1.17.1-aarch64-linux-gnu)
86
+ ffi (1.17.1-aarch64-linux-musl)
87
+ ffi (1.17.1-arm-linux-gnu)
88
+ ffi (1.17.1-arm-linux-musl)
89
+ ffi (1.17.1-arm64-darwin)
90
+ ffi (1.17.1-x86-linux-gnu)
91
+ ffi (1.17.1-x86-linux-musl)
92
+ ffi (1.17.1-x86_64-darwin)
93
+ ffi (1.17.1-x86_64-linux-gnu)
94
+ ffi (1.17.1-x86_64-linux-musl)
95
+ gemika (0.8.4)
96
+ i18n (1.14.7)
97
+ concurrent-ruby (~> 1.0)
98
+ image_processing (1.13.0)
99
+ mini_magick (>= 4.9.5, < 5)
100
+ ruby-vips (>= 2.0.17, < 3)
101
+ logger (1.6.5)
102
+ marcel (1.0.4)
103
+ mini_magick (4.13.2)
104
+ mini_mime (1.1.5)
105
+ minitest (5.25.4)
106
+ multi_test (1.1.0)
107
+ pg (1.5.9)
108
+ public_suffix (6.0.1)
109
+ rake (13.2.1)
110
+ rspec (3.13.0)
111
+ rspec-core (~> 3.13.0)
112
+ rspec-expectations (~> 3.13.0)
113
+ rspec-mocks (~> 3.13.0)
114
+ rspec-core (3.13.2)
115
+ rspec-support (~> 3.13.0)
116
+ rspec-expectations (3.13.3)
117
+ diff-lcs (>= 1.2.0, < 2.0)
118
+ rspec-support (~> 3.13.0)
119
+ rspec-mocks (3.13.2)
120
+ diff-lcs (>= 1.2.0, < 2.0)
121
+ rspec-support (~> 3.13.0)
122
+ rspec-support (3.13.2)
123
+ ruby-vips (2.2.2)
124
+ ffi (~> 1.12)
125
+ logger
126
+ securerandom (0.4.1)
127
+ ssrf_filter (1.2.0)
128
+ sys-uname (1.3.1)
129
+ ffi (~> 1.1)
130
+ timeout (0.4.3)
131
+ tzinfo (2.0.6)
132
+ concurrent-ruby (~> 1.0)
133
+ uri (1.0.2)
134
+
135
+ PLATFORMS
136
+ aarch64-linux-gnu
137
+ aarch64-linux-musl
138
+ arm-linux-gnu
139
+ arm-linux-musl
140
+ arm64-darwin
141
+ ruby
142
+ x86-linux-gnu
143
+ x86-linux-musl
144
+ x86_64-darwin
145
+ x86_64-linux-gnu
146
+ x86_64-linux-musl
147
+
148
+ DEPENDENCIES
149
+ activerecord (~> 8.0.0)
150
+ activesupport (~> 8.0.0)
151
+ carrierwave
152
+ cucumber (~> 9.2.1)
153
+ cucumber_factory!
154
+ database_cleaner
155
+ factory_bot
156
+ gemika (>= 0.8.1)
157
+ pg (> 1.2.3)
158
+ rake (> 10.0)
159
+ rspec (~> 3.0)
160
+
161
+ BUNDLED WITH
162
+ 2.5.22
data/README.md CHANGED
@@ -1,5 +1,21 @@
1
- cucumber_factory [![Tests](https://github.com/makandra/cucumber_factory/workflows/Tests/badge.svg)](https://github.com/makandra/cucumber_factory/actions?query=branch:master)
2
- ================
1
+ <p>
2
+ <a href="https://makandra.de/">
3
+ <picture>
4
+ <source media="(prefers-color-scheme: light)" srcset="media/makandra-with-bottom-margin.light.svg">
5
+ <source media="(prefers-color-scheme: dark)" srcset="media/makandra-with-bottom-margin.dark.svg">
6
+ <img align="right" width="25%" alt="makandra" src="media/makandra-with-bottom-margin.light.svg">
7
+ </picture>
8
+ </a>
9
+
10
+ <picture>
11
+ <source media="(prefers-color-scheme: light)" srcset="media/logo.light.shapes.svg">
12
+ <source media="(prefers-color-scheme: dark)" srcset="media/logo.dark.shapes.svg">
13
+ <img width="395" alt="cucumber_factory" role="heading" aria-level="1" src="media/logo.light.shapes.svg">
14
+ </picture>
15
+ </p>
16
+
17
+ [![Tests](https://github.com/makandra/cucumber_factory/workflows/Tests/badge.svg)](https://github.com/makandra/cucumber_factory/actions?query=branch:master)
18
+
3
19
 
4
20
  Create ActiveRecord objects without step definitions
5
21
  ----------------------------------------------------
@@ -199,7 +215,7 @@ Custom steps will always be preferred over factory steps. Also Cucumber will not
199
215
  Supported Cucumber versions
200
216
  ----------------------------
201
217
 
202
- cucumber_factory is tested against Cucumber 1.3, 2.4, 3.0 and 3.1.
218
+ cucumber_factory is tested against Cucumber 1.3, 2.4, 3.0, 3.1, 4.1, 5.3, 9.2 and 10.1.
203
219
 
204
220
 
205
221
  Installation
@@ -236,6 +252,10 @@ We recommend to test large changes against multiple versions of Ruby and multipl
236
252
  For each ruby version do (you need to change it manually):
237
253
  - Install development dependencies using `rake matrix:install`
238
254
  - Run tests using `rake matrix:spec`
255
+ - Shorthand:
256
+ ```sh
257
+ for version in "2.5.3" "2.6.6" "2.7.2" "3.2.0" "3.4.1"; do rbenv shell $version && bundle install && bundle exec rake matrix:install && bundle exec rake matrix:spec; done
258
+ ```
239
259
 
240
260
  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.
241
261
 
@@ -2,26 +2,30 @@
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
  require "cucumber_factory/version"
4
4
 
5
- Gem::Specification.new do |s|
6
- s.name = %q{cucumber_factory}
7
- s.version = CucumberFactory::VERSION
8
- s.authors = ["Henning Koch"]
9
- s.email = %q{github@makandra.de}
10
- s.homepage = %q{http://github.com/makandra/cucumber_factory}
11
- s.summary = %q{Create records from Cucumber features without writing step definitions.}
12
- s.description = %q{Cucumber Factory allows you to create ActiveRecord models from your Cucumber features without writing step definitions for each model.}
13
- s.license = 'MIT'
14
- s.metadata = { 'rubygems_mfa_required' => 'true' }
5
+ Gem::Specification.new do |spec|
6
+ spec.name = %q{cucumber_factory}
7
+ spec.version = CucumberFactory::VERSION
8
+ spec.authors = ["Henning Koch"]
9
+ spec.email = %q{github@makandra.de}
10
+ spec.homepage = %q{https://github.com/makandra/cucumber_factory}
11
+ spec.summary = %q{Create records from Cucumber features without writing step definition.}
12
+ spec.description = %q{Cucumber Factory allows you to create ActiveRecord models from your Cucumber features without writing step definitions for each model.}
13
+ spec.license = 'MIT'
14
+ spec.metadata = {
15
+ 'source_code_uri' => 'https://github.com/makandra/cucumber_factory',
16
+ 'bug_tracker_uri' => 'https://github.com/makandra/cucumber_factory/issues',
17
+ 'changelog_uri' => 'https://github.com/makandra/cucumber_factory/blob/master/CHANGELOG.md',
18
+ 'rubygems_mfa_required' => 'true',
19
+ }
15
20
 
16
- s.files = `git ls-files`.split("\n")
17
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
- s.require_paths = ["lib"]
21
+ spec.files = `git ls-files`.split("\n")
22
+ spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
23
+ spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
24
+ spec.require_paths = ["lib"]
20
25
 
21
- s.add_dependency('cucumber')
22
- s.add_dependency('activesupport')
23
- s.add_dependency('activerecord')
24
- s.add_dependency('cucumber_priority', '>=0.2.0')
26
+ spec.add_dependency('cucumber')
27
+ spec.add_dependency('activesupport')
28
+ spec.add_dependency('activerecord')
29
+ spec.add_dependency('cucumber_priority', '>=1.1.0')
25
30
 
26
31
  end
27
-
@@ -1,3 +1,3 @@
1
1
  module CucumberFactory
2
- VERSION = '2.5.0'
2
+ VERSION = '2.7.0'
3
3
  end
@@ -3,7 +3,7 @@ require 'active_support/all'
3
3
  require 'active_record'
4
4
 
5
5
  require 'cucumber'
6
- if Cucumber::VERSION >= '3'
6
+ if Gem::Version.new(Cucumber::VERSION) >= Gem::Version.new('3.0')
7
7
  require 'cucumber/glue/registry_and_more'
8
8
  else
9
9
  require 'cucumber/rb_support/rb_language'