File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11source 'https://rubygems.org'
22
3- gem 'rubocop' , require : false
43gem 'commonmarker' , '~> 0.16' , require : false
4+ gem 'rubocop' , require : false
55
66# Specify your gem's dependencies in graphql-docs.gemspec
77gemspec
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ def initialize(schema, options)
2222 end
2323
2424 def parse
25- @schema . types . values . each do |object |
25+ @schema . types . each_value do |object |
2626 data = { }
2727
2828 case object
@@ -41,7 +41,7 @@ def parse
4141
4242 @processed_schema [ :operation_types ] << data
4343
44- object . fields . values . each do |mutation |
44+ object . fields . each_value do |mutation |
4545 h = { }
4646 h [ :name ] = mutation . name
4747 h [ :description ] = mutation . description
@@ -130,7 +130,7 @@ def fetch_fields(object_fields)
130130 fields = [ ]
131131 connections = [ ]
132132
133- object_fields . values . each do |field |
133+ object_fields . each_value do |field |
134134 hash = { }
135135
136136 hash [ :name ] = field . name
@@ -144,7 +144,7 @@ def fetch_fields(object_fields)
144144
145145 hash [ :arguments ] = [ ]
146146 if field . respond_to? ( :arguments )
147- field . arguments . values . each do |arg |
147+ field . arguments . each_value do |arg |
148148 h = { }
149149 h [ :name ] = arg . name
150150 h [ :description ] = arg . description
You can’t perform that action at this time.
0 commit comments