Skip to content

Commit

Permalink
Move rack and rackup into dev/test block
Browse files Browse the repository at this point in the history
  • Loading branch information
tschafer-gc committed Nov 14, 2024
1 parent 5120219 commit aa62ef9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ group :development, :test do
gem 'rubocop-rspec', '~> 3.0.2'
gem 'rubocop-sequel', '~> 0.3.4'
gem 'sequel', require: nil

rack_version = ENV.fetch('RACK_VERSION', "3.1")
gem "rack", rack_version
if Gem::Version.new(rack_version) < Gem::Version.new('3.0.0')
gem "rackup", "~> 1.0"
else
gem "rackup", "~> 2.0"
end
end

group :test do
Expand All @@ -25,14 +33,6 @@ group :test do
gem 'rspec', '~> 3.9'
end

rack_version = ENV['RACK_VERSION'] || "3.0"
gem "rack", rack_version
if Gem::Version.new(rack_version) < Gem::Version.new('3.0.0')
gem "rackup", "~> 1.0"
else
gem "rackup", "~> 2.0"
end

gem 'prometheus-client', '~> 1.0'
source "https://rubygems.pkg.github.com/gocardless" do
gem "prometheus_gcstat"
Expand Down

0 comments on commit aa62ef9

Please sign in to comment.