Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ jobs:
gemfile: Gemfile.rails-8
bundler: 2.6.3

- ruby: 3.4.1
gemfile: Gemfile.cucumber-10.1
bundler: 2.6.3

env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
steps:
Expand Down
20 changes: 20 additions & 0 deletions Gemfile.cucumber-10.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
source 'https://rubygems.org'

# Runtime dependencies
gem 'cucumber', '~> 10.1.0'
gem 'activesupport', '~> 8.0.0'
gem 'activerecord', '~> 8.0.0'
gem 'pg', '> 1.2.3'

# Development dependencies
gem 'rspec', '~> 3.0'
gem 'rake', '> 10.0'
gem 'database_cleaner'
gem 'gemika', '>= 0.8.1'

# Test dependencies
gem 'factory_bot'
gem 'carrierwave'

# Gem under test
gem 'cucumber_factory', :path => '.'
174 changes: 174 additions & 0 deletions Gemfile.cucumber-10.1.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
PATH
remote: .
specs:
cucumber_factory (2.6.0)
activerecord
activesupport
cucumber
cucumber_priority (>= 1.1.0)

GEM
remote: https://rubygems.org/
specs:
activemodel (8.0.2.1)
activesupport (= 8.0.2.1)
activerecord (8.0.2.1)
activemodel (= 8.0.2.1)
activesupport (= 8.0.2.1)
timeout (>= 0.4.0)
activesupport (8.0.2.1)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
uri (>= 0.13.1)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
base64 (0.3.0)
benchmark (0.4.1)
bigdecimal (3.2.2)
builder (3.3.0)
carrierwave (3.1.2)
activemodel (>= 6.0.0)
activesupport (>= 6.0.0)
addressable (~> 2.6)
image_processing (~> 1.1)
marcel (~> 1.0.0)
ssrf_filter (~> 1.0)
concurrent-ruby (1.3.5)
connection_pool (2.5.3)
cucumber (10.1.0)
base64 (~> 0.2)
builder (~> 3.2)
cucumber-ci-environment (> 9, < 11)
cucumber-core (> 15, < 17)
cucumber-cucumber-expressions (> 17, < 19)
cucumber-html-formatter (> 20.3, < 22)
diff-lcs (~> 1.5)
logger (~> 1.6)
mini_mime (~> 1.1)
multi_test (~> 1.1)
sys-uname (~> 1.3)
cucumber-ci-environment (10.0.1)
cucumber-core (15.2.1)
cucumber-gherkin (> 27, < 33)
cucumber-messages (> 26, < 30)
cucumber-tag-expressions (> 5, < 7)
cucumber-cucumber-expressions (18.0.1)
bigdecimal
cucumber-gherkin (32.2.0)
cucumber-messages (> 25, < 28)
cucumber-html-formatter (21.14.0)
cucumber-messages (> 19, < 28)
cucumber-messages (27.2.0)
cucumber-tag-expressions (6.1.2)
cucumber_priority (1.1.0)
cucumber
database_cleaner (2.1.0)
database_cleaner-active_record (>= 2, < 3)
database_cleaner-active_record (2.2.2)
activerecord (>= 5.a)
database_cleaner-core (~> 2.0)
database_cleaner-core (2.0.1)
diff-lcs (1.6.2)
drb (2.2.3)
factory_bot (6.5.5)
activesupport (>= 6.1.0)
ffi (1.17.2)
ffi (1.17.2-aarch64-linux-gnu)
ffi (1.17.2-aarch64-linux-musl)
ffi (1.17.2-arm-linux-gnu)
ffi (1.17.2-arm-linux-musl)
ffi (1.17.2-arm64-darwin)
ffi (1.17.2-x86-linux-gnu)
ffi (1.17.2-x86-linux-musl)
ffi (1.17.2-x86_64-darwin)
ffi (1.17.2-x86_64-linux-gnu)
ffi (1.17.2-x86_64-linux-musl)
gemika (1.0.0)
i18n (1.14.7)
concurrent-ruby (~> 1.0)
image_processing (1.14.0)
mini_magick (>= 4.9.5, < 6)
ruby-vips (>= 2.0.17, < 3)
logger (1.7.0)
marcel (1.0.4)
memoist (0.16.2)
mini_magick (5.3.1)
logger
mini_mime (1.1.5)
minitest (5.25.5)
multi_test (1.1.0)
pg (1.6.1)
pg (1.6.1-aarch64-linux)
pg (1.6.1-aarch64-linux-musl)
pg (1.6.1-aarch64-mingw-ucrt)
pg (1.6.1-arm64-darwin)
pg (1.6.1-x86_64-darwin)
pg (1.6.1-x86_64-linux)
pg (1.6.1-x86_64-linux-musl)
public_suffix (6.0.2)
rake (13.3.0)
rspec (3.13.1)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.5)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.5)
ruby-vips (2.2.5)
ffi (~> 1.12)
logger
securerandom (0.4.1)
ssrf_filter (1.3.0)
sys-uname (1.4.0)
ffi (~> 1.1)
memoist (~> 0.16.2)
timeout (0.4.3)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uri (1.0.3)

