graphiql-rails 1.4.3 → 1.4.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df260e69b8339256c3e73a70f238c8400332371e
|
4
|
+
data.tar.gz: f159fb28ce7ec2a1d50a052c356cbf6f79d5c8d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b4ee152f25eaff43f2324e3b582cadb1128d8879ea391fe37379427f96c970dd973ee4c322c4e185457950004ebe35c6924b59ec79632995ee4ba0fecbc6b20
|
7
|
+
data.tar.gz: 255fba39ba1bba30ae419bff93f869a0e33c03f2f835aeac7b33eccccbce4eaaf2195d1820a6364225153ec2e0de62af34d196838b21211457f3926fb69ed939
|
@@ -65,7 +65,7 @@
|
|
65
65
|
}
|
66
66
|
|
67
67
|
<% if GraphiQL::Rails.config.initial_query %>
|
68
|
-
var defaultQuery = "<%= GraphiQL::Rails.config.initial_query.gsub(
|
68
|
+
var defaultQuery = "<%= GraphiQL::Rails.config.initial_query.gsub("\n", '\n').gsub('"', '\"').html_safe %>";
|
69
69
|
<% else %>
|
70
70
|
var defaultQuery = undefined
|
71
71
|
<% end %>
|
@@ -26,13 +26,13 @@ module GraphiQL
|
|
26
26
|
end
|
27
27
|
|
28
28
|
test "it uses initial_query config" do
|
29
|
-
GraphiQL::Rails.config.initial_query =
|
29
|
+
GraphiQL::Rails.config.initial_query = '{ customQuery(id: "123") }'
|
30
30
|
get :show, graphql_params
|
31
|
-
assert_includes(@response.body, "{ customQuery }")
|
31
|
+
assert_includes(@response.body, '"{ customQuery(id: \"123\") }"')
|
32
32
|
|
33
33
|
GraphiQL::Rails.config.initial_query = nil
|
34
34
|
get :show, graphql_params
|
35
|
-
refute_includes(@response.body, "{ customQuery }")
|
35
|
+
refute_includes(@response.body, '"{ customQuery(id: \"123\") }"')
|
36
36
|
end
|
37
37
|
|
38
38
|
test "it uses query_params config" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiql-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|