json_api_client 1.13.0 → 1.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/json_api_client/query/builder.rb +14 -0
- data/lib/json_api_client/resource.rb +0 -2
- data/lib/json_api_client/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 773e22610a90abf268c451e50ada8927f36b4f2f
|
4
|
+
data.tar.gz: c4368d2ba6de322219b0bba049c8f0bfff6b1344
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae9da8c252d702468da498869c2ef9e0fe0e43731d2fb9f334c519e316081963595f733ad9d2dd070d840a09f0f26afa0eaf68550c8d98b643b5c22a3b42a45c
|
7
|
+
data.tar.gz: f152f2d5d903527f3744e47268e826499f5395e6941bcd421760416f3d78c862a2e845b7cbab599b6ccf3ceb31dfdd6e419a8c1d2706d8c55b04fffe9b209448
|
@@ -109,6 +109,20 @@ module JsonApiClient
|
|
109
109
|
to_a.send(method_name, *args, &block)
|
110
110
|
end
|
111
111
|
|
112
|
+
def hash
|
113
|
+
[
|
114
|
+
klass,
|
115
|
+
params
|
116
|
+
].hash
|
117
|
+
end
|
118
|
+
|
119
|
+
def ==(other)
|
120
|
+
return false unless other.is_a?(self.class)
|
121
|
+
|
122
|
+
hash == other.hash
|
123
|
+
end
|
124
|
+
alias_method :eql?, :==
|
125
|
+
|
112
126
|
protected
|
113
127
|
|
114
128
|
def _fetch
|
@@ -458,7 +458,6 @@ module JsonApiClient
|
|
458
458
|
self.attributes = updated.attributes
|
459
459
|
self.links.attributes = updated.links.attributes
|
460
460
|
self.relationships.attributes = updated.relationships.attributes
|
461
|
-
self.relationships.last_result_set = last_result_set
|
462
461
|
clear_changes_information
|
463
462
|
self.relationships.clear_changes_information
|
464
463
|
_clear_cached_relationships
|
@@ -477,7 +476,6 @@ module JsonApiClient
|
|
477
476
|
false
|
478
477
|
else
|
479
478
|
mark_as_destroyed!
|
480
|
-
self.relationships.last_result_set = nil
|
481
479
|
_clear_cached_relationships
|
482
480
|
_clear_belongs_to_params
|
483
481
|
true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Ching
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -199,7 +199,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '0'
|
201
201
|
requirements: []
|
202
|
-
|
202
|
+
rubyforge_project:
|
203
|
+
rubygems_version: 2.6.14
|
203
204
|
signing_key:
|
204
205
|
specification_version: 4
|
205
206
|
summary: Build client libraries compliant with specification defined by jsonapi.org
|