Skip to content

Commit

Permalink
Add minimum Ruby Version (#156)
Browse files Browse the repository at this point in the history
## What

Closes #155
The minimum version tested in CI is `2.6.9`, so setting `2.6` as the
lower minimum.
  • Loading branch information
balvig authored Apr 1, 2024
1 parent 5fa3e00 commit d3f2475
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ gemspec
if ENV['FARADAY_TEST_VERSION'] == '< 2.0'
gem 'faraday_middleware'
end

# https://github.com/ruby/bigdecimal#which-version-should-you-select
if ENV['RAILS_TEST_VERSION'] == '~> 4.0'
gem 'bigdecimal', '1.3.5'
end
2 changes: 2 additions & 0 deletions spyke.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.required_ruby_version = '>= 2.6'

spec.add_dependency 'activesupport', ENV.fetch('RAILS_TEST_VERSION', '>= 4.0.0')
spec.add_dependency 'activemodel', ENV.fetch('RAILS_TEST_VERSION', '>= 4.0.0')
spec.add_dependency 'faraday', ENV.fetch('FARADAY_TEST_VERSION', '>= 1.0.0'), '< 3.0'
Expand Down

0 comments on commit d3f2475

Please sign in to comment.