graphiql-rails 1.0.1 → 1.0.2

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: b50862f13188d294055c1a6ef44bcb6a6672083d
4
- data.tar.gz: 1f3b4f5f00be1463587b856aecf2c3b763bb4f44
3
+ metadata.gz: ca699522c0406b6f3262a849002742d7de064ea5
4
+ data.tar.gz: f296618616d3ae68224a51deb4cb1030f8fb55ba
5
5
  SHA512:
6
- metadata.gz: 9115f479138aa5feb38e23d837cea4e3faa897f5db7533c5fa0a361dc4cd5dc9ec2b45cc9b50e6dcab28b92a1a86fd016d23d6d37f7e7306925aa41db2f92df4
7
- data.tar.gz: 1f70ad2a5805509abc3e8b8950c7f8ac75a2b179860daba702ab23a4c66345984d76985f0c31a3c20405b7d7639123ace09278b96250fefa3ab342099e2a63f5
6
+ metadata.gz: da78b12fe7d1ec8febc70e2615e5c68d0e99c5af68c41cd1c031edb03456d91a1257ab8a3dfa28cb519ec145234ffc0f5c96c3e9e32a0a9efcc721ec4f44a5ce
7
+ data.tar.gz: 13ed376bc1a9e81349d596e474c7ac30282bd09797f75be8dfacda67499c226a0a4b15b7aa40d7bc6fe50b82ae1b855695e17197445d2ee7b60e9d1717f46afd
@@ -6,7 +6,9 @@
6
6
  <%= javascript_include_tag("graphiql/rails/application") %>
7
7
  </head>
8
8
  <body>
9
- Loading...
9
+ <div id="graphiql-container">
10
+ Loading...
11
+ </div>
10
12
  <script>
11
13
  var parameters = {
12
14
  query: "<%= GraphiQL::Rails.config.initial_query.gsub(/\n/, "\\n") %>"
@@ -75,7 +77,7 @@
75
77
  onEditVariables: onEditVariables
76
78
  <% end %>
77
79
  }),
78
- document.body
80
+ document.getElementById("graphiql-container")
79
81
  );
80
82
  </script>
81
83
  </body>
@@ -1,5 +1,5 @@
1
1
  module GraphiQL
2
2
  module Rails
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
data/readme.md CHANGED
@@ -40,3 +40,7 @@ You can override `GraphiQL::Rails` configs in an initializer (eg, `config/initia
40
40
  GraphiQL::Rails.config.query_params = false # if true, the GraphQL query string will be persisted the page's query params.
41
41
  GraphiQL::Rails.config.initial_query = GraphiQL::Rails::WELCOME_MESSAGE # This string is presented to a new user
42
42
  ```
43
+
44
+ ## To-do
45
+
46
+ - [ ] Automate the update process for GraphiQL assets
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.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-20 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails