Skip to content

Commit 7e03dcf

Browse files
Drop Rails 4.2 support
1 parent d7b21ff commit 7e03dcf

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.travis.yml

-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ rvm:
66
- 2.6.3
77
- ruby-head
88
env:
9-
- RAILS_VERSION="~> 4.2.0"
109
- RAILS_VERSION="~> 5.0.0"
1110
- RAILS_VERSION="~> 5.1.0"
1211
- RAILS_VERSION="~> 5.2.0"
@@ -15,8 +14,6 @@ matrix:
1514
exclude:
1615
- rvm: 2.4.6
1716
env: RAILS_VERSION="~> 6.0.0.rc1"
18-
- rvm: 2.6.3
19-
env: RAILS_VERSION="~> 4.2.0"
2017
allow_failures:
2118
- rvm: ruby-head
2219
fast_finish: true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ boot it every time you run a test, rake task or migration.
1717
## Compatibility
1818

1919
* Ruby versions: MRI 2.4, MRI 2.5, MRI 2.6
20-
* Rails versions: 4.2, 5.0, 5.1, 5.2, 6.0 (Spring is installed by default when you do
20+
* Rails versions: 5.0, 5.1, 5.2, 6.0 (Spring is installed by default when you do
2121
`rails new` to generate your application)
2222

2323
Spring makes extensive use of `Process.fork`, so won't be able to

lib/spring/application.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ def preload
9191

9292
require Spring.application_root_path.join("config", "application")
9393

94-
unless Rails.respond_to?(:gem_version) && Rails.gem_version >= Gem::Version.new('4.2.0')
95-
raise "Spring only supports Rails >= 4.2.0"
94+
unless Rails.respond_to?(:gem_version) && Rails.gem_version >= Gem::Version.new('5.0.0')
95+
raise "Spring only supports Rails >= 5.0.0"
9696
end
9797

9898
# config/environments/test.rb will have config.cache_classes = true. However

0 commit comments

Comments
 (0)