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: 90322c52e1e366b4f1fbc4afc7aa311df5689493
4
- data.tar.gz: 92601a5169fb1e5a0eaf4cc79d8c0f301447d34d
3
+ metadata.gz: df260e69b8339256c3e73a70f238c8400332371e
4
+ data.tar.gz: f159fb28ce7ec2a1d50a052c356cbf6f79d5c8d7
5
5
  SHA512:
6
- metadata.gz: 567df31d1febac398c2e8611dc756dd7861724cb1a8372616dce710176763c133f082e7a7039b088a11cff3b724817a83d9c65386ea0bd562818c9113b231491
7
- data.tar.gz: 3762e304e1a1753d0c785a22b197da3138279e4b1965f284efd796bec508626a1201f73bb4d63b647dc89f6442afe6c803de08ebc1c1b60570263a7a0414c655
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(/\n/, "\\n") %>";
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 %>
@@ -1,5 +1,5 @@
1
1
  module GraphiQL
2
2
  module Rails
3
- VERSION = "1.4.3"
3
+ VERSION = "1.4.4"
4
4
  end
5
5
  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 = "{ customQuery }"
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.3
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-05 00:00:00.000000000 Z
11
+ date: 2017-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails