json_api_resource_connecitons 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a43f75ad9e6aefce97807f49f21b05a062cb0c91
4
- data.tar.gz: 74d822cdeab78ccfad60080c5f8031b56b7f863c
3
+ metadata.gz: b2f8b1bb50a8efcd6b1e9c5af4b8f5bcc1df41d5
4
+ data.tar.gz: d211a1c9b636a87b6ea6acbd589288655f34ea6e
5
5
  SHA512:
6
- metadata.gz: 84b7985d8fa305924e75f07a9bc86b0a3097f6d990de23945d53089aba576a4e992b8b8f87839eedd4aca8995c813af82f3e59174b987c08de38e460fcfc76b9
7
- data.tar.gz: dcc59dc372a0383eb4e68d5909c695d674fef7b9b2c05b6bd4af107ef50cdb5006ed62eb693aa22f6433542b97e32f7c1057cb0e34b874516578c472c8302502
6
+ metadata.gz: 6a4bb213cbab9567a9bee64ca2d9a0b7d4d22173b9055a385a0ef5c4e89bb2bd7843878591cad1aa792757c9f5425432c3cbca41143a5f66338d720560079dbf
7
+ data.tar.gz: b1e724555479e29540cc96ec1066f9547a74f2556c49c36a5545755343869379ede601e0852abc0e259a16df6d782ae19eb2ac5bce136a943ad9321d1fbedf77
@@ -54,8 +54,8 @@ module JsonApiResource
54
54
  # class | instance
55
55
  class_string = client.is_a?(Class) ? client.to_s : client.class.to_s
56
56
  class_string = class_string.underscore
57
- args = args.present? ? ordered_args(*args) : nil
58
- "#{class_string}/#{action}/#{args}"
57
+ formatted_args = args.present? ? ordered_args(*args) : nil
58
+ "#{class_string}/#{action}/#{formatted_args}"
59
59
  end
60
60
 
61
61
  def item_cache_key(client, action, id)
@@ -21,8 +21,9 @@ module JsonApiResource
21
21
 
22
22
  def request( action, *args )
23
23
  if ready_for_request?
24
-
25
- result = client_request(action, *args)
24
+
25
+ client_args = args.deep_dup
26
+ result = client_request(action, *client_args)
26
27
 
27
28
  cache_processor.write(result, client, action, *args) if cache?
28
29
 
@@ -1,3 +1,3 @@
1
1
  module JsonApiResourceConnecitons
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_resource_connecitons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg