Skip to content

Commit c4c26b5

Browse files
committed
Add support for rails 8 & 8.1 and specs for ruby 3.2, 3.3, 3.4, 4.0
1 parent 056686e commit c4c26b5

5 files changed

Lines changed: 36 additions & 19 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
strategy:
1515
matrix:
1616
ruby:
17-
- "2.6"
18-
- "2.7"
19-
- "3.0"
20-
- "3.1"
17+
- "3.2"
18+
- "3.3"
19+
- "3.4"
20+
- "4.0"
2121

2222
steps:
2323
- uses: actions/checkout@v2

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AllCops:
2-
TargetRubyVersion: 2.6
2+
TargetRubyVersion: 3.2
33
NewCops: disable
44

55
Style/Documentation:

Gemfile.lock

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,46 @@
11
PATH
22
remote: .
33
specs:
4-
safe_polymorphic (0.1.3)
5-
activerecord (>= 5.2, < 8.0)
4+
safe_polymorphic (0.1.4)
5+
activerecord (>= 7.0, < 8.3)
66

77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
activemodel (6.1.4.1)
11-
activesupport (= 6.1.4.1)
12-
activerecord (6.1.4.1)
13-
activemodel (= 6.1.4.1)
14-
activesupport (= 6.1.4.1)
15-
activesupport (6.1.4.1)
10+
activemodel (7.1.6)
11+
activesupport (= 7.1.6)
12+
activerecord (7.1.6)
13+
activemodel (= 7.1.6)
14+
activesupport (= 7.1.6)
15+
timeout (>= 0.4.0)
16+
activesupport (7.1.6)
17+
base64
18+
benchmark (>= 0.3)
19+
bigdecimal
1620
concurrent-ruby (~> 1.0, >= 1.0.2)
21+
connection_pool (>= 2.2.5)
22+
drb
1723
i18n (>= 1.6, < 2)
24+
logger (>= 1.4.2)
1825
minitest (>= 5.1)
26+
mutex_m
27+
securerandom (>= 0.3)
1928
tzinfo (~> 2.0)
20-
zeitwerk (~> 2.3)
2129
addressable (2.8.9)
2230
public_suffix (>= 2.0.2, < 8.0)
2331
ast (2.4.3)
32+
base64 (0.3.0)
33+
benchmark (0.5.0)
2434
bigdecimal (4.0.1)
2535
concurrent-ruby (1.1.10)
36+
connection_pool (3.0.2)
2637
database_cleaner-active_record (2.2.2)
2738
activerecord (>= 5.a)
2839
database_cleaner-core (~> 2.0)
2940
database_cleaner-core (2.0.1)
3041
diff-lcs (1.6.2)
3142
docile (1.4.1)
43+
drb (2.2.3)
3244
i18n (1.12.0)
3345
concurrent-ruby (~> 1.0)
3446
json (2.19.1)
@@ -37,9 +49,13 @@ GEM
3749
bigdecimal (>= 3.1, < 5)
3850
language_server-protocol (3.17.0.5)
3951
lint_roller (1.1.0)
52+
logger (1.7.0)
4053
mcp (0.8.0)
4154
json-schema (>= 4.1)
42-
minitest (5.16.3)
55+
minitest (6.0.2)
56+
drb (~> 2.0)
57+
prism (~> 1.5)
58+
mutex_m (0.3.0)
4359
parallel (1.27.0)
4460
parser (3.3.10.2)
4561
ast (~> 2.4.1)
@@ -79,6 +95,7 @@ GEM
7995
parser (>= 3.3.7.2)
8096
prism (~> 1.7)
8197
ruby-progressbar (1.13.0)
98+
securerandom (0.4.1)
8299
simplecov (0.22.0)
83100
docile (~> 1.1)
84101
simplecov-html (~> 0.11)
@@ -87,12 +104,12 @@ GEM
87104
simplecov_json_formatter (0.1.4)
88105
sqlite3 (2.9.1-arm64-darwin)
89106
sqlite3 (2.9.1-x86_64-linux-gnu)
107+
timeout (0.6.1)
90108
tzinfo (2.0.5)
91109
concurrent-ruby (~> 1.0)
92110
unicode-display_width (3.2.0)
93111
unicode-emoji (~> 4.1)
94112
unicode-emoji (4.2.0)
95-
zeitwerk (2.6.0)
96113

97114
PLATFORMS
98115
arm64-darwin-21

lib/safe_polymorphic/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module SafePolymorphic
4-
VERSION = '0.1.3'
4+
VERSION = '0.1.4'
55
end

safe_polymorphic.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
1313
spec.description = 'ActiveRecord extension which allows us to safely use polymorphic associations, by validating' \
1414
'which classes are allowed to be related to, while also adding scopes and helper methods.'
1515
spec.homepage = 'https://github.com/gogrow-dev/safe_polymorphic'
16-
spec.required_ruby_version = '>= 2.6.0'
16+
spec.required_ruby_version = '>= 3.2.0'
1717

1818
spec.metadata['homepage_uri'] = spec.homepage
1919
spec.metadata['source_code_uri'] = spec.homepage
@@ -31,5 +31,5 @@ Gem::Specification.new do |spec|
3131
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
3232
spec.require_paths = ['lib']
3333

34-
spec.add_dependency 'activerecord', '>= 5.2', '< 8.0'
34+
spec.add_dependency 'activerecord', '>= 7.0', '< 8.3'
3535
end

0 commit comments

Comments
 (0)