kaminari-api-meta-data 0.4.1 → 1.0.1

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
  SHA256:
3
- metadata.gz: 45ed62180c941da2f09e5df0443e23e21b7b68431b99c765d262b0a899f7d5c1
4
- data.tar.gz: dcc8c6bf30e51721e4c5c5ff29d971544eaf4f65db7eb649531a253436bd4d96
3
+ metadata.gz: cdb1a42cd412bf32a5ed3d5a8749300365cd2498ac130ffd5d9bfddcf4423ea0
4
+ data.tar.gz: 17d2d1d22beaf49453dc42eca5bdd41cc92d405b679637bf100ed7bf04920aab
5
5
  SHA512:
6
- metadata.gz: f9974207fe94fd580ec93ab89bf55014faeeeb75c17e9c3bb753c13fd4aa55765d40278eb2d3010f585bc99dc778d33d87d6de8faf12da6b684e8069392011de
7
- data.tar.gz: dc20ad54d02a6b42dd25b0998bdbfc953912fece07dcd637d0c67ad3e2a2f1bce619f79f882f43b9880b52dace4af5402917906034546610ebc9dfe8bddab066
6
+ metadata.gz: 02f2f36a87b4e34684a6f7a8867455630a99d14cdf7662407a6d53f6b51426132343224a4338abec6ae209c7f5c18ebad96dd1fd291a006bed38daa3094b01e7
7
+ data.tar.gz: d5f0f8c49799ef64b44bb052031ca0beb4f77c0f2c128cca22a67bcdf8eda9d99df1aeba06236648343c6b82c18b5306be6427b0e87f7f289a877e455d3c0e3f
@@ -1,21 +1,20 @@
1
- The MIT License (MIT)
1
+ Copyright (c) 2020 Boxt
2
2
 
3
- Copyright (c) 2017 Stuart Chinery
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
4
10
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
11
13
 
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -3,8 +3,7 @@
3
3
  A gem for adding [Kaminari](https://github.com/kaminari/kaminari) collection meta data to your API responses that matches the format that works with the Kaminari [`paginate`](https://github.com/kaminari/kaminari#the-paginate-helper-method) helper method.
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/kaminari-api-meta-data.svg)](https://badge.fury.io/rb/kaminari-api-meta-data)
6
- [![Build Status](https://travis-ci.org/boxt/kaminari-api-meta-data.svg?branch=master)](https://travis-ci.org/boxt/kaminari-api-meta-data)
7
-
6
+ [![CircleCI](https://circleci.com/gh/boxt/kaminari-api-meta-data.svg?style=svg)](https://circleci.com/gh/boxt/kaminari-api-meta-data)
8
7
 
9
8
  ## Installation
10
9
 
@@ -86,14 +85,14 @@ puts meta
86
85
 
87
86
  ## Contributing
88
87
 
89
- * Check out the latest master and/or develop branches to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
90
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
91
- * Fork the project
92
- * Start a feature/bugfix branch off of develop (using Git Flow approach)
93
- * Commit and push until you are happy with your contribution
94
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally
95
- * When you are done generate a pull request
96
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
88
+ - Check out the latest master and/or develop branches to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
89
+ - Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
90
+ - Fork the project
91
+ - Start a feature/bugfix branch off of develop (using Git Flow approach)
92
+ - Commit and push until you are happy with your contribution
93
+ - Make sure to add tests for it. This is important so I don't break it in a future version unintentionally
94
+ - When you are done generate a pull request
95
+ - Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
97
96
 
98
97
  ## License
99
98
 
data/Rakefile CHANGED
@@ -1,10 +1,11 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rake/testtask"
5
+ require "rspec/core/rake_task"
3
6
 
4
- Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList['test/**/*_test.rb']
7
+ RSpec::Core::RakeTask.new(:spec) do |t|
8
+ t.pattern = Dir.glob("spec/**/*_spec.rb")
8
9
  end
9
10
 
10
- task :default => :test
11
+ task test: :spec
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 1.0.1
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "kaminari_api_meta_data/version"
2
4
 
3
5
  module KaminariApiMetaData
@@ -1,3 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module KaminariApiMetaData
2
- VERSION = File.read("VERSION").split("\n").first
4
+ version_file = File.join(File.dirname(__FILE__), "../../VERSION")
5
+ VERSION = File.read(version_file).split("\n").first
3
6
  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.4.1
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BOXT Developers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-06 00:00:00.000000000 Z
11
+ date: 2020-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kaminari
@@ -24,76 +24,90 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: boxt_ruby_style_guide
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 7.2.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 7.2.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '2.0'
47
+ version: '2.1'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '2.0'
54
+ version: '2.1'
41
55
  - !ruby/object:Gem::Dependency
42
- name: minitest
56
+ name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
59
  - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '5.11'
61
+ version: '13.0'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
66
  - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '5.11'
68
+ version: '13.0'
55
69
  - !ruby/object:Gem::Dependency
56
- name: minitest-reporters
70
+ name: rspec
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: '1.3'
75
+ version: '3.9'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '1.3'
82
+ version: '3.9'
69
83
  - !ruby/object:Gem::Dependency
70
- name: mocha
84
+ name: rspec-nc
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '1.8'
89
+ version: '0.3'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '1.8'
96
+ version: '0.3'
83
97
  - !ruby/object:Gem::Dependency
84
- name: rake
98
+ name: simplecov
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: '12.3'
103
+ version: '0.17'
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - "~>"
95
109
  - !ruby/object:Gem::Version
96
- version: '12.3'
110
+ version: '0.17'
97
111
  description: A gem for adding Kaminari collection meta data to your API responses
98
112
  that matches the format that works with Kaminari paginate method.
99
113
  email:
@@ -112,7 +126,7 @@ homepage: https://github.com/boxt/kaminari-api-meta-data
112
126
  licenses:
113
127
  - MIT
114
128
  metadata: {}
115
- post_install_message:
129
+ post_install_message:
116
130
  rdoc_options: []
117
131
  require_paths:
118
132
  - lib
@@ -120,15 +134,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
134
  requirements:
121
135
  - - ">="
122
136
  - !ruby/object:Gem::Version
123
- version: '0'
137
+ version: '2.5'
124
138
  required_rubygems_version: !ruby/object:Gem::Requirement
125
139
  requirements:
126
140
  - - ">="
127
141
  - !ruby/object:Gem::Version
128
142
  version: '0'
129
143
  requirements: []
130
- rubygems_version: 3.0.3
131
- signing_key:
144
+ rubygems_version: 3.1.4
145
+ signing_key:
132
146
  specification_version: 4
133
147
  summary: A gem for adding Kaminari collection meta data to your API responses
134
148
  test_files: []