json_api_client 0.5.0 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eafc20bde2b50f635c58ba67bd72c3234d3cf098
4
- data.tar.gz: db4d71324f20cd39c03677afb1d089001ceac8cb
3
+ metadata.gz: c8e9a53aa57c72df6c4dc78894649007649a0324
4
+ data.tar.gz: 354fdef483cc69ca4b46d86604c4a8b3115c1e2b
5
5
  SHA512:
6
- metadata.gz: 0496018b36ad43f465f18f96b80d7361223cc70b0e3a0d956030ed19b756b9e72be62b7f85b7c98f7faea442d35f37ccf24664134d0b8338c50e016d1330cddf
7
- data.tar.gz: ba8475927ba6c4f2af4b96aa84c5a4674e40b2c3a03255e471205d435a74b3dc0929f39d71d4573aee1821650a7cfd6faaea86c7c04dd473bf7f4a6740b3c948
6
+ metadata.gz: 8bf7d6c2a780c673c66f9b976a5005a511d97b07388285713c0f22aca574166d9e21674b556bb3cc92208938cd6d6c54dd3ee5746ad061ee92b406cf62a62978
7
+ data.tar.gz: b6bfb230fbb8f55562edd4f4c66acf4443c4539e4f1c4802e180ba519a5df91dca8d59125629a68ad4d0469a8745453bb08e2874a72911f9bfa5f79d037ce407
@@ -77,6 +77,10 @@ module JsonApiClient
77
77
  attributes.has_key?(attr_name)
78
78
  end
79
79
 
80
+ def ==(other)
81
+ self.class == other.class && attributes == other.attributes
82
+ end
83
+
80
84
  end
81
85
  end
82
86
  end
@@ -4,6 +4,7 @@ module JsonApiClient
4
4
  self.request_method = :put
5
5
 
6
6
  def build_params(args)
7
+ args = args.dup
7
8
  @params = {klass.primary_key => args.delete(klass.primary_key), klass.resource_name => args}
8
9
  end
9
10
 
@@ -1,3 +1,3 @@
1
1
  module JsonApiClient
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Ching