coil 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bc87488bb14278757b74fb9c539532de36faf3b346adee293b4abb2fa0517be
|
4
|
+
data.tar.gz: cfe37adfede162efa3c9d09fa2db7178f982021a137d0a0452960424509af318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97a4c9aa3de126d9f45fcc45a08705ca812d29b56a97d0a4f4b2354d93839a14ba32cd58a3af60b4cbd0b44fe8487171a87870ab0fc694b165c13b33d36e7a36
|
7
|
+
data.tar.gz: 37b3e67312ad0cf58636dcbe35eab8937ab9c2daf3b92aa74284480a02ede5e7886e8f71556143dd9617533c3f92c1f703bb82f5638f7dd107a763727bab3427
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
## main
|
2
2
|
|
3
|
+
## [1.5.2](https://github.com/OdekoTeam/coil/compare/1.5.1...1.5.2) (2025-03-19)
|
4
|
+
#### Fixed
|
5
|
+
- Fix support for Rails versions older than 6.1.0 ([0afd25b](https://github.com/OdekoTeam/coil/commit/0afd25bf1f47371e47f3787daf81caab8b676646))
|
6
|
+
|
3
7
|
## [1.5.1](https://github.com/OdekoTeam/coil/compare/1.5.0...1.5.1) (2025-01-29)
|
4
8
|
#### Fixed
|
5
9
|
- Avoid `ActiveRecord::SubclassNotFound` on orphaned messages ([ea3a64a](https://github.com/OdekoTeam/coil/commit/ea3a64acfcb9f05d53e242f96eb1b525761e414d))
|
@@ -93,7 +93,11 @@ module Coil
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def message_class_for(type)
|
96
|
-
|
96
|
+
if ActiveRecord.version < Gem::Version.new("6.1.0")
|
97
|
+
message_parent_class.send(:find_sti_class, type)
|
98
|
+
else
|
99
|
+
message_parent_class.sti_class_for(type)
|
100
|
+
end
|
97
101
|
rescue ActiveRecord::SubclassNotFound
|
98
102
|
end
|
99
103
|
|
@@ -29,7 +29,11 @@ module Coil
|
|
29
29
|
private
|
30
30
|
|
31
31
|
def message_class_for(type)
|
32
|
-
|
32
|
+
if ActiveRecord.version < Gem::Version.new("6.1.0")
|
33
|
+
message_parent_class.send(:find_sti_class, type)
|
34
|
+
else
|
35
|
+
message_parent_class.sti_class_for(type)
|
36
|
+
end
|
33
37
|
rescue ActiveRecord::SubclassNotFound
|
34
38
|
end
|
35
39
|
|
data/lib/coil/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Brennan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-03-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -287,7 +287,10 @@ files:
|
|
287
287
|
homepage: https://github.com/OdekoTeam/coil
|
288
288
|
licenses:
|
289
289
|
- Apache-2.0
|
290
|
-
metadata:
|
290
|
+
metadata:
|
291
|
+
bug_tracker_uri: https://github.com/OdekoTeam/coil/issues
|
292
|
+
changelog_uri: https://github.com/OdekoTeam/coil/blob/main/CHANGELOG.md
|
293
|
+
source_code_uri: https://github.com/OdekoTeam/coil
|
291
294
|
post_install_message:
|
292
295
|
rdoc_options: []
|
293
296
|
require_paths:
|