graphql-pagination 0.2.2 → 0.2.3

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: 5126cd4efa227e900819533d8174c3f5f79796155c89400aefd6fa4a62b097bf
4
- data.tar.gz: a9161702e52430cc5486245c647dfe82c4c741372557e5709d06a93783f7e2ce
3
+ metadata.gz: 338fc0497792b1bd3ca3fff2daf6200978f7c4bfaf43722e834dc29dd629f0c2
4
+ data.tar.gz: 62430fbde2facf0586e6f898930b01aa49c71bfa77db842bd88fece8ebc4dbe5
5
5
  SHA512:
6
- metadata.gz: 76d3e6b848b1ce9a3072812c692b6e9c395c0b80c0c6d60a853c4721f976a07b83f9d9b0204de9056926b13e8b114b8164a869d9555636b61d971f5f9f1d9403
7
- data.tar.gz: 5b789bad2cea40103da4fe25a9cd7ab24caf6d73e3ebd6167e52aba5f78c9f725fa067b2fea089ff0e02084cc01af1d2b20bbb87ce22438e121ee62998e10d73
6
+ metadata.gz: c7f95879e8249e61a19624ecf0c73146fd8264997fc9e7d35b49008bc557447e2afd1f20bc65be8b3c3dcc6f0ef21e055bb92cf53c5b6e3bcd351407a3d0fb68
7
+ data.tar.gz: b37539d880b78d498815f5c6b88966dfefe557f14c2d4a4dc514a7d7e6de8551368e1d6789fd45de3fe889290e34440ff39f8add2bc0c4313fee6eae4eaede6b
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*
@@ -1,62 +1,12 @@
1
- Gemspec/RequiredRubyVersion:
2
- Include:
3
- - 2.4
4
- - 2.5
5
- - 2.6
1
+ require:
2
+ - rubocop-performance
6
3
 
7
- Lint/UnusedBlockArgument:
8
- Enabled: false
4
+ inherit_from:
5
+ - https://raw.githubusercontent.com/RenoFi/rubocop/master/0.77.yml
9
6
 
10
- Layout/AlignHash:
11
- Enabled: false
7
+ AllCops:
8
+ TargetRubyVersion: 2.5
12
9
 
13
10
  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
11
  Exclude:
56
- - 'spec/*.rb'
57
-
58
- Style/SymbolArray:
59
- EnforcedStyle: brackets
60
-
61
- Style/TrivialAccessors:
62
- Enabled: false
12
+ - 'lib/*.rb'
@@ -1 +1 @@
1
- 2.6.3
1
+ 2.6.5
@@ -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.5.7
7
+ - 2.6.5
8
+ before_install: gem install bundler -v 2.0.2
9
+ script:
10
+ - bundle exec rspec
11
+ - bundle exec rubocop
@@ -1,71 +1,73 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql-pagination (0.2.2)
4
+ graphql-pagination (0.2.3)
5
5
  graphql (~> 1.9.4)
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.1)
11
+ activesupport (= 6.0.1)
12
+ activerecord (6.0.1)
13
+ activemodel (= 6.0.1)
14
+ activesupport (= 6.0.1)
15
+ activesupport (6.0.1)
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)
20
+ zeitwerk (~> 2.2)
22
21
  ast (2.4.0)
23
22
  coderay (1.1.2)
24
23
  concurrent-ruby (1.1.5)
25
24
  diff-lcs (1.3)
26
- graphql (1.9.6)
27
- i18n (1.6.0)
25
+ graphql (1.9.15)
26
+ i18n (1.7.0)
28
27
  concurrent-ruby (~> 1.0)
29
- jaro_winkler (1.5.2)
28
+ jaro_winkler (1.5.4)
30
29
  kaminari-activerecord (1.1.1)
31
30
  activerecord
32
31
  kaminari-core (= 1.1.1)
33
32
  kaminari-core (1.1.1)
34
33
  method_source (0.9.2)
35
- minitest (5.11.3)
36
- parallel (1.17.0)
37
- parser (2.6.3.0)
34
+ minitest (5.13.0)
35
+ parallel (1.19.1)
36
+ parser (2.6.5.0)
38
37
  ast (~> 2.4.0)
39
38
  pry (0.12.2)
40
39
  coderay (~> 1.1.0)
41
40
  method_source (~> 0.9.0)
42
41
  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)
