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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cbac5d784c60de521085db8130deaab48e717ad11181507aaba6d5e31f62d03
4
- data.tar.gz: bcd69479782546032f635d4185c22ec889a4464fbc7e35ff3c2c71488c8633bf
3
+ metadata.gz: 13fdf3ed92f20e608fe846c525a3aea347bba7a01b8a396f65739c8357af5ee3
4
+ data.tar.gz: 6775f7aed03f1c5818f8044b541d71606263c831aed7d39a1d8411d4a50f3956
5
5
  SHA512:
6
- metadata.gz: b069cb6b997c13bcce15b483dd1ebe806fc4a3695ac5218eeb96b03e35cb7f40ea857b4121c508480b78ac9fd04036ef7f8a42b01240a0f6c2167bb7c5d6a86c
7
- data.tar.gz: effa301ad14ad261ec7fd312b44458cdf53ff20b4ad343d39576148ef323a115483f729b27ae29ffdead8ccab9d16ef49a62ab1ad3846a249cb18a95d99e4d64
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.public_instance_methods.include?(options[:scope])
130
- raise "Could not find attribute: '#{options[:scope]}' on #{associated_class}" unless associated_class.public_instance_methods.include?(options[:scope])
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? && (respond_to?(:[]) && (timestamp = self["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
@@ -1,3 +1,3 @@
1
1
  module ActiveRemote
2
- VERSION = "7.2.0"
2
+ VERSION = "8.0.0"
3
3
  end
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: 7.2.0
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-02-13 00:00:00.000000000 Z
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: 7.2.0
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: 7.2.0
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: 7.2.0
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: 7.2.0
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.1.0
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.5.23
115
+ rubygems_version: 3.4.19
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Active Record for your platform