active_remote 6.1.0 → 6.1.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: d2039a93870a3c7c5fdd7c08bcd12a66cb33948d97cb04a8b0df6612870141df
|
4
|
+
data.tar.gz: 15042a6a3651a1b70f1d5809f932d4bb6b8d9a46e752b30bf82bf643424ae03f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d4c8b0d4779a636f7321147c3defa77fb83284b2912f6d72b303731c651770d0e191e638aec7bb4215bf9d76855a1dd8d952f4cc63e0c49f3bec396ff2833bc
|
7
|
+
data.tar.gz: 0b0dbae09bf6fdbdfe3c7a36b0a47db52dc56dcff5b4817b752c398756fd774b54e4897630d32ab5bb44be09a1afa7546bd89963505792545e8c177ac44b8abf
|
@@ -39,7 +39,7 @@ module ActiveRemote
|
|
39
39
|
search_hash[:guid] = object.send(foreign_key)
|
40
40
|
search_hash[options[:scope]] = object.send(options[:scope]) if options.key?(:scope)
|
41
41
|
|
42
|
-
search_hash.values.any?(&:nil?) ? nil : klass.search(search_hash).first
|
42
|
+
search_hash.values.any?(&:nil?) ? nil : klass.search(**search_hash).first
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -80,7 +80,7 @@ module ActiveRemote
|
|
80
80
|
search_hash[foreign_key] = object.guid
|
81
81
|
search_hash[options[:scope]] = object.send(options[:scope]) if options.key?(:scope)
|
82
82
|
|
83
|
-
search_hash.values.any?(&:nil?) ? [] : klass.search(search_hash)
|
83
|
+
search_hash.values.any?(&:nil?) ? [] : klass.search(**search_hash)
|
84
84
|
end
|
85
85
|
|
86
86
|
options[:has_many] = true
|
@@ -120,7 +120,7 @@ module ActiveRemote
|
|
120
120
|
search_hash[foreign_key] = object.guid
|
121
121
|
search_hash[options[:scope]] = object.send(options[:scope]) if options.key?(:scope)
|
122
122
|
|
123
|
-
search_hash.values.any?(&:nil?) ? nil : klass.search(search_hash).first
|
123
|
+
search_hash.values.any?(&:nil?) ? nil : klass.search(**search_hash).first
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
@@ -11,13 +11,13 @@ module ActiveRemote
|
|
11
11
|
def [](attr_name)
|
12
12
|
name = attr_name.to_s
|
13
13
|
name = self.class.attribute_aliases[name] || name
|
14
|
-
|
14
|
+
attribute(name.to_s)
|
15
15
|
end
|
16
16
|
|
17
17
|
def []=(attr_name, value)
|
18
18
|
name = attr_name.to_s
|
19
19
|
name = self.class.attribute_aliases[name] || name
|
20
|
-
|
20
|
+
_write_attribute(name.to_s, value)
|
21
21
|
end
|
22
22
|
|
23
23
|
# Returns an <tt>#inspect</tt>-like string for the value of the
|
@@ -351,7 +351,7 @@ describe ::ActiveRemote::Persistence do
|
|
351
351
|
end
|
352
352
|
|
353
353
|
it "updates a remote record" do
|
354
|
-
expect(rpc).to receive(:execute).with(:update, "name" => "foo", "guid" => "123")
|
354
|
+
expect(rpc).to receive(:execute).with(:update, {"name" => "foo", "guid" => "123"})
|
355
355
|
tag.update_attribute(:name, "foo")
|
356
356
|
end
|
357
357
|
|
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: 6.1.
|
4
|
+
version: 6.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Hutchison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
279
279
|
- !ruby/object:Gem::Version
|
280
280
|
version: '0'
|
281
281
|
requirements: []
|
282
|
-
rubygems_version: 3.
|
282
|
+
rubygems_version: 3.4.6
|
283
283
|
signing_key:
|
284
284
|
specification_version: 4
|
285
285
|
summary: Active Record for your platform
|