Skip to content
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
15 changes: 7 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@ jobs:
strategy:
matrix:
versions:
- { ruby: "3.1", rails: "7.0.x" }
- { ruby: "3.2", rails: "7.0.x" }
- { ruby: "3.3", rails: "7.0.x" }
- { ruby: "3.1", rails: "7.1.x" }
- { ruby: "3.2", rails: "7.1.x" }
- { ruby: "3.3", rails: "7.1.x" }
- { ruby: "3.1", rails: "7.2.x" }
- { ruby: "3.2", rails: "7.2.x" }
- { ruby: "3.3", rails: "7.2.x" }
- { ruby: "3.4", rails: "7.2.x" }
- { ruby: "3.2", rails: "8.0.x" }
- { ruby: "3.3", rails: "8.0.x" }
- { ruby: "3.4", rails: "8.0.x" }
- { ruby: "3.2", rails: "8.1.x" }
- { ruby: "3.3", rails: "8.1.x" }
- { ruby: "3.4", rails: "8.1.x" }
- { ruby: "3.2", rails: "head" }
- { ruby: "3.3", rails: "head" }
- { ruby: "3.4", rails: "head" }

env:
BUNDLE_GEMFILE: gemfiles/rails_${{ matrix.versions.rails }}.gemfile
Expand All @@ -35,7 +34,7 @@ jobs:
- name: Update gemspec to test in head version
if: matrix.versions.rails == 'head'
run: |
sed -i -e 's/, "< 8.1"//g' dekorator.gemspec
sed -i -e 's/, "< 8.2"//g' dekorator.gemspec

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
12 changes: 4 additions & 8 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# frozen_string_literal: true

appraise "rails-7.0.x" do
gem "rails", "~> 7.0.0"
end

appraise "rails-7.1.x" do
gem "rails", "~> 7.1.0"
end

appraise "rails-7.2.x" do
gem "rails", "~> 7.2.0"
end
Expand All @@ -16,6 +8,10 @@ appraise "rails-8.0.x" do
gem "rails", "~> 8.0.0"
end

appraise "rails-8.1.x" do
gem "rails", "~> 8.1.0"
end

appraise "rails-head" do
gem "rails", github: "rails/rails", branch: "main"
end
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
Nothing yet.
### Added
- Add Rails 8.1 support ([#57](https://github.com/komposable/dekorator/pull/57))

## [1.7.0] - 2024-11-10
### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ This gem has been inspired by our Rails development practices at [Pantographe](h

## Compatibility

* Ruby 3.1+
* Rails 7.0+
* Ruby 3.2+
* Rails 7.2+

## Installation

Expand Down
6 changes: 3 additions & 3 deletions dekorator.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")

spec.add_runtime_dependency "actionview", ">= 7.0", "< 8.1"
spec.add_runtime_dependency "activerecord", ">= 7.0", "< 8.1"
spec.add_runtime_dependency "activesupport", ">= 7.0", "< 8.1"
spec.add_runtime_dependency "actionview", ">= 7.2", "< 8.2"
spec.add_runtime_dependency "activerecord", ">= 7.2", "< 8.2"
spec.add_runtime_dependency "activesupport", ">= 7.2", "< 8.2"
end
14 changes: 0 additions & 14 deletions gemfiles/rails_7.1.x.gemfile

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source "https://rubygems.org"

gem "rails", "~> 7.0.0"
gem "rails", "~> 8.1.0"
gem "appraisal", require: false
gem "rubocop", require: false
gem "rubocop-performance", require: false
Expand Down