Skip to content

Commit

Permalink
Drop Rails 5.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Oct 26, 2020
1 parent 7e03dcf commit 2094c19
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ rvm:
- 2.6.3
- ruby-head
env:
- RAILS_VERSION="~> 5.0.0"
- RAILS_VERSION="~> 5.1.0"
- RAILS_VERSION="~> 5.2.0"
- RAILS_VERSION="~> 6.0.0.rc1"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ boot it every time you run a test, rake task or migration.
## Compatibility

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

Spring makes extensive use of `Process.fork`, so won't be able to
Expand Down
4 changes: 2 additions & 2 deletions lib/spring/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def preload

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

unless Rails.respond_to?(:gem_version) && Rails.gem_version >= Gem::Version.new('5.0.0')
raise "Spring only supports Rails >= 5.0.0"
unless Rails.respond_to?(:gem_version) && Rails.gem_version >= Gem::Version.new('5.1.0')
raise "Spring only supports Rails >= 5.1.0"
end

# config/environments/test.rb will have config.cache_classes = true. However
Expand Down
2 changes: 1 addition & 1 deletion test/support/acceptance_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class AcceptanceTest < ActiveSupport::TestCase
DEFAULT_SPEEDUP = 0.8

def rails_version
ENV['RAILS_VERSION'] || '~> 5.0.0'
ENV['RAILS_VERSION'] || '~> 6.0.0'
end

# Extension point for spring-watchers-listen
Expand Down

0 comments on commit 2094c19

Please sign in to comment.