graphql-docs 1.1.0 → 1.2.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: cb56efa1353bba4968e384fccd9369822e974754
4
- data.tar.gz: 92399e275a548c5bb2c2b760b3a773e6bc5a6148
3
+ metadata.gz: aa92319fbde2fb092c1060c9b754edbc7967dffb
4
+ data.tar.gz: 6559b9600700c459a582613b400e2fb52f7d0132
5
5
  SHA512:
6
- metadata.gz: 5c57ab3f2c5cdcbdd4e36a6bd9c70a7140a49382ed42a870221b240b681de94ad1e6ffbdd43af5ab4e9aeb5794605112c13376313e171c6a40ff7266f0506164
7
- data.tar.gz: fdf3b0161917739be328cc8d7c6810d7d29cb8d3aac07d4970d830e6ad36af9993f4b8401192c06a1ba02a57c13e7732e9a6c7a78c525c25e7ebe3464c14a6cb
6
+ metadata.gz: 73fa9af50971492828db578ea7f9118fda68fcc54a6854c33ea55def59363c5140f55893334c2a4d98467fe7ca08f18b5d3e81dfaa1c55b8f75986480ed391b4
7
+ data.tar.gz: b1541dd0a1374b155612d737daf25a7ad0670d3f71363922199f012e72aab0a45d0b68eaeba2dda24a0111928b9bfb6ed8ac7b69ae8b0d98618933b90a3d336a
@@ -15,6 +15,9 @@
15
15
  </td>
16
16
  <td>
17
17
  <p><%= markdownify.(argument[:description]) %></p>
18
+ <% unless (default_value = argument[:default_value]).nil? %>
19
+ <p>The default value is <code><%= argument[:default_value] %></code>.</p>
20
+ <% end %>
18
21
  </td>
19
22
  </tr>
20
23
  <% end %>
@@ -155,7 +155,9 @@ module GraphQLDocs
155
155
  h[:name] = arg.name
156
156
  h[:description] = arg.description
157
157
  h[:type] = generate_type(arg.type)
158
-
158
+ if arg.default_value?
159
+ h[:default_value] = arg.default_value
160
+ end
159
161
  hash[:arguments] << h
160
162
  end
161
163
  end
@@ -1,3 +1,3 @@
1
1
  module GraphQLDocs
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.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.1.0
4
+ version: 1.2.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: 2018-02-02 00:00:00.000000000 Z
11
+ date: 2018-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql