graphiti_graphql 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphiti_graphql.rb +5 -1
- data/lib/graphiti_graphql/engine.rb +2 -1
- data/lib/graphiti_graphql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc07d6560d9c73767aca102d08c8c9f6b31fe09b8f3bb6db266a6566d8c3b50d
|
4
|
+
data.tar.gz: c51c68edca23ae65f7b3c0a6e7f45d9546442d619fcc76f97682dc24e0b01644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9338e7a088054719c0f80147587dff04ebc9320c77ccec823798436a6fa671b616d6df8c9970d64bba332254ee8b08f46a7ef380aea0087889f9592446c0b9e
|
7
|
+
data.tar.gz: 5cae58a969a23d6dcb0ee8b80a56af8d42eee6a7b0e6c16a6bba8d7b9d009bc78663cdb9e5520572d95c384a91df3e38b7f756a247c3f8b36697e16022ab8fda
|
data/lib/graphiti_graphql.rb
CHANGED
@@ -13,7 +13,7 @@ require "graphiti_graphql/util"
|
|
13
13
|
|
14
14
|
module GraphitiGraphQL
|
15
15
|
class Configuration
|
16
|
-
attr_accessor :schema_reloading
|
16
|
+
attr_accessor :schema_reloading, :federation_application_controller
|
17
17
|
|
18
18
|
def initialize
|
19
19
|
self.schema_reloading = true
|
@@ -74,6 +74,10 @@ module GraphitiGraphQL
|
|
74
74
|
@config ||= Configuration.new
|
75
75
|
end
|
76
76
|
|
77
|
+
def self.configure
|
78
|
+
yield config
|
79
|
+
end
|
80
|
+
|
77
81
|
def self.schemas
|
78
82
|
@schemas ||= SchemaProxy.new
|
79
83
|
end
|
@@ -64,8 +64,9 @@ module GraphitiGraphQL
|
|
64
64
|
end
|
65
65
|
|
66
66
|
initializer "graphiti_graphql.define_controller" do
|
67
|
+
app_controller = GraphitiGraphQL.config.federation_application_controller || ::ApplicationController
|
67
68
|
# rubocop:disable Lint/ConstantDefinitionInBlock(Standard)
|
68
|
-
class GraphitiGraphQL::ExecutionController <
|
69
|
+
class GraphitiGraphQL::ExecutionController < app_controller
|
69
70
|
register_exception Graphiti::Errors::UnreadableAttribute, message: true
|
70
71
|
def execute
|
71
72
|
params = request.params # avoid strong_parameters
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiti_graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphiti
|