Skip to content

Commit 9a62bdf

Browse files
committed
Drop support for Rails 4.x
1 parent 3da55d7 commit 9a62bdf

File tree

9 files changed

+8
-24
lines changed

9 files changed

+8
-24
lines changed

.travis.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,11 @@ rvm:
1414
- 2.7.2
1515

1616
gemfile:
17-
- gemfiles/rails_4.2.gemfile
1817
- gemfiles/rails_5.0.gemfile
1918
- gemfiles/rails_5.1.gemfile
2019
- gemfiles/rails_5.2.gemfile
2120
- gemfiles/rails_6.0.gemfile
2221

23-
matrix:
24-
exclude:
25-
# Rails 4.2 isn't compatible with Ruby 2.7+
26-
- rvm: 2.7.2
27-
gemfile: gemfiles/rails_4.2.gemfile
28-
2922
addons:
3023
code_climate:
3124
repo_token: 60e4a18e2a4bc86a98f92847f16756876c13d1e772058a9b3296643b04a697d7

Appraisals

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require 'json'
44
rails_versions = JSON.parse(Net::HTTP.get(URI('https://rubygems.org/api/v1/versions/rails.json')))
55
.group_by { |version| version['number'] }.keys.reject { |key| key =~ /rc|racecar|beta|pre/ }
66

7-
%w[4.2 5.0 5.1 5.2 6.0].each do |version|
7+
%w[5.0 5.1 5.2 6.0].each do |version|
88
appraise "rails_#{version}" do
99
current_version = rails_versions
1010
.select { |key| key.match(/\A#{version}/) }
@@ -13,6 +13,6 @@ rails_versions = JSON.parse(Net::HTTP.get(URI('https://rubygems.org/api/v1/versi
1313
gem 'activesupport', "~> #{current_version}"
1414
gem 'activerecord', "~> #{current_version}"
1515

16-
gem 'sqlite3', Gem::Version.new(version) > Gem::Version.new(5.0) ? '~> 1.4.1' : '< 1.4'
16+
gem 'sqlite3', Gem::Version.new(version) > Gem::Version.new(5.0) ? '~> 1.4.2' : '< 1.4'
1717
end
1818
end

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
enumerate_it (3.1.0)
5-
activesupport (>= 4.2.0)
5+
activesupport (>= 5.0.7.2)
66

77
GEM
88
remote: https://rubygems.org/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ You sure can! 😄
404404
#### What versions of Ruby and Rails are supported?
405405

406406
* **Ruby**: `2.5+`
407-
* **Rails** `4.2+`
407+
* **Rails** `5.0+`
408408

409409
All versions are tested via
410410
[Travis](https://github.com/lucascaton/enumerate_it/blob/master/.travis.yml).

enumerate_it.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
2020
'changelog_uri' => 'https://github.com/lucascaton/enumerate_it/releases'
2121
}
2222

23-
gem.add_dependency 'activesupport', '>= 4.2.0'
23+
gem.add_dependency 'activesupport', '>= 5.0.7.2'
2424

2525
gem.add_development_dependency 'appraisal'
2626
gem.add_development_dependency 'bundler'

gemfiles/rails_4.2.gemfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

gemfiles/rails_5.1.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ source 'https://rubygems.org'
44

55
gem 'activerecord', '~> 5.1.7'
66
gem 'activesupport', '~> 5.1.7'
7-
gem 'sqlite3', '~> 1.4.1'
7+
gem 'sqlite3', '~> 1.4.2'
88

99
gemspec path: '../'

gemfiles/rails_5.2.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ source 'https://rubygems.org'
44

55
gem 'activerecord', '~> 5.2.4.4'
66
gem 'activesupport', '~> 5.2.4.4'
7-
gem 'sqlite3', '~> 1.4.1'
7+
gem 'sqlite3', '~> 1.4.2'
88

99
gemspec path: '../'

gemfiles/rails_6.0.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ source 'https://rubygems.org'
44

55
gem 'activerecord', '~> 6.0.3.4'
66
gem 'activesupport', '~> 6.0.3.4'
7-
gem 'sqlite3', '~> 1.4.1'
7+
gem 'sqlite3', '~> 1.4.2'
88

99
gemspec path: '../'

0 commit comments

Comments
 (0)