graphql-pagination 0.2.2 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5126cd4efa227e900819533d8174c3f5f79796155c89400aefd6fa4a62b097bf
4
- data.tar.gz: a9161702e52430cc5486245c647dfe82c4c741372557e5709d06a93783f7e2ce
3
+ metadata.gz: d7ce3ca921537d2ba59ab369f8b13ef3589c795a071f229f26638de2b8c2e0e9
4
+ data.tar.gz: 5251b02d2ded1d15fcc83decdcc66a01f653145037306a4d8f1d797a8774cf7b
5
5
  SHA512:
6
- metadata.gz: 76d3e6b848b1ce9a3072812c692b6e9c395c0b80c0c6d60a853c4721f976a07b83f9d9b0204de9056926b13e8b114b8164a869d9555636b61d971f5f9f1d9403
7
- data.tar.gz: 5b789bad2cea40103da4fe25a9cd7ab24caf6d73e3ebd6167e52aba5f78c9f725fa067b2fea089ff0e02084cc01af1d2b20bbb87ce22438e121ee62998e10d73
6
+ metadata.gz: d2a37bdf12b318733d60f7fc3c55cfd7ba41891fb9ecda2e0eadb8c1d639b9d43182967f03bb357bf787499f4e0d534e58e2907e4800a7dc7fda72de2f10413f
7
+ data.tar.gz: 859d828658d4e02f4680762157280b0a9925557e9b862048a3dd06d8060a42fa5fbca380b180a35b65b08a8fd4fafe11b8f2b5772a464100ab9c7fd65faed65a
@@ -0,0 +1,11 @@
1
+ version: 1
2
+
3
+ update_configs:
4
+ - package_manager: "ruby:bundler"
5
+ directory: "/"
6
+ update_schedule: "monthly"
7
+ commit_message:
8
+ prefix: "[dependabot]"
9
+ allowed_updates:
10
+ - match:
11
+ update_type: "all"
@@ -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
@@ -9,3 +9,6 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+
13
+ # Cached rubocop config files
14
+ .rubocop-http*
@@ -3,7 +3,9 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.4.6
7
- - 2.5.5
8
- - 2.6.3
9
- before_install: gem install bundler -v 2.0.1
6
+ - 2.6
7
+ - 2.7
8
+ before_install: gem install bundler
9
+ script:
10
+ - bundle exec rake spec
11
+ - bundle exec rake rubocop
@@ -1,71 +1,80 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql-pagination (0.2.2)
5
- graphql (~> 1.9.4)
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 (5.2.3)
11
- activesupport (= 5.2.3)
12
- activerecord (5.2.3)
13
- activemodel (= 5.2.3)
14
- activesupport (= 5.2.3)
15
- arel (>= 9.0)
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
- arel (9.0.0)
22
- ast (2.4.0)
23
- coderay (1.1.2)
24
- concurrent-ruby (1.1.5)
25
- diff-lcs (1.3)
26
- graphql (1.9.6)
27
- i18n (1.6.0)
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
- jaro_winkler (1.5.2)
30
- kaminari-activerecord (1.1.1)
28
+ kaminari-activerecord (1.2.1)
31
29
  activerecord
32
- kaminari-core (= 1.1.1)
33
- kaminari-core (1.1.1)
34
- method_source (0.9.2)
35
- minitest (5.11.3)
36
- parallel (1.17.0)
37
- parser (2.6.3.0)
38
- ast (~> 2.4.0)
39
- pry (0.12.2)
40
- coderay (~> 1.1.0)
41
- method_source (~> 0.9.0)
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 (12.3.2)
44
- rspec (3.8.0)
45
- rspec-core (~> 3.8.0)
46
- rspec-expectations (~> 3.8.0)
47
- rspec-mocks (~> 3.8.0)
48
- rspec-core (3.8.0)
49
- rspec-support (~> 3.8.0)
50
- rspec-expectations (3.8.4)
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.8.0)
53
- rspec-mocks (3.8.1)
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.8.0)
56
- rspec-support (3.8.2)
57
- rubocop (0.71.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.6)
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, < 1.7)
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.5)
74
+ tzinfo (1.2.7)
67
75
  thread_safe (~> 0.1)
68
- unicode-display_width (1.6.0)
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.0.1
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
- 'data': {
55
- 'checklists': {
56
- 'collection': [
53
+ "data": {
54
+ "checklists": {
55
+ "collection": [
57
56
  {
58
- 'id': '93938bb3-7a6c-4d35-9961-cbb2d4c9e9ac',
59
- 'name': 'Apple'
57
+ "id": "93938bb3-7a6c-4d35-9961-cbb2d4c9e9ac",
58
+ "name": "Apple"
60
59
  },
61
60
  {
62
- 'id': 'b1ee93b2-579a-4107-8454-119bba5afb63',
63
- 'name': 'Mango'
61
+ "id": "b1ee93b2-579a-4107-8454-119bba5afb63",
62
+ "name": "Mango"
64
63
  }
65
64
  ],
66
- 'metadata': {
67
- 'totalPages': 25,
68
- 'totalCount': 50,
69
- 'currentPage': 2,
70
- 'limitValue': 2
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
@@ -1,6 +1,8 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
3
4
 
4
5
  RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new
5
7
 
6
- task default: :spec
8
+ task default: %i[rubocop spec]
@@ -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 = 'graphql-pagination'
6
+ spec.name = 'graphql-pagination'
7
7
  spec.version = GraphqlPagination::VERSION
8
8
  spec.authors = ['Krzysztof Knapik', 'RenoFi Engineering Team']
9
- spec.email = ['knapo@knapo.net', 'engineering@renofi.com']
9
+ spec.email = ['knapo@knapo.net', 'engineering@renofi.com']
10
10
 
11
- spec.summary = 'Page-based kaminari pagination for graphql.'
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 = 'https://github.com/RenoFi/graphql-pagination'
14
- spec.license = 'MIT'
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{^(test|spec|features)/}) }
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
21
21
  end
22
- spec.bindir = 'exe'
23
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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.add_dependency 'graphql', '~> 1.9.4'
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
@@ -5,7 +5,6 @@ require 'graphql/schema/object'
5
5
  module GraphqlPagination
6
6
  end
7
7
 
8
- require 'graphql_pagination/version'
9
8
  require 'graphql_pagination/collection_type'
10
9
  require 'graphql_pagination/collection_metadata_type'
11
10
 
@@ -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, Integer, null: false
5
- field :total_count, Integer, null: false
6
- field :total_pages, Integer, null: false
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, GraphqlPagination::CollectionMetadataType, null: false
11
+ field :metadata, metadata_type, null: false
12
12
 
13
13
  def collection
14
14
  object
@@ -1,3 +1,3 @@
1
1
  module GraphqlPagination
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  end
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: 0.2.2
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: 2019-06-13 00:00:00.000000000 Z
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.4
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.4
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: '0'
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.0.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
@@ -1,4 +0,0 @@
1
- fail_on_violations: true
2
-
3
- rubocop:
4
- config_file: .rubocop.yml
@@ -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
@@ -1 +0,0 @@
1
- graphql-pagination
@@ -1 +0,0 @@
1
- 2.6.3
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'rack_graphql'
5
- require 'pry'
6
- require 'irb'
7
-
8
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install