2323
2424# Set a default RAILS_VERSION so we make sure to get extra dependencies for it...
2525
26- ENV [ 'RAILS_VERSION' ] ||= "7.1.1 "
26+ ENV [ 'RAILS_VERSION' ] ||= "8.0.0 "
2727
2828if ENV [ 'RAILS_VERSION' ]
2929 if ENV [ 'RAILS_VERSION' ] == 'edge'
@@ -36,17 +36,32 @@ if ENV['RAILS_VERSION']
3636 when /^7\. 1\. /
3737 # sprockets is optional for rails 7, but we currently require it, and test with it.
3838 gem "sprockets-rails"
39+ when /^8./
40+ # sprockets is not usually included in Rails 8, but we currently require it, and test with it.
41+ gem "sprockets-rails"
3942 when /^7\. 0\. /
43+ # rails previous to 7.1 can't use sqlite 2
44+ gem "sqlite3" , "~> 1.4"
45+
4046 # sprockets is optional for rails 7, but we currently require it, and test with it.
4147 gem "sprockets-rails"
4248 when /^6\. 1\. /
49+ # rails previous to 7.1 can't use sqlite 2
50+ gem "sqlite3" , "~> 1.4"
51+
4352 # opt into mail 2.8.0.rc1 so we get extra dependencies required for rails 6.1
4453 # Once mail 2.8.0 final is released this will not be required.
4554 # https://github.com/mikel/mail/pull/1472
4655 gem "mail" , ">= 2.8.0.rc1"
4756 when /^6\. 0\. /
57+ # rails previous to 7.1 can't use sqlite 2
58+ gem "sqlite3" , "~> 1.4"
59+
4860 gem 'sass-rails' , '>= 6'
4961 when /^5\. [12]\. /
62+ # rails previous to 7.1 can't use sqlite 2
63+ gem "sqlite3" , "~> 1.4"
64+
5065 gem 'sass-rails' , '~> 5.0'
5166 gem 'sprockets' , '~> 3.7'
5267 gem 'thor' , '~> 0.20'
0 commit comments