graphql-pagination 0.2.2 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dependabot/config.yml +11 -0
- data/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
- data/.github/ISSUE_TEMPLATE/config.yml +1 -0
- data/.github/ISSUE_TEMPLATE/story.md +22 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +18 -0
- data/.github/workflows/auto-approve.yml +16 -0
- data/.gitignore +3 -0
- data/.travis.yml +6 -4
- data/Gemfile.lock +58 -47
- data/README.md +36 -15
- data/Rakefile +3 -1
- data/graphql-pagination.gemspec +13 -9
- data/lib/graphql_pagination.rb +0 -1
- data/lib/graphql_pagination/collection_metadata_type.rb +3 -3
- data/lib/graphql_pagination/collection_type.rb +2 -2
- data/lib/graphql_pagination/version.rb +1 -1
- metadata +43 -15
- data/.hound.yml +0 -4
- data/.rubocop.yml +0 -62
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/bin/console +0 -8
- data/bin/setup +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7ce3ca921537d2ba59ab369f8b13ef3589c795a071f229f26638de2b8c2e0e9
|
4
|
+
data.tar.gz: 5251b02d2ded1d15fcc83decdcc66a01f653145037306a4d8f1d797a8774cf7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2a37bdf12b318733d60f7fc3c55cfd7ba41891fb9ecda2e0eadb8c1d639b9d43182967f03bb357bf787499f4e0d534e58e2907e4800a7dc7fda72de2f10413f
|
7
|
+
data.tar.gz: 859d828658d4e02f4680762157280b0a9925557e9b862048a3dd06d8060a42fa5fbca380b180a35b65b08a8fd4fafe11b8f2b5772a464100ab9c7fd65faed65a
|
@@ -0,0 +1,33 @@
|
|
1
|
+
---
|
2
|
+
name: Bug report
|
3
|
+
about: Create a report to track an issue that has been identified
|
4
|
+
title: ''
|
5
|
+
labels: ''
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Describe the bug**
|
11
|
+
A clear and concise description of what the bug is.
|
12
|
+
|
13
|
+
**To Reproduce**
|
14
|
+
Steps to reproduce the behavior:
|
15
|
+
1. Go to '...'
|
16
|
+
2. Click on '....'
|
17
|
+
3. Scroll down to '....'
|
18
|
+
4. See error
|
19
|
+
|
20
|
+
**Expected behavior**
|
21
|
+
A clear and concise description of what you expected to happen.
|
22
|
+
|
23
|
+
**Mutation/Query**
|
24
|
+
|
25
|
+
**URL and HTTP method (for non-GQL):**
|
26
|
+
|
27
|
+
**Sentry or Logs URL:**
|
28
|
+
|
29
|
+
**User/authentication details**
|
30
|
+
Impacted user name or service account
|
31
|
+
|
32
|
+
**Additional context**
|
33
|
+
Add any other context about the problem here.
|
@@ -0,0 +1 @@
|
|
1
|
+
blank_issues_enabled: false
|
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
name: New story
|
3
|
+
about: Add a new story for implementation
|
4
|
+
title: ''
|
5
|
+
labels: ''
|
6
|
+
assignees: ''
|
7
|
+
|
8
|
+
---
|
9
|
+
|
10
|
+
**Describe the solution**
|
11
|
+
A clear and concise description of what you want to happen.
|
12
|
+
When will this feature be done?
|
13
|
+
|
14
|
+
**Describe the users**
|
15
|
+
Who are we building this feature for?
|
16
|
+
|
17
|
+
**Additional context**
|
18
|
+
Add any other context or screenshots about the feature request here.
|
19
|
+
Link to any applicable documents describing the feature.
|
20
|
+
|
21
|
+
**Designs**
|
22
|
+
Link to any applicable designs on Invision.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
## Description
|
2
|
+
<!--- Describe your changes in detail -->
|
3
|
+
|
4
|
+
## Related issue(s)
|
5
|
+
<!--- GH issue number -->
|
6
|
+
|
7
|
+
## Motivation and Context
|
8
|
+
<!--- Why is this change required? What problem does it solve? -->
|
9
|
+
<!--- If it fixes an open issue, please link to the issue here. -->
|
10
|
+
|
11
|
+
## How Has This Been Tested?
|
12
|
+
<!--- Please describe in detail how you tested your changes. -->
|
13
|
+
|
14
|
+
## Screenshots (if appropriate):
|
15
|
+
<!--- Please add any screenshots of the feature. -->
|
16
|
+
|
17
|
+
## Related PRs
|
18
|
+
<!--- Please add links to any related PRs (backend, component packages, etc). -->
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# automatically approve PRs submitted by Dependabot
|
2
|
+
# this will allow Dependabot to automatically merge dependency update PRs where CI passes
|
3
|
+
# from: https://github.com/hmarr/auto-approve-action
|
4
|
+
name: Auto approve Dependabot PRs
|
5
|
+
|
6
|
+
on:
|
7
|
+
pull_request
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
auto-approve:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- uses: hmarr/auto-approve-action@v2.0.0
|
14
|
+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
|
15
|
+
with:
|
16
|
+
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,71 +1,80 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
graphql-pagination (
|
5
|
-
graphql (~> 1.9
|
4
|
+
graphql-pagination (1.1.2)
|
5
|
+
graphql (~> 1.9)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (
|
11
|
-
activesupport (=
|
12
|
-
activerecord (
|
13
|
-
activemodel (=
|
14
|
-
activesupport (=
|
15
|
-
|
16
|
-
activesupport (5.2.3)
|
10
|
+
activemodel (6.0.3.2)
|
11
|
+
activesupport (= 6.0.3.2)
|
12
|
+
activerecord (6.0.3.2)
|
13
|
+
activemodel (= 6.0.3.2)
|
14
|
+
activesupport (= 6.0.3.2)
|
15
|
+
activesupport (6.0.3.2)
|
17
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
17
|
i18n (>= 0.7, < 2)
|
19
18
|
minitest (~> 5.1)
|
20
19
|
tzinfo (~> 1.1)
|
21
|
-
|
22
|
-
ast (2.4.
|
23
|
-
coderay (1.1.
|
24
|
-
concurrent-ruby (1.1.
|
25
|
-
diff-lcs (1.
|
26
|
-
graphql (1.
|
27
|
-
i18n (1.
|
20
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
21
|
+
ast (2.4.1)
|
22
|
+
coderay (1.1.3)
|
23
|
+
concurrent-ruby (1.1.7)
|
24
|
+
diff-lcs (1.4.4)
|
25
|
+
graphql (1.11.4)
|
26
|
+
i18n (1.8.5)
|
28
27
|
concurrent-ruby (~> 1.0)
|
29
|
-
|
30
|
-
kaminari-activerecord (1.1.1)
|
28
|
+
kaminari-activerecord (1.2.1)
|
31
29
|
activerecord
|
32
|
-
kaminari-core (= 1.
|
33
|
-
kaminari-core (1.
|
34
|
-
method_source (0.
|
35
|
-
minitest (5.
|
36
|
-
parallel (1.
|
37
|
-
parser (2.
|
38
|
-
ast (~> 2.4.
|
39
|
-
pry (0.
|
40
|
-
coderay (~> 1.1
|
41
|
-
method_source (~>
|
30
|
+
kaminari-core (= 1.2.1)
|
31
|
+
kaminari-core (1.2.1)
|
32
|
+
method_source (1.0.0)
|
33
|
+
minitest (5.14.2)
|
34
|
+
parallel (1.19.2)
|
35
|
+
parser (2.7.1.4)
|
36
|
+
ast (~> 2.4.1)
|
37
|
+
pry (0.13.1)
|
38
|
+
coderay (~> 1.1)
|
39
|
+
method_source (~> 1.0)
|
42
40
|
rainbow (3.0.0)
|
43
|
-
rake (
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
rspec-
|
48
|
-
|
49
|
-
rspec-
|
50
|
-
rspec-
|
41
|
+
rake (13.0.1)
|
42
|
+
regexp_parser (1.7.1)
|
43
|
+
rexml (3.2.4)
|
44
|
+
rspec (3.9.0)
|
45
|
+
rspec-core (~> 3.9.0)
|
46
|
+
rspec-expectations (~> 3.9.0)
|
47
|
+
rspec-mocks (~> 3.9.0)
|
48
|
+
rspec-core (3.9.2)
|
49
|
+
rspec-support (~> 3.9.3)
|
50
|
+
rspec-expectations (3.9.2)
|
51
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
|
-
rspec-support (~> 3.
|
53
|
-
rspec-mocks (3.
|
52
|
+
rspec-support (~> 3.9.0)
|
53
|
+
rspec-mocks (3.9.1)
|
54
54
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
-
rspec-support (~> 3.
|
56
|
-
rspec-support (3.
|
57
|
-
rubocop (0.
|
58
|
-
jaro_winkler (~> 1.5.1)
|
55
|
+
rspec-support (~> 3.9.0)
|
56
|
+
rspec-support (3.9.3)
|
57
|
+
rubocop (0.90.0)
|
59
58
|
parallel (~> 1.10)
|
60
|
-
parser (>= 2.
|
59
|
+
parser (>= 2.7.1.1)
|
61
60
|
rainbow (>= 2.2.2, < 4.0)
|
61
|
+
regexp_parser (>= 1.7)
|
62
|
+
rexml
|
63
|
+
rubocop-ast (>= 0.3.0, < 1.0)
|
62
64
|
ruby-progressbar (~> 1.7)
|
63
|
-
unicode-display_width (>= 1.4.0, <
|
65
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
66
|
+
rubocop-ast (0.3.0)
|
67
|
+
parser (>= 2.7.1.4)
|
68
|
+
rubocop-performance (1.7.1)
|
69
|
+
rubocop (>= 0.82.0)
|
70
|
+
rubocop-rspec (1.43.2)
|
71
|
+
rubocop (~> 0.87)
|
64
72
|
ruby-progressbar (1.10.1)
|
65
73
|
thread_safe (0.3.6)
|
66
|
-
tzinfo (1.2.
|
74
|
+
tzinfo (1.2.7)
|
67
75
|
thread_safe (~> 0.1)
|
68
|
-
unicode-display_width (1.
|
76
|
+
unicode-display_width (1.7.0)
|
77
|
+
zeitwerk (2.4.0)
|
69
78
|
|
70
79
|
PLATFORMS
|
71
80
|
ruby
|
@@ -78,6 +87,8 @@ DEPENDENCIES
|
|
78
87
|
rake
|
79
88
|
rspec
|
80
89
|
rubocop
|
90
|
+
rubocop-performance
|
91
|
+
rubocop-rspec
|
81
92
|
|
82
93
|
BUNDLED WITH
|
83
|
-
2.
|
94
|
+
2.1.4
|
data/README.md
CHANGED
@@ -29,10 +29,9 @@ Add `graphql-pagination` to your Gemfile, you can use `kaminari-activerecord` or
|
|
29
29
|
|
30
30
|
Value returned by query resolver must be a kaminari object or implements its page scope methods (`current_page`, `limit_value`, `total_count`, `total_pages`).
|
31
31
|
|
32
|
-
|
33
32
|
## GraphQL query
|
34
33
|
|
35
|
-
```
|
34
|
+
```graphql
|
36
35
|
{
|
37
36
|
fruits(page: 2, limit: 2) {
|
38
37
|
collection {
|
@@ -51,29 +50,52 @@ Value returned by query resolver must be a kaminari object or implements its pag
|
|
51
50
|
|
52
51
|
```json
|
53
52
|
{
|
54
|
-
|
55
|
-
|
56
|
-
|
53
|
+
"data": {
|
54
|
+
"checklists": {
|
55
|
+
"collection": [
|
57
56
|
{
|
58
|
-
|
59
|
-
|
57
|
+
"id": "93938bb3-7a6c-4d35-9961-cbb2d4c9e9ac",
|
58
|
+
"name": "Apple"
|
60
59
|
},
|
61
60
|
{
|
62
|
-
|
63
|
-
|
61
|
+
"id": "b1ee93b2-579a-4107-8454-119bba5afb63",
|
62
|
+
"name": "Mango"
|
64
63
|
}
|
65
64
|
],
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
65
|
+
"metadata": {
|
66
|
+
"totalPages": 25,
|
67
|
+
"totalCount": 50,
|
68
|
+
"currentPage": 2,
|
69
|
+
"limitValue": 2
|
71
70
|
}
|
72
71
|
}
|
73
72
|
}
|
74
73
|
}
|
75
74
|
```
|
76
75
|
|
76
|
+
## Custom Metadata
|
77
|
+
|
78
|
+
By default, the following fields are present in the metadata block:
|
79
|
+
|
80
|
+
```graphql
|
81
|
+
metadata {
|
82
|
+
totalPages
|
83
|
+
totalCount
|
84
|
+
currentPage
|
85
|
+
limitValue
|
86
|
+
}
|
87
|
+
```
|
88
|
+
|
89
|
+
These fields correspond to the `GraphqlPagination::CollectionMetadataType` used to provide the pagination information for the collection of data delivered. If you want to add more metadata fields to this block, you can do so by extending this `CollectionMetadataType`:
|
90
|
+
|
91
|
+
```ruby
|
92
|
+
class MyMetadataType < GraphqlPagination::CollectionMetadataType
|
93
|
+
field :custom_field, String, null: false
|
94
|
+
end
|
95
|
+
|
96
|
+
field :fruits, Types::FruitType.collection_type(metadata_type: MyMetadataType)
|
97
|
+
```
|
98
|
+
|
77
99
|
## Contributing
|
78
100
|
|
79
101
|
Bug reports and pull requests are welcome on GitHub at https://github.com/renofi/graphql-pagination. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
@@ -81,4 +103,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/renofi
|
|
81
103
|
## License
|
82
104
|
|
83
105
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
84
|
-
|
data/Rakefile
CHANGED
data/graphql-pagination.gemspec
CHANGED
@@ -3,27 +3,29 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
require 'graphql_pagination/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name
|
6
|
+
spec.name = 'graphql-pagination'
|
7
7
|
spec.version = GraphqlPagination::VERSION
|
8
8
|
spec.authors = ['Krzysztof Knapik', 'RenoFi Engineering Team']
|
9
|
-
spec.email
|
9
|
+
spec.email = ['knapo@knapo.net', 'engineering@renofi.com']
|
10
10
|
|
11
|
-
spec.summary
|
11
|
+
spec.summary = 'Page-based kaminari pagination for graphql.'
|
12
12
|
spec.description = 'Page-based kaminari pagination for graphql returning collection and pagination metadata.'
|
13
|
-
spec.homepage
|
14
|
-
spec.license
|
13
|
+
spec.homepage = 'https://github.com/RenoFi/graphql-pagination'
|
14
|
+
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/graphql-pagination'
|
17
17
|
spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/graphql-pagination'
|
18
18
|
|
19
19
|
spec.files = Dir.chdir(__dir__) do
|
20
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
21
21
|
end
|
22
|
-
spec.bindir
|
23
|
-
spec.executables
|
22
|
+
spec.bindir = 'exe'
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.
|
26
|
+
spec.required_ruby_version = '>= 2.6'
|
27
|
+
|
28
|
+
spec.add_dependency 'graphql', '~> 1.9'
|
27
29
|
|
28
30
|
spec.add_development_dependency 'kaminari-activerecord'
|
29
31
|
spec.add_development_dependency 'kaminari-core'
|
@@ -31,4 +33,6 @@ Gem::Specification.new do |spec|
|
|
31
33
|
spec.add_development_dependency 'rake'
|
32
34
|
spec.add_development_dependency 'rspec'
|
33
35
|
spec.add_development_dependency 'rubocop'
|
36
|
+
spec.add_development_dependency 'rubocop-performance'
|
37
|
+
spec.add_development_dependency 'rubocop-rspec'
|
34
38
|
end
|
data/lib/graphql_pagination.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module GraphqlPagination
|
2
2
|
class CollectionMetadataType < GraphQL::Schema::Object
|
3
3
|
field :current_page, Integer, null: false
|
4
|
-
field :limit_value,
|
5
|
-
field :total_count,
|
6
|
-
field :total_pages,
|
4
|
+
field :limit_value, Integer, null: false
|
5
|
+
field :total_count, Integer, null: false
|
6
|
+
field :total_pages, Integer, null: false
|
7
7
|
end
|
8
8
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module GraphqlPagination
|
2
2
|
module CollectionType
|
3
|
-
def collection_type
|
3
|
+
def collection_type(metadata_type: GraphqlPagination::CollectionMetadataType)
|
4
4
|
@collection_type ||= begin
|
5
5
|
type_name = "#{graphql_name}Collection"
|
6
6
|
source_type = self
|
@@ -8,7 +8,7 @@ module GraphqlPagination
|
|
8
8
|
Class.new(GraphQL::Schema::Object) do
|
9
9
|
graphql_name type_name
|
10
10
|
field :collection, [source_type], null: false
|
11
|
-
field :metadata,
|
11
|
+
field :metadata, metadata_type, null: false
|
12
12
|
|
13
13
|
def collection
|
14
14
|
object
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-pagination
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
8
8
|
- RenoFi Engineering Team
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphql
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.9
|
20
|
+
version: '1.9'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.9
|
27
|
+
version: '1.9'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: kaminari-activerecord
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,6 +109,34 @@ dependencies:
|
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: rubocop-performance
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rubocop-rspec
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
112
140
|
description: Page-based kaminari pagination for graphql returning collection and pagination
|
113
141
|
metadata.
|
114
142
|
email:
|
@@ -118,20 +146,20 @@ executables: []
|
|
118
146
|
extensions: []
|
119
147
|
extra_rdoc_files: []
|
120
148
|
files:
|
149
|
+
- ".dependabot/config.yml"
|
150
|
+
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
151
|
+
- ".github/ISSUE_TEMPLATE/config.yml"
|
152
|
+
- ".github/ISSUE_TEMPLATE/story.md"
|
153
|
+
- ".github/PULL_REQUEST_TEMPLATE.md"
|
154
|
+
- ".github/workflows/auto-approve.yml"
|
121
155
|
- ".gitignore"
|
122
|
-
- ".hound.yml"
|
123
156
|
- ".rspec"
|
124
|
-
- ".rubocop.yml"
|
125
|
-
- ".ruby-gemset"
|
126
|
-
- ".ruby-version"
|
127
157
|
- ".travis.yml"
|
128
158
|
- Gemfile
|
129
159
|
- Gemfile.lock
|
130
160
|
- LICENSE
|
131
161
|
- README.md
|
132
162
|
- Rakefile
|
133
|
-
- bin/console
|
134
|
-
- bin/setup
|
135
163
|
- graphql-pagination.gemspec
|
136
164
|
- lib/graphql-pagination.rb
|
137
165
|
- lib/graphql_pagination.rb
|
@@ -144,7 +172,7 @@ licenses:
|
|
144
172
|
metadata:
|
145
173
|
homepage_uri: https://github.com/RenoFi/graphql-pagination
|
146
174
|
source_code_uri: https://github.com/RenoFi/graphql-pagination
|
147
|
-
post_install_message:
|
175
|
+
post_install_message:
|
148
176
|
rdoc_options: []
|
149
177
|
require_paths:
|
150
178
|
- lib
|
@@ -152,15 +180,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
152
180
|
requirements:
|
153
181
|
- - ">="
|
154
182
|
- !ruby/object:Gem::Version
|
155
|
-
version: '
|
183
|
+
version: '2.6'
|
156
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
185
|
requirements:
|
158
186
|
- - ">="
|
159
187
|
- !ruby/object:Gem::Version
|
160
188
|
version: '0'
|
161
189
|
requirements: []
|
162
|
-
rubygems_version: 3.
|
163
|
-
signing_key:
|
190
|
+
rubygems_version: 3.1.2
|
191
|
+
signing_key:
|
164
192
|
specification_version: 4
|
165
193
|
summary: Page-based kaminari pagination for graphql.
|
166
194
|
test_files: []
|
data/.hound.yml
DELETED
data/.rubocop.yml
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
Gemspec/RequiredRubyVersion:
|
2
|
-
Include:
|
3
|
-
- 2.4
|
4
|
-
- 2.5
|
5
|
-
- 2.6
|
6
|
-
|
7
|
-
Lint/UnusedBlockArgument:
|
8
|
-
Enabled: false
|
9
|
-
|
10
|
-
Layout/AlignHash:
|
11
|
-
Enabled: false
|
12
|
-
|
13
|
-
Naming/FileName:
|
14
|
-
Enabled: false
|
15
|
-
|
16
|
-
Metrics/BlockLength:
|
17
|
-
Max: 30
|
18
|
-
Exclude:
|
19
|
-
- '**/*_spec.rb'
|
20
|
-
|
21
|
-
Metrics/LineLength:
|
22
|
-
Max: 140
|
23
|
-
|
24
|
-
Metrics/MethodLength:
|
25
|
-
Max: 20
|
26
|
-
|
27
|
-
Security/YAMLLoad:
|
28
|
-
Enabled: false
|
29
|
-
|
30
|
-
Style/BlockDelimiters:
|
31
|
-
EnforcedStyle: braces_for_chaining
|
32
|
-
|
33
|
-
Style/Documentation:
|
34
|
-
Enabled: false
|
35
|
-
|
36
|
-
Style/GuardClause:
|
37
|
-
Enabled: false
|
38
|
-
|
39
|
-
Style/EachWithObject:
|
40
|
-
Enabled: false
|
41
|
-
|
42
|
-
Style/MethodMissingSuper:
|
43
|
-
Enabled: false
|
44
|
-
|
45
|
-
Style/MissingRespondToMissing:
|
46
|
-
Enabled: false
|
47
|
-
|
48
|
-
Style/FrozenStringLiteralComment:
|
49
|
-
Enabled: false
|
50
|
-
|
51
|
-
Style/PercentLiteralDelimiters:
|
52
|
-
Enabled: false
|
53
|
-
|
54
|
-
Style/RescueStandardError:
|
55
|
-
Exclude:
|
56
|
-
- 'spec/*.rb'
|
57
|
-
|
58
|
-
Style/SymbolArray:
|
59
|
-
EnforcedStyle: brackets
|
60
|
-
|
61
|
-
Style/TrivialAccessors:
|
62
|
-
Enabled: false
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
graphql-pagination
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.6.3
|
data/bin/console
DELETED