graphiti_gql 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiti_gql/version.rb +1 -1
- metadata +6 -8
- data/app/controllers/graphiti_gql/execution_controller.rb +0 -18
- data/config/routes.rb +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17c54a15f86e3855f814dcea6a7093ceb0b0252de6685c57017a19f3c83160db
|
4
|
+
data.tar.gz: e0f018dbe747eaa43401f3f02ef77a526e3f5f2a0dad8964dd138bc083a38ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b863f5de471a4991d28f35c544567cf7420b78852c202c527b79399deb7e67f7c03e4f539cd628e9827354670e259ba44a8762191aaa88a97e3c474d753ff0de
|
7
|
+
data.tar.gz: e857d78632c3055263d4ae6287ab30836752c28cdd41836f411a82f4b64119b1420a79447c5a042c2829d24b57eec040d14a1eb9d2705aacc70935612ce5d5f8
|
data/lib/graphiti_gql/version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti_gql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-08-01 00:00:00.000000000 Z
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '7.0'
|
111
|
-
description:
|
111
|
+
description:
|
112
112
|
email:
|
113
113
|
- richmolj@gmail.com
|
114
114
|
executables: []
|
@@ -124,7 +124,6 @@ files:
|
|
124
124
|
- LICENSE.txt
|
125
125
|
- README.md
|
126
126
|
- Rakefile
|
127
|
-
- app/controllers/graphiti_gql/execution_controller.rb
|
128
127
|
- bin/bundle
|
129
128
|
- bin/byebug
|
130
129
|
- bin/coderay
|
@@ -136,7 +135,6 @@ files:
|
|
136
135
|
- bin/rake
|
137
136
|
- bin/rspec
|
138
137
|
- bin/setup
|
139
|
-
- config/routes.rb
|
140
138
|
- graphiti_gql.gemspec
|
141
139
|
- lib/graphiti_gql.rb
|
142
140
|
- lib/graphiti_gql/active_resource.rb
|
@@ -171,7 +169,7 @@ licenses:
|
|
171
169
|
- MIT
|
172
170
|
metadata:
|
173
171
|
homepage_uri: https://www.graphiti.dev
|
174
|
-
post_install_message:
|
172
|
+
post_install_message:
|
175
173
|
rdoc_options: []
|
176
174
|
require_paths:
|
177
175
|
- lib
|
@@ -186,8 +184,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
184
|
- !ruby/object:Gem::Version
|
187
185
|
version: '0'
|
188
186
|
requirements: []
|
189
|
-
rubygems_version: 3.3.
|
190
|
-
signing_key:
|
187
|
+
rubygems_version: 3.0.3.1
|
188
|
+
signing_key:
|
191
189
|
specification_version: 4
|
192
190
|
summary: GraphQL support for Graphiti
|
193
191
|
test_files: []
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module GraphitiGql
|
2
|
-
class ExecutionController < GraphitiGql.config.application_controller
|
3
|
-
def execute
|
4
|
-
params = request.params # avoid strong_parameters
|
5
|
-
variables = params[:variables] || {}
|
6
|
-
result = GraphitiGql.run params[:query],
|
7
|
-
params[:variables],
|
8
|
-
graphql_context
|
9
|
-
render json: result
|
10
|
-
end
|
11
|
-
|
12
|
-
private
|
13
|
-
|
14
|
-
def default_context
|
15
|
-
defined?(:current_user)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|