graphql 1.13.8 → 1.13.9

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.

Potentially problematic release.


This version of graphql might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cca9242fe9e123d9b0a24deb2858d99f41fc272f0460540cdeab88c170ab8a8
4
- data.tar.gz: aac9c17e4885b3fec0526c5f5d3066e92fc96718af9b4cc40a9b37d14b5f1199
3
+ metadata.gz: 6d96eacd39201c81802bc7a525b5ff5392e918582ef7814a14c5f650d82fa1ca
4
+ data.tar.gz: 45f26d9425c711c1d91026837f900fa172a511258a95ae1ba9356c76fcf905bb
5
5
  SHA512:
6
- metadata.gz: 54162adc563c09a4e68cb909e35e27c35e5e970eb47299c9b33e8b86d6182ba973b1fa88c34c391705cb96af77d660a958b475caac83a0698184e4dbd0aacc8d
7
- data.tar.gz: 5ef725a63d61710f5ddc1f500485e3bd0f675c41d6b9406270af06d895570625ff86a10c2449817479c106db1af4c9d9c646cda551ba34c6c54acdff83ca8428
6
+ metadata.gz: bc31be3568df7a167eda2ae0c81ae05999cc34de47a5a0aeae082795b7ae4750d4b1b17c744e5f6100cf4b9039e51371f0fb82c37cd1ceb72febf1bb2ef898fd
7
+ data.tar.gz: 723da375b4060fc8d348a7b84261fe2c3ed6f06c32ad346feaeef7ec1dee11a91666f91a2d38c0f750c0a2373114f9a4f7a9d4f0775e28bac72b3e5c954a2dc4
@@ -133,6 +133,10 @@ module GraphQL
133
133
  @arguments = self.class.coerce_arguments(nil, arguments, Query::NullContext)
134
134
  end
135
135
 
136
+ def graphql_name
137
+ self.class.graphql_name
138
+ end
139
+
136
140
  LOCATIONS = [
137
141
  QUERY = :QUERY,
138
142
  MUTATION = :MUTATION,
@@ -428,11 +428,14 @@ module GraphQL
428
428
  elsif connection?
429
429
  arguments = query.arguments_for(nodes.first, self)
430
430
  max_possible_page_size = nil
431
- if arguments[:first]
432
- max_possible_page_size = arguments[:first]
433
- end
434
- if arguments[:last] && (max_possible_page_size.nil? || arguments[:last] > max_possible_page_size)
435
- max_possible_page_size = arguments[:last]
431
+ if arguments.respond_to?(:[]) # It might have been an error
432
+ if arguments[:first]
433
+ max_possible_page_size = arguments[:first]
434
+ end
435
+
436
+ if arguments[:last] && (max_possible_page_size.nil? || arguments[:last] > max_possible_page_size)
437
+ max_possible_page_size = arguments[:last]
438
+ end
436
439
  end
437
440
 
438
441
  if max_possible_page_size.nil?
@@ -81,7 +81,7 @@ module GraphQL
81
81
 
82
82
  def self.authorized?(obj, value, ctx)
83
83
  # Authorize each argument (but this doesn't apply if `prepare` is implemented):
84
- if value.is_a?(InputObject)
84
+ if value.respond_to?(:key?)
85
85
  arguments(ctx).each do |_name, input_obj_arg|
86
86
  input_obj_arg = input_obj_arg.type_class
87
87
  if value.key?(input_obj_arg.keyword) &&
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "1.13.8"
3
+ VERSION = "1.13.9"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.8
4
+ version: 1.13.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-31 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips
@@ -707,7 +707,7 @@ metadata:
707
707
  source_code_uri: https://github.com/rmosolgo/graphql-ruby
708
708
  bug_tracker_uri: https://github.com/rmosolgo/graphql-ruby/issues
709
709
  mailing_list_uri: https://tinyletter.com/graphql-ruby
710
- post_install_message:
710
+ post_install_message:
711
711
  rdoc_options: []
712
712
  require_paths:
713
713
  - lib
@@ -722,8 +722,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
722
722
  - !ruby/object:Gem::Version
723
723
  version: '0'
724
724
  requirements: []
725
- rubygems_version: 3.3.3
726
- signing_key:
725
+ rubygems_version: 3.1.6
726
+ signing_key:
727
727
  specification_version: 4
728
728
  summary: A GraphQL language and runtime for Ruby
729
729
  test_files: []