Skip to content

Commit 556ef28

Browse files
Drop Rails 5.1 support
1 parent 2094c19 commit 556ef28

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

.travis.yml

-1
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="~> 5.1.0"
109
- RAILS_VERSION="~> 5.2.0"
1110
- RAILS_VERSION="~> 6.0.0.rc1"
1211
matrix:

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: 5.1, 5.2, 6.0 (Spring is installed by default when you do
20+
* Rails versions: 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

+3-9
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('5.1.0')
95-
raise "Spring only supports Rails >= 5.1.0"
94+
unless Rails.respond_to?(:gem_version) && Rails.gem_version >= Gem::Version.new('5.2.0')
95+
raise "Spring only supports Rails >= 5.2.0"
9696
end
9797

9898
# config/environments/test.rb will have config.cache_classes = true. However
@@ -163,13 +163,7 @@ def serve(client)
163163
setup command
164164

165165
if Rails.application.reloaders.any?(&:updated?)
166-
# Rails 5.1 forward-compat. AD::R is deprecated to AS::R in Rails 5.
167-
if defined? ActiveSupport::Reloader
168-
Rails.application.reloader.reload!
169-
else
170-
ActionDispatch::Reloader.cleanup!
171-
ActionDispatch::Reloader.prepare!
172-
end
166+
Rails.application.reloader.reload!
173167
end
174168

175169
pid = fork {

0 commit comments

Comments
 (0)