graphql-fancy_loader 0.1.0 → 0.1.2

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: 0d25b6478d8cd86ee3568304d75df27a4b41658c5ba593968fffddfc41838c59
4
- data.tar.gz: 175aa9363d6386a6bca4e01341a4940345ce3e9f141eceacb963f830f6fb4b78
3
+ metadata.gz: 24056cf057f7db385e4488f8cad2692de6f2f09d7de0e683bc6e99801d660ed4
4
+ data.tar.gz: 52ef8a8f8ba31a5ac85dacacd54cddf1800ecca7ed946bd78ee394e585a14cb4
5
5
  SHA512:
6
- metadata.gz: ed5be0b7529c6d1277a4afc9eeea6478dd972bfa7f89ddb88a85baf3d2659fa36f89f90afe65f76228125136ebb98cfc117159bdbb9de556925a3129a9fbb1ee
7
- data.tar.gz: ac9d67341febdaa374695777763ed007add9e982cc1aac5e85d4cc51c597816ebffe08ea2e8072fb0d5ea22fabf9c7ccdd883b99068946dcaa8627f68f752fe1
6
+ metadata.gz: 6ae6cc150fdd940f48d5e524cea4af1389d0ecbb779dc0c3912981281933209426706eddd29762005b1c38ab7428b481ed98d9ceb6d9344edb380749c76a5a5f
7
+ data.tar.gz: c7dce6bfa2f3db97bab7fab2fa42716bdcd0315df2f337c9581875b6dd63c387f7efe78a156284fc2e7e75a3c73e02250bc914bf5e109421d6b38c10fc5e9eba
@@ -3,7 +3,9 @@ name: Release FancyLoader gem
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - releasing
6
+ - main
7
+ paths:
8
+ - "lib/graphql/fancy_loader/version.rb"
7
9
 
8
10
  jobs:
9
11
  release:
@@ -20,14 +22,10 @@ jobs:
20
22
  ruby-version: 2.7
21
23
  bundler-cache: true
22
24
 
23
- - name: Configure Git
24
- run: |
25
- git config user.name "Senko-san"
26
- git config user.email "developers@kitsu.io"
27
-
28
25
  - name: Authenticate with Rubygems
29
26
  run: |
30
- echo "${SENKO_SAN_RUBYGEMS_CREDENTIALS}" > $HOME/.gem/credentials
27
+ echo "${RUBYGEMS_CREDENTIALS}" > $HOME/.gem/credentials
28
+ chmod 0600 $HOME/.gem/credentials
31
29
  env:
32
30
  RUBYGEMS_CREDENTIALS: ${{ secrets.SENKO_SAN_RUBYGEMS_CREDENTIALS }}
33
31
 
@@ -49,12 +49,6 @@ jobs:
49
49
  ruby-version: ${{ matrix.ruby }}
50
50
  bundler-cache: true
51
51
 
52
- - name: Set up Test Environment
53
- if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
54
- env:
55
- DATABASE_URL: postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/fancyloader_test
56
- run: bundle exec rake db:create db:schema:load
57
-
58
52
  - name: Run Tests
59
53
  if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
60
54
  env:
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in GraphQL-fancy_loader.gemspec
4
- gemspec
4
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- graphql-fancy_loader (0.1.0)
5
- activesupport (>= 5.0, < 6.2)
4
+ graphql-fancy_loader (0.1.2)
5
+ activesupport (>= 5.0, < 7.0)
6
6
  graphql (>= 1.3, < 2)
7
7
  graphql-batch (>= 0.4.3, < 1)
8
8
 
@@ -92,7 +92,7 @@ GEM
92
92
  ffi (1.15.4)
93
93
  globalid (0.5.2)
94
94
  activesupport (>= 5.0)
95
- graphql (1.12.17)
95
+ graphql (1.12.19)
96
96
  graphql-batch (0.4.3)
97
97
  graphql (>= 1.3, < 2)
98
98
  promise.rb (~> 0.7.2)
data/Rakefile CHANGED
@@ -4,3 +4,6 @@ require 'rspec/core/rake_task'
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
6
  task default: :spec
7
+
8
+ Rake::Task['release'].clear
9
+ task release: %w[build release:rubygem_push]
@@ -11,13 +11,13 @@ Gem::Specification.new do |spec|
11
11
  spec.authors = ['Toyhammered', 'Emma Lejeck']
12
12
  spec.email = ['nuck@kitsu.io']