PLATFORMS
aarch64-linux
aarch64-linux-gnu
aarch64-linux-musl
aarch64-mingw-ucrt
arm-linux-gnu
arm-linux-musl
arm64-darwin
ruby
x86-linux-gnu
x86-linux-musl
x86_64-darwin
x86_64-linux-gnu
x86_64-linux-musl

DEPENDENCIES
activerecord (~> 8.0.0)
activesupport (~> 8.0.0)
carrierwave
cucumber (~> 10.1.0)
cucumber_factory!
database_cleaner
factory_bot
gemika (>= 0.8.1)
pg (> 1.2.3)
rake (> 10.0)
rspec (~> 3.0)

BUNDLED WITH
2.6.3
4 changes: 2 additions & 2 deletions Gemfile.cucumber-4.1.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PATH
activerecord
activesupport
cucumber
cucumber_priority (>= 0.2.0)
cucumber_priority (>= 1.1.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -64,7 +64,7 @@ GEM
cucumber-core (~> 7.1, >= 7.1.0)
cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
cucumber-messages (~> 12.2, >= 12.2.0)
cucumber_priority (0.3.2)
cucumber_priority (1.1.0)
cucumber
database_cleaner (2.0.1)
database_cleaner-active_record (~> 2.0.0)
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.cucumber-5.3.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PATH
activerecord
activesupport
cucumber
cucumber_priority (>= 0.2.0)
cucumber_priority (>= 1.1.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -64,7 +64,7 @@ GEM
cucumber-core (~> 8.0, >= 8.0.1)
cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
cucumber-messages (~> 13.0, >= 13.0.1)
cucumber_priority (0.3.2)
cucumber_priority (1.1.0)
cucumber
database_cleaner (2.0.1)
database_cleaner-active_record (~> 2.0.0)
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.rails-7.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PATH
activerecord
activesupport
cucumber
cucumber_priority (>= 0.2.0)
cucumber_priority (>= 1.1.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -58,7 +58,7 @@ GEM
cucumber-messages (> 19, < 27)
cucumber-messages (22.0.0)
cucumber-tag-expressions (6.1.1)
cucumber_priority (1.0.0)
cucumber_priority (1.1.0)
cucumber
database_cleaner (2.1.0)
database_cleaner-active_record (>= 2, < 3)
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.rails-8.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PATH
activerecord
activesupport
cucumber
cucumber_priority (>= 0.2.0)
cucumber_priority (>= 1.1.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -69,7 +69,7 @@ GEM
cucumber-messages (> 19, < 27)
cucumber-messages (22.0.0)
cucumber-tag-expressions (6.1.1)
cucumber_priority (1.0.0)
cucumber_priority (1.1.0)
cucumber
database_cleaner (2.1.0)
database_cleaner-active_record (>= 2, < 3)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Custom steps will always be preferred over factory steps. Also Cucumber will not
Supported Cucumber versions
----------------------------

cucumber_factory is tested against Cucumber 1.3, 2.4, 3.0 and 3.1.
cucumber_factory is tested against Cucumber 1.3, 2.4, 3.0, 3.1, 4.1, 5.3, 9.2 and 10.1.


Installation
Expand Down
2 changes: 1 addition & 1 deletion cucumber_factory.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ Gem::Specification.new do |spec|
spec.add_dependency('cucumber')
spec.add_dependency('activesupport')
spec.add_dependency('activerecord')
spec.add_dependency('cucumber_priority', '>=0.2.0')
spec.add_dependency('cucumber_priority', '>=1.1.0')

end
2 changes: 1 addition & 1 deletion lib/cucumber_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'active_record'

require 'cucumber'
if Cucumber::VERSION >= '3'
if Gem::Version.new(Cucumber::VERSION) >= Gem::Version.new('3.0')
require 'cucumber/glue/registry_and_more'
else
require 'cucumber/rb_support/rb_language'
Expand Down
2 changes: 1 addition & 1 deletion spec/cucumber_factory/steps_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

TRANSFORMS_SUPPORTED = Cucumber::VERSION < '3'
TRANSFORMS_SUPPORTED = Gem::Version.new(Cucumber::VERSION) < Gem::Version.new('3.0')

describe 'steps provided by cucumber_factory' do
before(:each) do
Expand Down
4 changes: 2 additions & 2 deletions spec/support/cucumber_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def prepare_cucumber_example
if Cucumber::VERSION >= '3'
if Gem::Version.new(Cucumber::VERSION) >= Gem::Version.new('3.0')
@runtime = Cucumber::Runtime.new
scenario = double('scenario', :language => 'en', :accept_hook? => true)
@runtime.send(:begin_scenario, scenario)
Expand All @@ -22,7 +22,7 @@ def prepare_cucumber_example
end

def invoke_cucumber_step(step, doc_string = nil, data_table = nil)
if Cucumber::VERSION >= '2'
if Gem::Version.new(Cucumber::VERSION) >= Gem::Version.new('2.0')
multiline_argument = Cucumber::MultilineArgument::None.new

if doc_string.present?
Expand Down