From 9dfddeebf8ae069076690da44eb12f02948910be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 16 Aug 2019 16:23:21 -0400 Subject: [PATCH] Remove support to old Rails versions --- .travis.yml | 6 ------ gemfiles/Gemfile-rails-4-0 | 9 --------- gemfiles/Gemfile-rails-4-1 | 9 --------- gemfiles/Gemfile-rails-4-2 | 10 ---------- gemfiles/Gemfile-rails-5-0 | 7 ------- gemfiles/Gemfile-rails-5-1 | 7 ------- sass-rails.gemspec | 4 +++- 7 files changed, 3 insertions(+), 49 deletions(-) delete mode 100644 gemfiles/Gemfile-rails-4-0 delete mode 100644 gemfiles/Gemfile-rails-4-1 delete mode 100644 gemfiles/Gemfile-rails-4-2 delete mode 100644 gemfiles/Gemfile-rails-5-0 delete mode 100644 gemfiles/Gemfile-rails-5-1 diff --git a/.travis.yml b/.travis.yml index 86d8a27..0a0b4da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,11 @@ language: ruby rvm: - - 2.3.8 - 2.4.6 - 2.5.5 - 2.6.3 gemfile: - - gemfiles/Gemfile-rails-4-0 - - gemfiles/Gemfile-rails-4-1 - - gemfiles/Gemfile-rails-4-2 - - gemfiles/Gemfile-rails-5-0 - - gemfiles/Gemfile-rails-5-1 - gemfiles/Gemfile-rails-5-2 - gemfiles/Gemfile-rails-6-0 - gemfiles/Gemfile-sprockets-2-11 diff --git a/gemfiles/Gemfile-rails-4-0 b/gemfiles/Gemfile-rails-4-0 deleted file mode 100644 index 31c8cbd..0000000 --- a/gemfiles/Gemfile-rails-4-0 +++ /dev/null @@ -1,9 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem"s dependencies in sass-rails.gemspec -gemspec path: ".." - -gem "rails", "~> 4.0.0" -gem "sass", "~> 3.3.0" -gem "mime-types", "< 2" -gem "rack", "< 2" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2") diff --git a/gemfiles/Gemfile-rails-4-1 b/gemfiles/Gemfile-rails-4-1 deleted file mode 100644 index 07499a2..0000000 --- a/gemfiles/Gemfile-rails-4-1 +++ /dev/null @@ -1,9 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem"s dependencies in sass-rails.gemspec -gemspec path: ".." - -gem "rails", "~> 4.1.0" -gem "sass", "~> 3.3.0" -gem "mime-types", "< 2" -gem "rack", "< 2" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2") diff --git a/gemfiles/Gemfile-rails-4-2 b/gemfiles/Gemfile-rails-4-2 deleted file mode 100644 index 08ed377..0000000 --- a/gemfiles/Gemfile-rails-4-2 +++ /dev/null @@ -1,10 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem"s dependencies in sass-rails.gemspec -gemspec path: ".." - -gem "rails", "~> 4.2.0" -gem "sass", "~> 3.3.0" -gem "mime-types", "< 2" -gem "rack", "< 2" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2") -gem "nokogiri", "~> 1.6.8" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.1") diff --git a/gemfiles/Gemfile-rails-5-0 b/gemfiles/Gemfile-rails-5-0 deleted file mode 100644 index abe80ab..0000000 --- a/gemfiles/Gemfile-rails-5-0 +++ /dev/null @@ -1,7 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem"s dependencies in sass-rails.gemspec -gemspec path: ".." - -gem "rails", github: 'rails/rails', branch: '5-0-stable' -gem 'mime-types', '< 3', require: false if RUBY_VERSION.start_with?('1.9') diff --git a/gemfiles/Gemfile-rails-5-1 b/gemfiles/Gemfile-rails-5-1 deleted file mode 100644 index 0893f57..0000000 --- a/gemfiles/Gemfile-rails-5-1 +++ /dev/null @@ -1,7 +0,0 @@ -source "https://rubygems.org" - -# Specify your gem"s dependencies in sass-rails.gemspec -gemspec path: ".." - -gem "rails", github: 'rails/rails', branch: '5-1-stable' -gem 'mime-types', '< 3', require: false if RUBY_VERSION.start_with?('1.9') diff --git a/sass-rails.gemspec b/sass-rails.gemspec index ae2b1ad..72755dd 100644 --- a/sass-rails.gemspec +++ b/sass-rails.gemspec @@ -13,7 +13,9 @@ Gem::Specification.new do |s| s.description = %q{Sass adapter for the Rails asset pipeline.} s.license = %q{MIT} - s.add_dependency 'railties', '>= 4.0.0' + s.required_ruby_version = ">= 2.4.0" + + s.add_dependency 'railties', '>= 5.2.0' s.add_dependency 'sass', '~> 3.1' s.add_dependency 'sprockets-rails', '>= 2.0', '< 4.0' s.add_dependency 'sprockets', '>= 2.8', '< 4.0'