13
13
 
14
- spec.summary = ''
15
- spec.description = ''
16
- spec.homepage = 'https://github.com/hummingbird-me/grahpql-fancy-loader'
14
+ spec.summary = 'FancyLoader efficiently batches queries using postgres window functions to allow advanced features such as orders, limits, pagination, and authorization scoping.'
15
+ spec.description = 'FancyLoader (built on top of the graphql-batch gem) efficiently batches queries using postgres window functions to allow advanced features such as orders, limits, pagination, and authorization scoping. Built on top of Arel, FancyLoader is highly extensible and capable of handling complex sorts (including sorting based on a join) with minimal effort and high performance.'
16
+ spec.homepage = 'https://github.com/hummingbird-me/graphql-fancy-loader'
17
17
  spec.license = 'Apache-2.0'
18
18
 
19
19
  spec.metadata['homepage_uri'] = spec.homepage
20
- spec.metadata['source_code_uri'] = 'https://github.com/hummingbird-me/grahpql-fancy-loader'
20
+ spec.metadata['source_code_uri'] = 'https://github.com/hummingbird-me/graphql-fancy-loader'
21
21
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
22
22
 
23
23
  # Specify which files should be added to the gem when it is released.
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ['lib']
31
31
 
32
- spec.add_runtime_dependency 'activesupport', '>= 5.0', '< 6.2'
32
+ spec.add_runtime_dependency 'activesupport', '>= 5.0', '< 7.0'
33
33
  spec.add_runtime_dependency 'graphql', '>= 1.3', '< 2'
34
34
  spec.add_runtime_dependency 'graphql-batch', '>= 0.4.3', '< 1'
35
35
 
@@ -1,5 +1,11 @@
1
1
  module GraphQL
2
- class FancyLoader
3
- VERSION = '0.1.0'.freeze
2
+ # HACK: This allows us to import the version number in the gemspec
3
+ class FancyLoader < (begin
4
+ require 'graphql/batch'
5
+ GraphQL::Batch::Loader
6
+ rescue LoadError
7
+ BasicObject
8
+ end)
9
+ VERSION = '0.1.2'.freeze
4
10
  end
5
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-fancy_loader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toyhammered
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-11-05 00:00:00.000000000 Z
12
+ date: 2021-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: '5.0'
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '6.2'
23
+ version: '7.0'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: '5.0'
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '6.2'
33
+ version: '7.0'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: graphql
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -253,7 +253,11 @@ dependencies:
253
253
  - - "~>"
254
254
  - !ruby/object:Gem::Version
255
255
  version: '5.0'
256
- description: ''
256
+ description: FancyLoader (built on top of the graphql-batch gem) efficiently batches
257
+ queries using postgres window functions to allow advanced features such as orders,
258
+ limits, pagination, and authorization scoping. Built on top of Arel, FancyLoader
259
+ is highly extensible and capable of handling complex sorts (including sorting based
260
+ on a join) with minimal effort and high performance.
257
261
  email:
258
262
  - nuck@kitsu.io
259
263
  executables: []
@@ -286,12 +290,12 @@ files:
286
290
  - lib/graphql/fancy_loader/type_generator.rb
287
291
  - lib/graphql/fancy_loader/version.rb
288
292
  - lib/graphql/sort_direction.rb
289
- homepage: https://github.com/hummingbird-me/grahpql-fancy-loader
293
+ homepage: https://github.com/hummingbird-me/graphql-fancy-loader
290
294
  licenses:
291
295
  - Apache-2.0
292
296
  metadata:
293
- homepage_uri: https://github.com/hummingbird-me/grahpql-fancy-loader
294
- source_code_uri: https://github.com/hummingbird-me/grahpql-fancy-loader
297
+ homepage_uri: https://github.com/hummingbird-me/graphql-fancy-loader
298
+ source_code_uri: https://github.com/hummingbird-me/graphql-fancy-loader
295
299
  allowed_push_host: https://rubygems.org
296
300
  post_install_message:
297
301
  rdoc_options: []
@@ -311,5 +315,6 @@ requirements: []
311
315
  rubygems_version: 3.1.6
312
316
  signing_key:
313
317
  specification_version: 4
314
- summary: ''
318
+ summary: FancyLoader efficiently batches queries using postgres window functions to
319
+ allow advanced features such as orders, limits, pagination, and authorization scoping.
315
320
  test_files: []