@@ -4,23 +4,16 @@ source 'https://rubygems.org'
44gemspec
55
66not_jruby = %i[ ruby mingw x64_mingw ] . freeze
7- ruby_version = Gem ::Version . new ( RUBY_VERSION )
8- rails_version = Gem ::Version . new ( ENV . fetch ( 'RAILS_VERSION' , '5.2' ) )
7+ rails_version = Gem ::Version . new ( ENV . fetch ( 'RAILS_VERSION' , '7.1.0' ) )
98
109gem 'byebug' , platforms : not_jruby
1110gem 'rails' , "~> #{ rails_version } "
1211gem 'redcarpet' , '~> 3.5' , platforms : not_jruby
12+ gem 'rubocop' , '~> 1.46'
13+ gem 'rubocop-rspec' , '~> 2.12.0'
14+ gem 'simplecov' , '>= 0.17.1'
15+ gem 'simplecov-cobertura' , '~> 3.0'
1316gem 'yard' , '~> 0.9.25' , platforms : not_jruby
1417
15- if Gem ::Version . new ( RUBY_VERSION ) >= Gem ::Version . new ( '2.6' )
16- gem 'rubocop' , '~> 1.36.0'
17- gem 'rubocop-rspec' , '~> 2.12.0'
18- gem 'simplecov' , '>= 0.17.1'
19- gem 'simplecov-cobertura' , '~> 2.1'
20- end
21-
22- if ruby_version >= Gem ::Version . new ( '2.6' )
23- gem 'sqlite3' , '~> 1.5'
24- else
25- gem 'sqlite3' , '~> 1.4' , '< 1.5'
26- end
18+ # Rails 7.0's ActiveRecord adapter requires sqlite3 ~> 1.4; 7.1+ allows 2.x
19+ gem 'sqlite3' , rails_version < Gem ::Version . new ( '7.1' ) ? '~> 1.4' : '>= 1.4'
0 commit comments