graphql-docs 1.0.0.pre5 → 1.0.0

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
  SHA1:
3
- metadata.gz: 7e82b37c0d2750dbc820efa46856316a9579c0f8
4
- data.tar.gz: 5b3fbfa49c277e9bb2b59e57e95e9aa7311aa85d
3
+ metadata.gz: cd0feadf10088ef3101484cfd7f03396eaf123f6
4
+ data.tar.gz: c80197bf4b0207715507dc7f22c51b2e30d650f8
5
5
  SHA512:
6
- metadata.gz: 51d3c778dc6a972bddec47e928e34575c7f4983ce39cc072c4e3af0b85bf1b5ff75a629d90af326d1077de5b52ec0879621783d0b1886e63838a0035c3d10c40
7
- data.tar.gz: 021c3aa059c58374d61db3150ea1da6759085bc48a375f70567e613c1c404e15c96551961e94be7e630c7ebb704f86ba016f89f90d6a36b26b638beecfd4ba15
6
+ metadata.gz: f43625e10a46594d7a9e9608a38c689a1e2217d4bef60002955b154d95f5be44d9ec1c323703ef0681dd95d8e3673df6d6b0c89ac72e77f1f9014dd3874d095f
7
+ data.tar.gz: af3dcf19e0eb88b90e42cbb0460ea65280839a753f983539cead8fb129d29b7b1c0498da8ac9ccc0c8aaf0563a37ff119d94fece4b4c4a5c7324faecfa771eee
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rubocop', require: false
4
3
  gem 'commonmarker', '~> 0.16', require: false
4
+ gem 'rubocop', require: false
5
5
 
6
6
  # Specify your gem's dependencies in graphql-docs.gemspec
7
7
  gemspec
@@ -1,7 +1,7 @@
1
1
  <% connections.each do |connection| %>
2
2
 
3
3
  <div class="field-entry <%= classes[:field_entry] %>">
4
- <span class="field-name connection-name"><%= connection[:name] %> (<a href="<%= base_url %>/<%= connection[:type][:path] %>"><code><%= connection[:type][:info] %></code></a>)</span>
4
+ <span id="<%= slugify.(connection[:name]) %>" class="field-name connection-name"><%= connection[:name] %> (<a href="<%= base_url %>/<%= connection[:type][:path] %>"><code><%= connection[:type][:info] %></code></a>)</span>
5
5
 
6
6
  <div class="description-wrapper">
7
7
  <p><%= connection[:description] %></p>
@@ -1,7 +1,7 @@
1
1
  <% fields.each do |field| %>
2
2
 
3
3
  <div class="field-entry <%= classes[:field_entry] %>">
4
- <span class="field-name"><%= field[:name] %> (<code><a href="<%= base_url %>/<%= field[:type][:path] %>"><%= field[:type][:info] %></a></code>)</span>
4
+ <span id="<%= slugify.(field[:name]) %>" class="field-name"><%= field[:name] %> (<code><a href="<%= base_url %>/<%= field[:type][:path] %>"><%= field[:type][:info] %></a></code>)</span>
5
5
 
6
6
  <div class="description-wrapper">
7
7
  <% if field[:is_deprecated] %>
@@ -1,7 +1,7 @@
1
1
  <% input_fields.each do |field| %>
2
2
 
3
3
  <div class="field-entry <%= classes[:field_entry] %>">
4
- <span class="field-name"><%= field[:name] %> (<a href="<%= base_url %>/<%= field[:type][:path] %>"><code><%= field[:type][:info] %></code></a>)</span>
4
+ <span id="<%= slugify.(field[:name]) %>" class="field-name"><%= field[:name] %> (<a href="<%= base_url %>/<%= field[:type][:path] %>"><code><%= field[:type][:info] %></code></a>)</span>
5
5
 
6
6
  <div class="description-wrapper">
7
7
  <%= field[:description] %>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <% values.each do |value| %>
4
4
 
5
- <h4 class="name"><%= value[:name] %></h4>
5
+ <h4 id="<%= slugify.(value[:name]) %>" class="name"><%= value[:name] %></h4>
6
6
 
7
7
  <div class="description-wrapper">
8
8
  <% if value[:is_deprecated] %>
@@ -22,7 +22,7 @@ module GraphQLDocs
22
22
  end
23
23
 
24
24
  def parse
25
- @schema.types.values.each do |object|
25
+ @schema.types.each_value do |object|
26
26
  data = {}
27
27
 
28
28
  case object
@@ -41,7 +41,7 @@ module GraphQLDocs
41
41
 
42
42
  @processed_schema[:operation_types] << data
43
43
 
44
- object.fields.values.each do |mutation|
44
+ object.fields.each_value do |mutation|
45
45
  h = {}
46
46
  h[:name] = mutation.name
47
47
  h[:description] = mutation.description
@@ -130,7 +130,7 @@ module GraphQLDocs
130
130
  fields = []
131
131
  connections = []
132
132
 
133
- object_fields.values.each do |field|
133
+ object_fields.each_value do |field|
134
134
  hash = {}
135
135
 
136
136
  hash[:name] = field.name
@@ -144,7 +144,7 @@ module GraphQLDocs
144
144
 
145
145
  hash[:arguments] = []
146
146
  if field.respond_to?(:arguments)
147
- field.arguments.values.each do |arg|
147
+ field.arguments.each_value do |arg|
148
148
  h = {}
149
149
  h[:name] = arg.name
150
150
  h[:description] = arg.description
@@ -1,3 +1,3 @@
1
1
  module GraphQLDocs
2
- VERSION = '1.0.0.pre5'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-14 00:00:00.000000000 Z
11
+ date: 2017-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -303,9 +303,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
303
303
  version: '0'
304
304
  required_rubygems_version: !ruby/object:Gem::Requirement
305
305
  requirements:
306
- - - ">"
306
+ - - ">="
307
307
  - !ruby/object:Gem::Version
308
- version: 1.3.1
308
+ version: '0'
309
309
  requirements: []
310
310
  rubyforge_project:
311
311
  rubygems_version: 2.6.12