jsonapi_compliable 0.11.27 → 0.11.28

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: fd319c54a4ba9b170f855b7fa6096fba621d9899
4
- data.tar.gz: 3f114d62e1af153fb8b0a54075a4974673103e2c
3
+ metadata.gz: 663bc3d881ef5e2d4e9df5049f7d1869adf17ca1
4
+ data.tar.gz: d27c131078dc07d0c5acb4fe39ae6fcd45e4bdbb
5
5
  SHA512:
6
- metadata.gz: d1c1992697517db3a0fbf36595d501672bddb1f33b5355c29a480118db270f0591d9573202f0ec8104e3e5e2106877c9b271e11854b049a4af749aed33447082
7
- data.tar.gz: a79ab173ff26b5a5eb17cffc9b50da7ae2164012cc7bc96d0c4cacdb35638bdb5dd0a9ba16307b60bd3262bdb0a3f2dff7b130fc3be7c8982ea4632918635ffe
6
+ metadata.gz: 9632f59f934921ea26ef3d6759ffa21157cdc70d3ecd72995399c7c74c7ac5e13b28eba90d4724de81f81a49f73443440a8fcd1009946d85ba7e88b7fc9a726c
7
+ data.tar.gz: 43b3f8ceac5b3fdb7dafac79539b3c511767738b8f495e226231b3d2eff755e4be5ce93f05b0ebdd1b68b948812061971fb87b8fefef73e03dc3d8fb479ee44f
@@ -33,7 +33,8 @@ module JsonapiCompliable
33
33
  stats[name] = {}
34
34
 
35
35
  each_calculation(name, calculation) do |calc, function|
36
- stats[name][calc] = function.call(@scope, name)
36
+ args = function.arity == 3 ? [@scope, name, @resource] : [@scope, name]
37
+ stats[name][calc] = function.call(*args)
37
38
  end
38
39
  end
39
40
  end
@@ -1,3 +1,3 @@
1
1
  module JsonapiCompliable
2
- VERSION = "0.11.27"
2
+ VERSION = "0.11.28"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi_compliable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.27
4
+ version: 0.11.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Richmond
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-08-27 00:00:00.000000000 Z
12
+ date: 2018-08-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jsonapi-serializable