Skip to content

Commit

Permalink
feat: Add support for Rails 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraichen committed Aug 24, 2024
1 parent 48238f4 commit 1972655
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ jobs:
- rails_6.1.gemfile
- rails_7.0.gemfile
- rails_7.1.gemfile
- rails_7.2.gemfile
exclude:
- gemfile: rails_7.2.gemfile
ruby: "3.0"
- gemfile: rails_7.2.gemfile
ruby: "2.7"
fail-fast: False

env:
Expand Down
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ appraise 'rails-7.1' do
gem 'railties', '~> 7.1.0', require: 'rails'
end

appraise 'rails-7.2' do
gem 'activesupport', '~> 7.2.0'
gem 'activemodel', '~> 7.2.0'
gem 'actionpack', '~> 7.2.0'
gem 'railties', '~> 7.2.0', require: 'rails'
end

appraise 'rails-head' do
gem 'activesupport', github: 'rails/rails'
gem 'activemodel', github: 'rails/rails'
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a Ch

### New

- Add support for Rails 7.2

### Changes

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://img.shields.io/github/actions/workflow/status/jgraichen/rails-rfc6570/test.yml?logo=github)](https://github.com/jgraichen/rails-rfc6570/actions/workflows/test.yml)

Pragmatic access to your Rails routes as RFC6570 URI templates. Tested with Rails 6.1, 7.0, 7.1 and Ruby 2.7, 3.0, 3.1, 3.2, 3.3.
Pragmatic access to your Rails routes as RFC6570 URI templates. Tested with Rails 6.1, 7.0, 7.1, 7.2 and Ruby 2.7, 3.0, 3.1, 3.2, 3.3.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ end
group :test do
gem "rspec", "~> 3.0"
gem "rspec-rails"
gem "simplecov-cobertura"
gem "simplecov"
gem "simplecov-cobertura"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ end
group :test do
gem "rspec", "~> 3.0"
gem "rspec-rails"
gem "simplecov-cobertura"
gem "simplecov"
gem "simplecov-cobertura"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_7.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ end
group :test do
gem "rspec", "~> 3.0"
gem "rspec-rails"
gem "simplecov-cobertura"
gem "simplecov"
gem "simplecov-cobertura"
end

gemspec path: "../"
27 changes: 27 additions & 0 deletions gemfiles/rails_7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rake"
gem "rake-release", "~> 1.0"
gem "rubocop-config", github: "jgraichen/rubocop-config", ref: "v11", require: false
gem "activesupport", "~> 7.2.0"
gem "activemodel", "~> 7.2.0"
gem "actionpack", "~> 7.2.0"
gem "railties", "~> 7.2.0", require: "rails"

group :development do
gem "appraisal"
gem "benchmark-ips"
gem "pry"
gem "pry-byebug"
end

group :test do
gem "rspec", "~> 3.0"
gem "rspec-rails"
gem "simplecov"
gem "simplecov-cobertura"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion gemfiles/rails_head.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ end
group :test do
gem "rspec", "~> 3.0"
gem "rspec-rails"
gem "simplecov-cobertura"
gem "simplecov"
gem "simplecov-cobertura"
end

gemspec path: "../"
2 changes: 1 addition & 1 deletion rails-rfc6570.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.7'

spec.add_runtime_dependency 'actionpack', '>= 4.2', '< 7.2'
spec.add_runtime_dependency 'actionpack', '>= 4.2', '< 8.0'
spec.add_runtime_dependency 'addressable', '~> 2.3'
end

0 comments on commit 1972655

Please sign in to comment.