jsonapionify 0.12.4 → 0.12.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTNiZDQwMzc2MWI0NGI3MmQyYzFjYzI5YWZkMmZmZmRkOGZlNDIyOQ==
4
+ NGY2OTE5ZTU3YzNiYzVhNDNmZWFjZjBjNGE3NWVkMTUxNGE4ZjllNg==
5
5
  data.tar.gz: !binary |-
6
- MDMzNjk2OGFiZTJhZjM5NDNiNjcwMGIxY2NiZWUwMWViOGMwNjUzOQ==
6
+ NWEyMmQ0NjMxZjM0NWY4Y2U0NjRkNGVlZjQ2ZGMzOThlOTA3M2E1YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmNhZGM4NmExYTBiODJiOGZmYTdiNGRkODViMTNhOGIzNWE0MTc2OWE3M2Zk
10
- OTZlZjg2MjMxMjUwZTNiMjI1OTRiMTMzZDZhOTE1Mzc5YWM0MGVjMWFmOTZl
11
- NGFlYzRkN2RmOGI0YTY5M2RkN2I4YjlmNjJmZmMwZDFiZjU0NmE=
9
+ MWVhOWY4NjY3OWM2NzhmOGNhOGJhYTEwZTU5YjU4ZDI2ODk2M2UwOWQ2MDM1
10
+ ZDIwMWVlNmQ1MjMzOWZiZmRmNTNjYWM4NmU0YTI3NmVlM2ZlMTE5ODFiNjRm
11
+ OTQ1YTQ5YmE1MTg2NGRmMDUxMTk4ZTdiZDZkYjVlMzBiN2Y4YzQ=
12
12
  data.tar.gz: !binary |-
13
- MDkxZWQ1MDkyMjRmODllMzhlOTY5MzA0YmQxODUzMTk4MjNlYWU1YjZkMGU1
14
- ZTU5MzE1NGYxN2NhOTRkMjEzYzk5MjQ5ZjJkNDE3YThjOWEyYTBlYzk2Mzkz
15
- YTY2MTcxMWViYTJiZWY0ODgwMjZhZjIyMWZmZTc4YTA1YjVkZDk=
13
+ NzNhNmI0Zjc5NjZlZGY0N2YyZmMxNmRiYTRkZTk2N2Y3YTk2M2RhODRjYTFm
14
+ ZjlmMjI5YWRhYmUwOWFjZGQ1YzIwNDBlNDRmMzU0YjNhM2M0MmZkOGEwZjEw
15
+ ZTAzNjk5YmYwY2I0MjgwNTIyYjQ4MzU5MTZhZjRiN2E1YzE4MzI=
@@ -49,6 +49,8 @@ module JSONAPIonify::Api
49
49
  collection.first(size)
50
50
  end
51
51
 
52
+ context.meta[:total_count] = collection.count
53
+
52
54
  links.first first: size
53
55
  links.last last: size
54
56
  links.prev before: build_cursor(context: context, instance: slice.first), last: size unless !slice.first || slice.first == collection.first
@@ -80,6 +82,8 @@ module JSONAPIonify::Api
80
82
  collection.limit(size)
81
83
  end
82
84
 
85
+ context.meta[:total_count] = collection.count
86
+
83
87
  links.first first: size
84
88
  links.last last: size
85
89
  links.prev before: build_cursor(context: context, instance: slice.first), last: size unless !slice.first || slice.first == collection.first
@@ -1,3 +1,3 @@
1
1
  module JSONAPIonify
2
- VERSION = "0.12.4"
2
+ VERSION = "0.12.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapionify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.4
4
+ version: 0.12.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Waldrip
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-20 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport