-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathGemfile
More file actions
36 lines (29 loc) · 1.7 KB
/
Copy pathGemfile
File metadata and controls
36 lines (29 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
source 'http://rubygems.org'
# Specify your gem's dependencies in cuke_modeler.gemspec
gemspec
require_relative 'cuke_modeler_project_settings'
gherkin_major_version_used = 42
gherkin_major_versions_without_cucumber_support = ENV['GHERKIN_MAJOR_VERSIONS_WITHOUT_CUCUMBER_SUPPORT'].split(',')
.map(&:to_i)
# rubocop:disable Bundler/DuplicatedGem
if RUBY_VERSION =~ /^2\.[34]/
gem 'activesupport', '< 6.0' # Requires Ruby 2.5 at this version
gem 'parallel', '< 1.20' # Requires Ruby 2.5 at this version
if (gherkin_major_versions_without_cucumber_support + [15]).include?(gherkin_major_version_used)
gem 'cucumber', '2.2.0' # No recent version of cucumber that supports this Ruby & cucumber-gherkin combination
else
gem 'cucumber', '>=4.0.0.rc.4', '< 5.0' # Requires Ruby 2.5 at this version
end
elsif gherkin_major_versions_without_cucumber_support.include?(gherkin_major_version_used)
gem 'cucumber', '2.2.0' # No recent version of cucumber that supports this Ruby & cucumber-gherkin combination
else
gem 'cucumber', '>=4.0.0.rc.4' # The minimum version of Cucumber that uses the `cucumber-gherkin` gem
end
# rubocop:enable Bundler/DuplicatedGem
if RUBY_VERSION =~ /^4\./
# base64 gem stopped being included automatically after Ruby 3.4
gem 'base64' if gherkin_major_version_used == 27 # rubocop:disable Gemspec/DevelopmentDependencies
# win32ole gem stopped being included automatically after Ruby 4.0
gem 'win32ole' if RbConfig::CONFIG['host_os'].downcase =~ /mswin|msys|mingw32/ # rubocop:disable Gemspec/DevelopmentDependencies
end
gem 'cucumber-gherkin', "~> #{gherkin_major_version_used}.0"