Appraisals in image_optim_rails-0.4.3 vs Appraisals in image_optim_rails-0.5.0

- old
+ new

@@ -14,22 +14,32 @@ end if RUBY_VERSION < '2.1' gem 'nokogiri', '< 1.7' end + + gem 'tzinfo' + + gem 'sprockets-rails' if gems['railties'] != '~> 3.2' && !gems['sprockets-rails'] end end -if RUBY_VERSION < '2.3' - appgen 'rails' => '~> 3.2' +if RUBY_VERSION < '2.4' + appgen 'railties' => '~> 3.2' end -if RUBY_VERSION >= '2.1' - appgen 'rails' => '~> 4.0', 'sprockets-rails' => '~> 2.0' - appgen 'rails' => '~> 4.0', 'sprockets' => '~> 3.0' +if RUBY_VERSION >= '1.9' && RUBY_VERSION < '2.5' + appgen 'railties' => '~> 4.0', 'sprockets-rails' => '~> 2.0' + appgen 'railties' => '~> 4.0', 'sprockets' => '~> 3.0' end -if RUBY_VERSION >= '2.2' - appgen 'rails' => '~> 5.0', 'sprockets-rails' => '~> 2.0' - appgen 'rails' => '~> 5.0', 'sprockets' => '~> 3.0' - appgen 'rails' => '~> 5.0', 'sprockets' => '>= 4.0.beta' +if RUBY_VERSION >= '2.3' && RUBY_VERSION < '2.7' + appgen 'railties' => '~> 5.0', 'sprockets-rails' => '~> 2.0' + appgen 'railties' => '~> 5.0', 'sprockets' => '~> 3.0' + appgen 'railties' => '~> 5.0', 'sprockets' => '>= 4.0' if RUBY_VERSION >= '2.5' +end + +if RUBY_VERSION >= '2.5' + appgen 'railties' => '~> 6.0', 'sprockets-rails' => '~> 2.0' + appgen 'railties' => '~> 6.0', 'sprockets' => '~> 3.0' + appgen 'railties' => '~> 6.0', 'sprockets' => '>= 4.0' end