Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Rails 4.2 support #79

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
ruby:
- 2.7.7
appraisal:
- rails_4_2
- rails_5_0
- rails_5_1
- rails_5_2
Expand All @@ -32,7 +31,6 @@ jobs:
- test_unit
exclude:
- { ruby: 2.7.7, appraisal: rails_5_0 }
- { ruby: 2.7.7, appraisal: rails_4_2 }
env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.appraisal }}.gemfile
TEST_FRAMEWORK: ${{ matrix.test_framework }}
Expand Down
19 changes: 0 additions & 19 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,6 @@ shared_dependencies = proc do
instance_eval(&shared_test_dependencies)
end

appraise "rails_4_2" do
instance_eval(&shared_dependencies)

gem "rails", "~> 4.2.10"
gem "sass-rails", "~> 5.0"
gem "uglifier", ">= 1.3.0"
gem "coffee-rails", "~> 4.1.0"
gem "jquery-rails"
gem "turbolinks"
gem "jbuilder", "~> 2.0"
gem "sdoc", "~> 0.4.0", group: :doc
gem "bcrypt", "~> 3.1.7"

# Other dependencies we use
gem "activeresource", "4.0.0"
gem "json", "~> 1.4"
gem "protected_attributes", "~> 1.0.6"
end

appraise "rails_5_0" do
instance_eval(&shared_dependencies)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ may be of use:

## Compatibility

Shoulda Context is [tested][travis] and supported against Ruby 2.7+, Rails 4.2+,
Shoulda Context is [tested][travis] and supported against Ruby 2.7+, Rails 5.0+,
Minitest 4.x, and Test::Unit 3.x.

## Versioning
Expand Down
35 changes: 0 additions & 35 deletions gemfiles/rails_4_2.gemfile

This file was deleted.

234 changes: 0 additions & 234 deletions gemfiles/rails_4_2.gemfile.lock

This file was deleted.

6 changes: 0 additions & 6 deletions test/shoulda/test_framework_detection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ class TestFrameworkDetectionTest < PARENT_TEST_CASE
end
end

if Tests::CurrentBundle.instance.current_appraisal == "rails_4_2"
should "detect ActiveSupport::TestCase and Minitest 4.x w/ Rails 4.2" do
assert_integration_with_rails_and "Minitest::Test"
end
end

if TEST_FRAMEWORK == "minitest"
should "detect Minitest 5.x when it is loaded standalone" do
assert_integration_with "Minitest::Test", setup: <<-RUBY
Expand Down