kaminari-api-meta-data 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/VERSION +1 -1
- data/lib/kaminari_api_meta_data.rb +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80c1c5db83f05bb9f8d7888b3ac435b97aa541c2
|
4
|
+
data.tar.gz: 5d51f681eb1a6a838f1009e59779645488310593
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a4e897fb3d5adf666f762f347fc2ee0d5fdee215892a146b74cd42c5e583de2ffe83b5a1b042be3dfe395335ecf56c2bbdcc5a0fa5f87664cfc6719bc41089b
|
7
|
+
data.tar.gz: ac57abb58751eeaba2161d4551ef9fe51b3f5409ab2ea853fc30a44a1f30f680aa5b9d71251eb65238d4d0af90bba51b157b0022584c0acd2dc8750be383095b
|
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require "kaminari_api_meta_data/version"
|
2
2
|
|
3
3
|
module KaminariApiMetaData
|
4
|
-
|
5
4
|
def meta_data(collection, extra_meta = {})
|
6
5
|
{
|
7
6
|
current_page: collection.current_page,
|
@@ -12,5 +11,4 @@ module KaminariApiMetaData
|
|
12
11
|
total_count: collection.total_count
|
13
12
|
}.merge(extra_meta)
|
14
13
|
end
|
15
|
-
|
16
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaminari-api-meta-data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Chinery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kaminari
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.6.
|
131
|
+
rubygems_version: 2.6.13
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: A gem for adding Kaminari collection meta data to your API responses
|