active_remote 7.2.0 → 8.1.0.alpha
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 +21 -1
- 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 +10 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db58c551f5e0a252220a12ca4b9cad06ad9111fcf88cd8e58b4a14e59f4ec35c
|
|
4
|
+
data.tar.gz: f66bdd53bddf81d6a8ea49074052c7e3b2535dcc4732ff2fe5be5abd0caf973a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ba08889917a710e0f3720de6b4d568c990f37424f5ee17d91502bef145ec9c0ec27a357af53519d3de7c53950ba5ceae7b7950e8827cb6281f57940a72b3555
|
|
7
|
+
data.tar.gz: fa0919dad70720e7a482b8b2ebae13a97b5522acc720867c9da1164e129139973fb907d3b5fa143153c093ea788ee274a3b91dc92317bf18d21baf563fd317d4
|
data/CHANGELOG.md
CHANGED
|
@@ -6,13 +6,33 @@ Active Remote adheres to a shifted version of [semver](https://semver.org/spec/v
|
|
|
6
6
|
(a la Rails): major/minor versions shadow Rails [versions](https://guides.rubyonrails.org/maintenance_policy.html#versioning)
|
|
7
7
|
since Active Remote depends on specific Rails versions.
|
|
8
8
|
|
|
9
|
-
## [
|
|
9
|
+
## [8.1.0.alpha]
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Update to ActiveModel 8.1
|
|
14
|
+
|
|
15
|
+
## [8.0.0] - 2026-07-24
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- Update to ActiveModel 8.0
|
|
20
|
+
- Require Ruby 3.2 (to match Rails 8.0)
|
|
21
|
+
- Fix Standard violations
|
|
22
|
+
|
|
23
|
+
## [7.2.0] - 2026-02-13
|
|
10
24
|
|
|
11
25
|
### Changed
|
|
12
26
|
|
|
13
27
|
- Update to ActiveModel 7.2
|
|
14
28
|
- Require Ruby 3.1 (to match Rails)
|
|
15
29
|
|
|
30
|
+
## [7.1.1] - 2025-09-25
|
|
31
|
+
|
|
32
|
+
- Fix deprecated `to_s(:db)` usage in attribute methods [#107](https://github.com/liveh2o/active_remote/pull/107)
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
16
36
|
## [7.1.0] - 2024-12-04
|
|
17
37
|
|
|
18
38
|
### 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.1.0.alpha
|
|
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-08-19 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.1.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.1.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.1.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.1.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
|
-
version:
|
|
113
|
+
version: 1.3.1
|
|
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
|