Skip to content

Commit

Permalink
Drop support for Rails v6.1 (#75)
Browse files Browse the repository at this point in the history
Rails v6.1 has reached EOL as of October 1st, 2024, so we'll drop
support for it and raise the minimum version of Ruby to v2.7.

See this for more information: https://endoflife.date/rails.
  • Loading branch information
mattmenefee authored Oct 1, 2024
1 parent cb89c96 commit 3ce6e2c
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 27 deletions.
1 change: 0 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3"]
gemfile: [
dev/gemfiles/rails-6.1.x.gemfile,
dev/gemfiles/rails-7.0.x.gemfile,
dev/gemfiles/rails-7.1.x.gemfile,
Gemfile
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

* Drop support for Rails < 7.0 (TODO: add PR number)

## Version 2.3.0 (2024-08-23)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
cocooned (2.3.0)
rails (>= 6.1, <= 8.0)
rails (>= 7.0, <= 8.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Cocooned makes it easier to handle nested forms in Rails.

Cocooned is form builder-agnostic: it works with standard Rails (>= 6.1, < 8.0) form helpers, [Formtastic](https://github.com/justinfrench/formtastic) or [SimpleForm](https://github.com/plataformatec/simple_form).
Cocooned is form builder-agnostic: it works with standard Rails (>= 7.0, < 8.0) form helpers, [Formtastic](https://github.com/justinfrench/formtastic) or [SimpleForm](https://github.com/plataformatec/simple_form).

1. [Background](#some-background)
2. [Installation](#installation)
Expand Down
4 changes: 2 additions & 2 deletions cocooned.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(excluded_dirs) || excluded_files.include?(f)
end
spec.required_ruby_version = '>= 2.6'
spec.required_ruby_version = '>= 2.7'

spec.add_dependency 'rails', '>= 6.1', '<= 8.0'
spec.add_dependency 'rails', '>= 7.0', '<= 8.0'

spec.add_development_dependency 'bundler', '~> 2.1'
spec.add_development_dependency 'rake', '~> 13.0'
Expand Down
19 changes: 0 additions & 19 deletions dev/gemfiles/rails-6.1.x.gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion dev/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 2.6
TargetRubyVersion: 2.7

Naming/FileName:
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a companion package for the [cocooned Ruby gem](https://rubygems.org/gem

Cocooned makes it easier to handle nested forms in Rails.

Cocooned is form builder-agnostic: it works with standard Rails (>= 6.1, < 8.0) form helpers, [Formtastic](https://github.com/justinfrench/formtastic) or [SimpleForm](https://github.com/plataformatec/simple_form).
Cocooned is form builder-agnostic: it works with standard Rails (>= 7.0, < 8.0) form helpers, [Formtastic](https://github.com/justinfrench/formtastic) or [SimpleForm](https://github.com/plataformatec/simple_form).

1. [Installation](#installation)
2. [Import](#import), default, custom or with [jQuery integration](#jquery-integration)
Expand Down
2 changes: 1 addition & 1 deletion spec/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
module Dummy
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.1
config.load_defaults 7.0
config.active_support.cache_format_version = 7.0

# Configuration for the application, engines, and railties goes here.
Expand Down

0 comments on commit 3ce6e2c

Please sign in to comment.