graphql-client 0.24.0 → 0.26.0

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: e9599ace170112e5e04ae479334661896f6c81337b3635006458303976d7e6a5
4
- data.tar.gz: 24177d1923b56536e4da82de0a2965d9c2998617bbf17b02bc24764ba35de9cb
3
+ metadata.gz: aab80b9e2051c30118b8db5fc9dbd813926d8a180bf49371bf23e6a09aaaf4eb
4
+ data.tar.gz: 20de5ca5f098763481ffa6bfa79308b1db5339376878f98c7d3ecb8d4442d5cd
5
5
  SHA512:
6
- metadata.gz: 87e0a8a6c0cdd9954be7994d00c3f9e06a269dbdeae8e3b79626fa19f3e32a755dc34ae2a590e3fa0149e3208c06021d806727d51b4decd3df5e21ae7e6b65ab
7
- data.tar.gz: 33e919fe214424f9dbfc061d3a223d4b70e136303e5a4108c9ee9115a39c81f08e424580ea162600eba2f903935f2cb2580c76805201cc48111f89dd1cc07ad2
6
+ metadata.gz: 81eb7e3021e3cdf8201e86971ed7d63f58d60e132d22b7c4ee35fd6b0a42fa730f4a9c9dd6638027f583d98638d270ef1d7994f0b5976ad4200a8c4164f58864
7
+ data.tar.gz: 7a752365bd27b213506bf6958c8accf9941f85bc8a7c73518950b431c1b7563584d29c0569f3a8a8a4c221e704c9ea3ff05333f005af004e60454b21f1acaaf9
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  require "action_view"
3
+ require "logger"
3
4
 
4
5
  module GraphQL
5
6
  class Client
@@ -14,7 +14,7 @@ module GraphQL
14
14
  # Assumes GraphQL endpoint follows the express-graphql endpoint conventions.
15
15
  # https://github.com/graphql/express-graphql#http-usage
16
16
  #
17
- # Production applications should consider implementing there own network
17
+ # Production applications should consider implementing their own network
18
18
  # adapter. This class exists for trivial stock usage and allows for minimal
19
19
  # request header configuration.
20
20
  class HTTP
@@ -5,7 +5,7 @@ module RuboCop
5
5
  module Cop
6
6
  module GraphQL
7
7
  # Public: Cop for enforcing non-interpolated GRAPHQL heredocs.
8
- class Heredoc < Cop
8
+ class Heredoc < Base
9
9
  def on_dstr(node)
10
10
  check_str(node)
11
11
  end
@@ -19,11 +19,11 @@ module RuboCop
19
19
  return unless node.location.expression.source =~ /^<<(-|~)?GRAPHQL/
20
20
 
21
21
  node.each_child_node(:begin) do |begin_node|
22
- add_offense(begin_node, location: :expression, message: "Do not interpolate variables into GraphQL queries, " \
22
+ add_offense(begin_node, message: "Do not interpolate variables into GraphQL queries, " \
23
23
  "used variables instead.")
24
24
  end
25
25
 
26
- add_offense(node, location: :expression, message: "GraphQL heredocs should be quoted. <<-'GRAPHQL'")
26
+ add_offense(node, message: "GraphQL heredocs should be quoted. <<-'GRAPHQL'")
27
27
  end
28
28
 
29
29
  def autocorrect(node)
@@ -8,7 +8,7 @@ module RuboCop
8
8
  module Cop
9
9
  module GraphQL
10
10
  # Public: Rubocop for catching overfetched fields in ERB templates.
11
- class Overfetch < Cop
11
+ class Overfetch < Base
12
12
  if defined?(RangeHelp)
13
13
  # rubocop 0.53 moved the #source_range method into this module
14
14
  include RangeHelp
@@ -42,7 +42,7 @@ module RuboCop
42
42
 
43
43
  visitor.fields.each do |field, count|
44
44
  next if count > 0
45
- add_offense(nil, location: visitor.ranges[field], message: "GraphQL field '#{field}' query but was not used in template.")
45
+ add_offense(visitor.ranges[field], message: "GraphQL field '#{field}' query but was not used in template.")
46
46
  end
47
47
  end
48
48
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-13 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: activesupport
@@ -100,14 +99,14 @@ dependencies:
100
99
  requirements:
101
100
  - - "~>"
102
101
  - !ruby/object:Gem::Version
103
- version: 13.1.0
102
+ version: 13.2.1
104
103
  type: :development
105
104
  prerelease: false
106
105
  version_requirements: !ruby/object:Gem::Requirement
107
106
  requirements:
108
107
  - - "~>"
109
108
  - !ruby/object:Gem::Version
110
- version: 13.1.0
109
+ version: 13.2.1
111
110
  - !ruby/object:Gem::Dependency
112
111
  name: rubocop-github
113
112
  requirement: !ruby/object:Gem::Requirement
@@ -128,14 +127,14 @@ dependencies:
128
127
  requirements:
129
128
  - - "~>"
130
129
  - !ruby/object:Gem::Version
131
- version: 1.64.1
130
+ version: 1.75.8
132
131
  type: :development
133
132
  prerelease: false
134
133
  version_requirements: !ruby/object:Gem::Requirement
135
134
  requirements:
136
135
  - - "~>"
137
136
  - !ruby/object:Gem::Version
138
- version: 1.64.1
137
+ version: 1.75.8
139
138
  description: A Ruby library for declaring, composing and executing GraphQL queries
140
139
  email: engineering@github.com
141
140
  executables: []
@@ -185,7 +184,6 @@ licenses:
185
184
  - MIT
186
185
  metadata:
187
186
  rubygems_mfa_required: 'true'
188
- post_install_message:
189
187
  rdoc_options: []
190
188
  require_paths:
191
189
  - lib
@@ -200,8 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
198
  - !ruby/object:Gem::Version
201
199
  version: '0'
202
200
  requirements: []
203
- rubygems_version: 3.5.9
204
- signing_key:
201
+ rubygems_version: 3.6.7
205
202
  specification_version: 4
206
203
  summary: GraphQL Client
207
204
  test_files: []