active_remote 3.2.0 → 3.2.1
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/lib/active_remote/persistence.rb +4 -4
- data/lib/active_remote/search.rb +1 -1
- data/lib/active_remote/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfc7721bde7338f18d48628778fc459403968a04c453d63840990a61bb194d76
|
4
|
+
data.tar.gz: 1ca73c49c458db773890efc9379ed7e70ea525d305de8cb31b4b0239e50e5e9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d7ede2b6df950844516d77078e60d1ff629a511b4d0594398247483e4f4167199c826a2ab40a5879de07d9040a5ba228f79cc98cd00f3989e6bf9120851ccfc
|
7
|
+
data.tar.gz: f56cc3b5e1f4db3093f88fbdacd00f1cf91631de395fe5473e80072a38aee93826772a89f1c1f9afb3bdc4ae8b3016d105d7c589f76b683706449c93812584d7
|
@@ -77,7 +77,7 @@ module ActiveRemote
|
|
77
77
|
#
|
78
78
|
def delete
|
79
79
|
raise ReadOnlyRemoteRecord if readonly?
|
80
|
-
response =
|
80
|
+
response = remote_call(:delete, scope_key_hash)
|
81
81
|
|
82
82
|
add_errors(response.errors) if response.respond_to?(:errors)
|
83
83
|
|
@@ -102,7 +102,7 @@ module ActiveRemote
|
|
102
102
|
#
|
103
103
|
def destroy
|
104
104
|
raise ReadOnlyRemoteRecord if readonly?
|
105
|
-
response =
|
105
|
+
response = remote_call(:destroy, scope_key_hash)
|
106
106
|
|
107
107
|
add_errors(response.errors) if response.respond_to?(:errors)
|
108
108
|
|
@@ -239,7 +239,7 @@ module ActiveRemote
|
|
239
239
|
# Use the getter here so we get the type casting.
|
240
240
|
new_attributes = attributes
|
241
241
|
|
242
|
-
response =
|
242
|
+
response = remote_call(:create, new_attributes)
|
243
243
|
|
244
244
|
assign_attributes(response.to_hash)
|
245
245
|
add_errors(response.errors) if response.respond_to?(:errors)
|
@@ -269,7 +269,7 @@ module ActiveRemote
|
|
269
269
|
updated_attributes.slice!(*attribute_names)
|
270
270
|
updated_attributes.merge!(scope_key_hash)
|
271
271
|
|
272
|
-
response =
|
272
|
+
response = remote_call(:update, updated_attributes)
|
273
273
|
|
274
274
|
assign_attributes(response.to_hash)
|
275
275
|
add_errors(response.errors) if response.respond_to?(:errors)
|
data/lib/active_remote/search.rb
CHANGED
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: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Hutchison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
269
269
|
version: '0'
|
270
270
|
requirements: []
|
271
271
|
rubyforge_project:
|
272
|
-
rubygems_version: 2.7.
|
272
|
+
rubygems_version: 2.7.8
|
273
273
|
signing_key:
|
274
274
|
specification_version: 4
|
275
275
|
summary: Active Record for your platform
|