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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 432533feee410a6ea882ec0362ff202b1c79f1bad917c1e24eb01fc83e4de147
4
- data.tar.gz: 2dda92eb996d6152538d4575fbe7c6e72c8afeff4a66e150a422e9c2c2cc131b
3
+ metadata.gz: fc07d6560d9c73767aca102d08c8c9f6b31fe09b8f3bb6db266a6566d8c3b50d
4
+ data.tar.gz: c51c68edca23ae65f7b3c0a6e7f45d9546442d619fcc76f97682dc24e0b01644
5
5
  SHA512:
6
- metadata.gz: 29d66aab18e94862648b6e1385ccb74503b17c80c6a8c745abc2adfe4d394c93869b2b8fb272cad98f053613defff9d3c37730c51881126ae295c31fc811c023
7
- data.tar.gz: badaf32c3b391fa21033fd0184b8785c607aa13837fbeeeef654f564f679267071e3a487d9dd1a1e8c7224b1f3b2b46006889456defa8cc6843abe470bb6586b
6
+ metadata.gz: a9338e7a088054719c0f80147587dff04ebc9320c77ccec823798436a6fa671b616d6df8c9970d64bba332254ee8b08f46a7ef380aea0087889f9592446c0b9e
7
+ data.tar.gz: 5cae58a969a23d6dcb0ee8b80a56af8d42eee6a7b0e6c16a6bba8d7b9d009bc78663cdb9e5520572d95c384a91df3e38b7f756a247c3f8b36697e16022ab8fda
@@ -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 < ::ApplicationController
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
@@ -1,3 +1,3 @@
1
1
  module GraphitiGraphQL
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-10 00:00:00.000000000 Z
11
+ date: 2021-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti