From af7da6a65f9f978e54e64fbbeab952385b3ba466 Mon Sep 17 00:00:00 2001 From: tschafer-gc Date: Thu, 14 Nov 2024 12:13:20 +0000 Subject: [PATCH] Move rack and rackup into dev/test block --- Gemfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index aea1fbb..3e9f8cf 100644 --- a/Gemfile +++ b/Gemfile @@ -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['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 @@ -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"