Skip to content

Commit 6861603

Browse files
chore: upgrade to rails 7.2, ruby {3.2, 3.3} and add test config
- migrated pipeline from 'coveralls' to 'coveralls_reborn' - update test case for ruby 3.3 - bump version and update changelog
1 parent 39cdc27 commit 6861603

File tree

11 files changed

+36
-29
lines changed

11 files changed

+36
-29
lines changed

.github/workflows/ruby.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
branches: ['master']
1515
schedule:
1616
- cron: '0 0 * * 0'
17+
workflow_dispatch:
1718

1819
permissions:
1920
contents: read
@@ -23,12 +24,15 @@ jobs:
2324
runs-on: ubuntu-latest
2425
strategy:
2526
matrix:
26-
ruby-version: ['3.0', '3.1', '3.2']
27-
activerecord: ['6.0', '6.1', '7.0', '7.1']
27+
ruby-version: ['3.0', '3.1', '3.2', '3.3']
28+
activerecord: ['7.0', '7.1', '7.2']
29+
exclude:
30+
- ruby-version: '3.0'
31+
activerecord: '7.2'
2832
env:
2933
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.activerecord }}.gemfile
3034
steps:
31-
- uses: actions/checkout@v3
35+
- uses: actions/checkout@v4
3236
- name: Set up Ruby
3337
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
3438
# change this to (see https://github.com/ruby/setup-ruby#versioning):

Appraisals

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
appraise "rails-6.0" do
2-
gem 'rails', '6.0.6.1'
3-
end
4-
5-
appraise "rails-6.1" do
6-
gem 'rails', '~> 6.1'
7-
end
8-
91
appraise "rails-7.0" do
102
gem 'rails', '~> 7.0'
113
end
124

135
appraise "rails-7.1" do
146
gem 'rails', '~> 7.1'
157
end
8+
9+
appraise "rails-7.2" do
10+
gem 'rails', '~> 7.2'
11+
end

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [4.0.1] - 2024-09-04
9+
10+
### Added
11+
12+
- Add support for rails 7.2
13+
- Add support for ruby 3.2 and 3.3
14+
15+
### Removed
16+
17+
- Remove support for rails 6.x
18+
819
## [4.0.0] - 2024-06-03
920

1021
### Added

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
33
# Specify your gem's dependencies in active_record-acts_as.gemspec
44
gemspec
55

6-
gem 'coveralls', require: false
6+
gem 'coveralls_reborn', require: false

active_record-acts_as.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require 'active_record/acts_as/version'
66
Gem::Specification.new do |spec|
77
spec.name = "active_record-acts_as"
88
spec.version = ActiveRecord::ActsAs::VERSION
9-
spec.authors = ["Hassan Zamani", "Manuel Meurer"]
9+
spec.authors = ["Hassan Zamani", "Manuel Meurer", "Bivan Alzacky Harmanto", "Adi Suryanata Herwana"]
1010
spec.email = ["hsn.zamani@gmail.com", "manuel@krautcomputing.com"]
1111
spec.summary = %q{Simulate multi-table inheritance for activerecord models}
1212
spec.description = %q{Simulate multi-table inheritance for activerecord models using a plymorphic association}
@@ -28,6 +28,6 @@ Gem::Specification.new do |spec|
2828
spec.add_development_dependency "appraisal", "~> 2.1"
2929
spec.add_development_dependency "guard-rspec", "~> 4.7"
3030

31-
spec.add_dependency "activesupport", ">= 6.0"
32-
spec.add_dependency "activerecord", ">= 6.0"
31+
spec.add_dependency "activesupport", ">= 7.0"
32+
spec.add_dependency "activerecord", ">= 7.0"
3333
end

gemfiles/rails_6.1.gemfile

Lines changed: 0 additions & 8 deletions
This file was deleted.

gemfiles/rails_7.0.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "coveralls", require: false
5+
gem "coveralls_reborn", require: false
66
gem "rails", "~> 7.0"
77

88
gemspec path: "../"

gemfiles/rails_7.1.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "coveralls", require: false
5+
gem "coveralls_reborn", require: false
66
gem "rails", "~> 7.1"
77

88
gemspec path: "../"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "coveralls", require: false
6-
gem "rails", "6.0.6.1"
5+
gem "coveralls_reborn", require: false
6+
gem "rails", "~> 7.2"
77

88
gemspec path: "../"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module ActiveRecord
22
module ActsAs
3-
VERSION = "4.0.0"
3+
VERSION = "4.0.1"
44
end
55
end

0 commit comments

Comments
 (0)