graphql-sources 1.5.2 → 1.5.4

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: fea99d5034323ff95b35a9d8e8d9ef4f549c36972c66f2958767c804a733c34a
4
- data.tar.gz: db5ccdc4cabf4d10118e9572ebc88ccff7acf6837f333356db49a2ae5d626ddb
3
+ metadata.gz: 3cc9ef423319d1b5d3bb751ea7e7818d0ad46101a9898cc99d96dec08f6080dc
4
+ data.tar.gz: 2d156e259a909facb849dad2580d3d7de4fb55c0c631007a2beece54d1a0ee11
5
5
  SHA512:
6
- metadata.gz: 17b6e588ca2f514000c7ee9e3d1ace997b44bdb8ef43049611bf86d86711f1619bf65aa9c26305b33e00a05883a6873ed68902e7e06fcf8c223adad54787caa5
7
- data.tar.gz: a66bd4b062d28915d1df9e904877a317ea5cc80f9cac6cbb7a3104503575220d2fce6730551c05f6421dfeb34ee62f8853824379f000d689b88d908a54f86f8f
6
+ metadata.gz: 1176d888b97fe5d4c64ab1cf7f0a3e7bb3f936ab10cff27051b009b1d5b045b4b2cfb261c579ec5b5e075911c462e62f72f1c483e40661cbc2675d7e02847566
7
+ data.tar.gz: 759e37bf3be12f758eadeb36bf3205cefbb7b4bdd3cd93528b06d46e7e2fa342ab7ea09760a5cee9f9ab94e915c31e64512f445bff3927bfce46c13211a85727
data/Gemfile CHANGED
@@ -1,10 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
- gem 'rake'
8
- gem 'rspec'
9
- gem 'rubocop'
10
- gem 'yard'
7
+ gem "factory_bot"
8
+ gem "pg"
9
+ gem "rake"
10
+ gem "rspec"
11
+ gem "rspec_junit_formatter"
12
+ gem "rspec-rails"
13
+ gem "rubocop"
14
+ gem "rubocop-basic"
15
+ gem "rubocop-factory_bot"
16
+ gem "rubocop-rails"
17
+ gem "rubocop-rake"
18
+ gem "rubocop-rspec"
19
+ gem "rubocop-rspec_rails"
20
+ gem "simplecov"
21
+ gem "yard"
data/README.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # GraphQL::Sources
2
2
 
