active_remote 7.2.0 → 8.0.0
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 +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/active_remote/association.rb +2 -2
- data/lib/active_remote/integration.rb +1 -1
- data/lib/active_remote/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13fdf3ed92f20e608fe846c525a3aea347bba7a01b8a396f65739c8357af5ee3
|
|
4
|
+
data.tar.gz: 6775f7aed03f1c5818f8044b541d71606263c831aed7d39a1d8411d4a50f3956
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d4cee04801ccafe681c6bcee7be673c3b461726e026d34b97a67f44da0de8965d40844ae3509a9d265c07a1396da70534989c35214e153c2b119fc3042c38fb
|
|
7
|
+
data.tar.gz: 0440d0ede16aba2032b1034e6f29bc9f09e1343142c9de95a7eda99d05f3baf9d542dd1513e4b63088c19b05ee8b789d0e1e8464673eeec5381d39e52a3b07ac
|
data/CHANGELOG.md
CHANGED
|
@@ -10,9 +10,23 @@ since Active Remote depends on specific Rails versions.
|
|
|
10
10
|
|
|
11
11
|
### Changed
|
|
12
12
|
|
|
13
|
+
- Update to ActiveModel 8.0
|
|
14
|
+
- Require Ruby 3.2 (to match Rails 8.0)
|
|
15
|
+
- Fix Standard violations
|
|
16
|
+
|
|
17
|
+
## [7.2.0] – 2026-02-13
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
13
21
|
- Update to ActiveModel 7.2
|
|
14
22
|
- Require Ruby 3.1 (to match Rails)
|
|
15
23
|
|
|
24
|
+
## [7.1.1] - 2025-09-25
|
|
25
|
+
|
|
26
|
+
- Fix deprecated `to_s(:db)` usage in attribute methods [#107](https://github.com/liveh2o/active_remote/pull/107)
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
16
30
|
## [7.1.0] - 2024-12-04
|
|
17
31
|
|
|
18
32
|
### Changed
|
|
@@ -126,8 +126,8 @@ module ActiveRemote
|
|
|
126
126
|
# when requiring an attribute on your search, we verify the attribute
|
|
127
127
|
# exists on both models
|
|
128
128
|
def validate_scoped_attributes(associated_class, object_class, options)
|
|
129
|
-
raise "Could not find attribute: '#{options[:scope]}' on #{object_class}" unless object_class.
|
|
130
|
-
raise "Could not find attribute: '#{options[:scope]}' on #{associated_class}" unless associated_class.
|
|
129
|
+
raise "Could not find attribute: '#{options[:scope]}' on #{object_class}" unless object_class.public_method_defined?(options[:scope])
|
|
130
|
+
raise "Could not find attribute: '#{options[:scope]}' on #{associated_class}" unless associated_class.public_method_defined?(options[:scope])
|
|
131
131
|
end
|
|
132
132
|
|
|
133
133
|
private
|
|
@@ -63,7 +63,7 @@ module ActiveRemote
|
|
|
63
63
|
if new_record?
|
|
64
64
|
|
|
65
65
|
"#{model_name.cache_key}/new"
|
|
66
|
-
elsif ::ActiveRemote.config.default_cache_key_updated_at? &&
|
|
66
|
+
elsif ::ActiveRemote.config.default_cache_key_updated_at? && respond_to?(:[]) && (timestamp = self["updated_at"])
|
|
67
67
|
timestamp = timestamp.utc.to_fs(self.class.cache_timestamp_format)
|
|
68
68
|
"#{model_name.cache_key}/#{send(primary_key)}-#{timestamp}"
|
|
69
69
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_remote
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Hutchison
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 8.0.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: 8.0.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: activesupport
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
33
|
+
version: 8.0.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
40
|
+
version: 8.0.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: protobuf
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -105,14 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
105
105
|
requirements:
|
|
106
106
|
- - ">="
|
|
107
107
|
- !ruby/object:Gem::Version
|
|
108
|
-
version: 3.
|
|
108
|
+
version: 3.2.0
|
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
requirements:
|
|
111
111
|
- - ">="
|
|
112
112
|
- !ruby/object:Gem::Version
|
|
113
113
|
version: '0'
|
|
114
114
|
requirements: []
|
|
115
|
-
rubygems_version: 3.
|
|
115
|
+
rubygems_version: 3.4.19
|
|
116
116
|
signing_key:
|
|
117
117
|
specification_version: 4
|
|
118
118
|
summary: Active Record for your platform
|