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 +4 -4
- data/Gemfile +1 -1
- data/lib/graphql-docs/layouts/includes/connections.html +1 -1
- data/lib/graphql-docs/layouts/includes/fields.html +1 -1
- data/lib/graphql-docs/layouts/includes/input_fields.html +1 -1
- data/lib/graphql-docs/layouts/includes/values.html +1 -1
- data/lib/graphql-docs/parser.rb +4 -4
- data/lib/graphql-docs/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd0feadf10088ef3101484cfd7f03396eaf123f6
|
4
|
+
data.tar.gz: c80197bf4b0207715507dc7f22c51b2e30d650f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f43625e10a46594d7a9e9608a38c689a1e2217d4bef60002955b154d95f5be44d9ec1c323703ef0681dd95d8e3673df6d6b0c89ac72e77f1f9014dd3874d095f
|
7
|
+
data.tar.gz: af3dcf19e0eb88b90e42cbb0460ea65280839a753f983539cead8fb129d29b7b1c0498da8ac9ccc0c8aaf0563a37ff119d94fece4b4c4a5c7324faecfa771eee
|
data/Gemfile
CHANGED
@@ -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] %>
|
data/lib/graphql-docs/parser.rb
CHANGED
@@ -22,7 +22,7 @@ module GraphQLDocs
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def parse
|
25
|
-
@schema.types.
|
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.
|
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.
|
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.
|
147
|
+
field.arguments.each_value do |arg|
|
148
148
|
h = {}
|
149
149
|
h[:name] = arg.name
|
150
150
|
h[:description] = arg.description
|
data/lib/graphql-docs/version.rb
CHANGED
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
|
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-
|
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:
|
308
|
+
version: '0'
|
309
309
|
requirements: []
|
310
310
|
rubyforge_project:
|
311
311
|
rubygems_version: 2.6.12
|