3
+ [![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ksylvest/graphql-sources/blob/main/LICENSE)
4
+ [![RubyGems](https://img.shields.io/gem/v/graphql-sources)](https://rubygems.org/gems/graphql-sources)
5
+ [![GitHub](https://img.shields.io/badge/github-repo-blue.svg)](https://github.com/ksylvest/graphql-sources)
6
+ [![Yard](https://img.shields.io/badge/docs-site-blue.svg)](https://graphql-sources.ksylvest.com)
7
+ [![CircleCI](https://img.shields.io/circleci/build/github/ksylvest/graphql-sources)](https://circleci.com/gh/ksylvest/graphql-sources)
8
+ [![Maintainability](https://api.codeclimate.com/v1/badges/bc301cb72712637e67dd/maintainability)](https://codeclimate.com/github/ksylvest/graphql-sources/maintainability)
9
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/bc301cb72712637e67dd/test_coverage)](https://codeclimate.com/github/ksylvest/graphql-sources/test_coverage)
10
+
11
+ `GraphQL::Sources` is a set of predefined dataloader classes build to avoid common n-plus-one issues in a GraphQL schema with Ruby. It supports loading `has_one`, `has_many`, `belongs_to`, `has_and_belongs_to_many`, `has_one_attached` and `has_many_attached` associations.
12
+
13
+ _Recent versions of [graphql-ruby](https://github.com/rmosolgo/graphql-ruby) include built-in support for loading records and associations via the [dataload_record](https://graphql-ruby.org/api-doc/2.5.3/GraphQL/Dataloader/ActiveRecordAssociationSource.html) and [dataload_association](https://graphql-ruby.org/api-doc/2.5.3/GraphQL/Dataloader/ActiveRecordSource.html) methods. These serve as a suitable alternative to some of the methods of loading provided by this library._
14
+
3
15
  ## Installation
4
16
 
5
17
  Install the gem and add to the application's Gemfile by executing:
@@ -321,12 +333,6 @@ class UserType < GraphQL::Schema::Object
321
333
  end
322
334
  ```
323
335
 
324
- ## Status
325
-
326
- [![CircleCI](https://circleci.com/gh/ksylvest/graphql-sources.svg?style=svg)](https://circleci.com/gh/ksylvest/graphql-sources)
327
- [![Maintainability](https://api.codeclimate.com/v1/badges/bc301cb72712637e67dd/maintainability)](https://codeclimate.com/github/ksylvest/graphql-sources/maintainability)
328
- [![Test Coverage](https://api.codeclimate.com/v1/badges/bc301cb72712637e67dd/test_coverage)](https://codeclimate.com/github/ksylvest/graphql-sources/test_coverage)
329
-
330
336
  ## License
331
337
 
332
338
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -21,7 +21,7 @@ module GraphQL
21
21
  @key = key
22
22
  end
23
23
 
24
- protected
24
+ protected
25
25
 
26
26
  # @param keys [Array] an array of keys
27
27
  # @return [ActiveRecord_Relation] a collection of records
@@ -10,7 +10,7 @@ module GraphQL
10
10
  @name = name
11
11
  end
12
12
 
13
- protected
13
+ protected
14
14
 
15
15
  # @param records [Array<ActiveRecord::Base>] a collection of records to load attachments for
16
16
  # @return [Array<ActiveStorage::Attachment>] the associated attachments with preloaded blobs
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module Sources
5
- VERSION = '1.5.2'
5
+ VERSION = "1.5.4"
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'graphql'
4
- require 'zeitwerk'
3
+ require "graphql"
4
+ require "zeitwerk"
5
5
 
6
6
  loader = Zeitwerk::Loader.for_gem
7
7
  loader.push_dir(__dir__, namespace: GraphQL)
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-sources
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-27 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: graphql
@@ -52,160 +51,6 @@ dependencies:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: factory_bot
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: pg
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rspec_junit_formatter
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rspec-rails
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop-factory_bot
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: rubocop-rails
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: rubocop-rake
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: rubocop-rspec
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ">="
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: rubocop-rspec_rails
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- - !ruby/object:Gem::Dependency
196
- name: simplecov
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
54
  description: Common loaders for various database or cache operations.
210
55
  email:
211
56
  - kevin@ksylvest.com
@@ -233,9 +78,10 @@ licenses:
233
78
  - MIT
234
79
  metadata:
235
80
  homepage_uri: https://github.com/ksylvest/graphql-sources
236
- source_code_uri: https://github.com/ksylvest/graphql-sources
237
- changelog_uri: https://github.com/ksylvest/graphql-sources/blob/main/CHANGELOG.md
238
- post_install_message:
81
+ source_code_uri: https://github.com/ksylvest/graphql-sources/tree/v1.5.4
82
+ changelog_uri: https://github.com/ksylvest/graphql-sources/releases/tag/v1.5.4
83
+ documentation_uri: https://graphql-sources.ksylvest.com/
84
+ rubygems_mfa_required: 'true'
239
85
  rdoc_options: []
240
86
  require_paths:
241
87
  - lib
@@ -250,8 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
96
  - !ruby/object:Gem::Version
251
97
  version: '0'
252
98
  requirements: []
253
- rubygems_version: 3.5.18
254
- signing_key:
99
+ rubygems_version: 3.6.9
255
100
  specification_version: 4
256
101
  summary: A set of common GraphQL DataLoader sources.
257
102
  test_files: []