json_api_client 1.13.0 → 1.14.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
- SHA256:
3
- metadata.gz: cf7116009e3f1ebb219cd068a038a984d20561b2e5987f7e913f08cf48d78f35
4
- data.tar.gz: 2218b88e39fdaf36324917037f0ed9f6057ef7675436b6e20625cf29c527766f
2
+ SHA1:
3
+ metadata.gz: 773e22610a90abf268c451e50ada8927f36b4f2f
4
+ data.tar.gz: c4368d2ba6de322219b0bba049c8f0bfff6b1344
5
5
  SHA512:
6
- metadata.gz: 85d9257d737ac385d2aece0abb97c459312f34588bfa55022cef4e9964959ab9b51fc16126912fbb0dce661a3cdd68bf92212b4ebb1f2562f1942ab392608076
7
- data.tar.gz: 26ef5c579c30b8248a3f981cb3e107dd567fb5aa17238781572b176ea6fefbdecf1d39a52dee303dd41999f585eed22e2c7ee9762321ddcf9ef5c9ee3a000d5e
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
@@ -1,3 +1,3 @@
1
1
  module JsonApiClient
2
- VERSION = "1.13.0"
2
+ VERSION = "1.14.0"
3
3
  end
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.13.0
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-06-28 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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