rack-graphiql 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/graphiql.rb +1 -1
- data/lib/rack/graphiql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66ea8d7c57307445527241146cb65812ee4a73f5
|
4
|
+
data.tar.gz: 4e4e48422bd35455c92f9704012f1f6111e9ad7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faf7c6dd8712b951fe992d03a5cc4d0c3008bae7ce904ce7bb6f34983ff2c7a8205398e392d22719039a0e9b465e3a1df6a2ad52ac80626657ee7d39eec7fc9d
|
7
|
+
data.tar.gz: ef4d3023c9e17cc1d16bf0eb795600a2889f39dbec76e78584fcda0b434b02568f621b5b085e213f4e6519f500288eae09d07a10c338f8962b819902f1cbe9c6
|
data/lib/rack/graphiql.rb
CHANGED
@@ -20,7 +20,7 @@ module Rack
|
|
20
20
|
req = Rack::Request.new(env)
|
21
21
|
graphiql_query = req.params['query']
|
22
22
|
graphiql_variables = begin
|
23
|
-
JSON.pretty_generate(JSON.parse(req.params['variables']))
|
23
|
+
JSON.pretty_generate(JSON.parse(req.params['variables'] || ''))
|
24
24
|
rescue JSON::ParserError
|
25
25
|
''
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-graphiql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuya Takeyama
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|