42
+ rake (13.0.1)
43
+ rspec (3.9.0)
44
+ rspec-core (~> 3.9.0)
45
+ rspec-expectations (~> 3.9.0)
46
+ rspec-mocks (~> 3.9.0)
47
+ rspec-core (3.9.0)
48
+ rspec-support (~> 3.9.0)
49
+ rspec-expectations (3.9.0)
51
50
  diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.8.0)
53
- rspec-mocks (3.8.1)
51
+ rspec-support (~> 3.9.0)
52
+ rspec-mocks (3.9.0)
54
53
  diff-lcs (>= 1.2.0, < 2.0)
55
- rspec-support (~> 3.8.0)
56
- rspec-support (3.8.2)
57
- rubocop (0.71.0)
54
+ rspec-support (~> 3.9.0)
55
+ rspec-support (3.9.0)
56
+ rubocop (0.77.0)
58
57
  jaro_winkler (~> 1.5.1)
59
58
  parallel (~> 1.10)
60
59
  parser (>= 2.6)
61
60
  rainbow (>= 2.2.2, < 4.0)
62
61
  ruby-progressbar (~> 1.7)
63
62
  unicode-display_width (>= 1.4.0, < 1.7)
63
+ rubocop-performance (1.5.1)
64
+ rubocop (>= 0.71.0)
64
65
  ruby-progressbar (1.10.1)
65
66
  thread_safe (0.3.6)
66
67
  tzinfo (1.2.5)
67
68
  thread_safe (~> 0.1)
68
69
  unicode-display_width (1.6.0)
70
+ zeitwerk (2.2.2)
69
71
 
70
72
  PLATFORMS
71
73
  ruby
@@ -78,6 +80,7 @@ DEPENDENCIES
78
80
  rake
79
81
  rspec
80
82
  rubocop
83
+ rubocop-performance
81
84
 
82
85
  BUNDLED WITH
83
- 2.0.1
86
+ 2.0.2
data/README.md CHANGED
@@ -49,7 +49,7 @@ Value returned by query resolver must be a kaminari object or implements its pag
49
49
  }
50
50
  ```
51
51
 
52
- ```json
52
+ ```
53
53
  {
54
54
  'data': {
55
55
  'checklists': {
@@ -17,12 +17,14 @@ Gem::Specification.new do |spec|
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)/}) }
21
21
  end
22
22
  spec.bindir = 'exe'
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ['lib']
25
25
 
26
+ spec.required_ruby_version = '>= 2.5'
27
+
26
28
  spec.add_dependency 'graphql', '~> 1.9.4'
27
29
 
28
30
  spec.add_development_dependency 'kaminari-activerecord'
@@ -31,4 +33,5 @@ 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'
34
37
  end
@@ -1,3 +1,3 @@
1
1
  module GraphqlPagination
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-06-13 00:00:00.000000000 Z
12
+ date: 2019-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: graphql
@@ -109,6 +109,20 @@ 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'
112
126
  description: Page-based kaminari pagination for graphql returning collection and pagination
113
127
  metadata.
114
128
  email:
@@ -119,7 +133,6 @@ extensions: []
119
133
  extra_rdoc_files: []
120
134
  files:
121
135
  - ".gitignore"
122
- - ".hound.yml"
123
136
  - ".rspec"
124
137
  - ".rubocop.yml"
125
138
  - ".ruby-gemset"
@@ -130,8 +143,6 @@ files:
130
143
  - LICENSE
131
144
  - README.md
132
145
  - Rakefile
133
- - bin/console
134
- - bin/setup
135
146
  - graphql-pagination.gemspec
136
147
  - lib/graphql-pagination.rb
137
148
  - lib/graphql_pagination.rb
@@ -152,14 +163,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
163
  requirements:
153
164
  - - ">="
154
165
  - !ruby/object:Gem::Version
155
- version: '0'
166
+ version: '2.5'
156
167
  required_rubygems_version: !ruby/object:Gem::Requirement
157
168
  requirements:
158
169
  - - ">="
159
170
  - !ruby/object:Gem::Version
160
171
  version: '0'
161
172
  requirements: []
162
- rubygems_version: 3.0.3
173
+ rubygems_version: 3.0.6
163
174
  signing_key:
164
175
  specification_version: 4
165
176
  summary: Page-based kaminari pagination for graphql.
data/.hound.yml DELETED
@@ -1,4 +0,0 @@
1
- fail_on_violations: true
2
-
3
- rubocop:
4
- config_file: .rubocop.yml
@@ -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