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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '04785380e5822fada2e468db953ce5d323c11dc9'
4
- data.tar.gz: f0899daee101bc35f1cee067f412a2ee8c3e6794
3
+ metadata.gz: 80c1c5db83f05bb9f8d7888b3ac435b97aa541c2
4
+ data.tar.gz: 5d51f681eb1a6a838f1009e59779645488310593
5
5
  SHA512:
6
- metadata.gz: fe407f8449d0aab7e82cba2eba4ea8a714ccb4233fb8ea1819ae01aa35afc2a65e962d5a2976514fbcf951aea3ad3075d57d2ed44047d2375996bfb66f222954
7
- data.tar.gz: 1fa636c9be439c920ba76f3ee8054aa2d208f82eaef164a34ba4fa83db103e583cc02de6ae8cf664b08b695f85795cdf87f1d7d9336bb90052668f11c0339f48
6
+ metadata.gz: 4a4e897fb3d5adf666f762f347fc2ee0d5fdee215892a146b74cd42c5e583de2ffe83b5a1b042be3dfe395335ecf56c2bbdcc5a0fa5f87664cfc6719bc41089b
7
+ data.tar.gz: ac57abb58751eeaba2161d4551ef9fe51b3f5409ab2ea853fc30a44a1f30f680aa5b9d71251eb65238d4d0af90bba51b157b0022584c0acd2dc8750be383095b
data/README.md CHANGED
@@ -34,7 +34,6 @@ Add the include to your class, in this example using the `ApplicationController`
34
34
 
35
35
  ```ruby
36
36
  class ApplicationController < ActionController::API
37
-
38
37
  include ::KaminariApiMetaData
39
38
 
40
39
  # ...
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
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.3
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: 2017-07-12 00:00:00.000000000 Z
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.8
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