graphiti_graphql 0.1.0 → 0.1.1

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: e0393f405900a890b0875cf64d93bb60a0f8a0c2ef52d3536a6faacb0f0d1ca0
4
- data.tar.gz: 878b11ef0e004c8b5559ee1c09dd2a325f464184cbd2d328f73b46bb1c92f968
3
+ metadata.gz: f3636c8634e8e8798b5faa86fed69735c02be79903ecca7f4fb09418786756f1
4
+ data.tar.gz: 6ce1f38785202d1fb6972152731ef5f535fd4f3514f8996eb60f1abc13431ea0
5
5
  SHA512:
6
- metadata.gz: 0752a653316c694d9382f0ba4c05e9a0421c8cb77e2fd536413efa9efd0add4e97593135cdb833e26a3e65b1faef41f51cedcc01517592a35e69cafb1ccde555
7
- data.tar.gz: f3be55e066cef1d8cd79e3d8711b4bc914fb911751f95564ea084ea2f00846d946d198bb5306e140e2f645a526848c984d9723b17d813ca743c732c5f328b5e4
6
+ metadata.gz: 45796a4cde424e1fcec4d8eef45238fb52d4fb4d0980c067dbd8321a9dd1b9e3f5d487a3125d9fe0b50bb0d2a452bf79520e5cee4438ee7f31da229c51b70e98
7
+ data.tar.gz: c1f7707ea8591be326b7a371b797bd15a969cdf5c115e35892966c310dcb75be656d4a81b408b6c72d83a192a3d0dc69042b91a6006d3220b9fa31a8134eb004
@@ -1,5 +1,7 @@
1
1
  require "active_support/core_ext/object/json"
2
2
 
3
+ require "graphql"
4
+ require "graphiti"
3
5
  require "graphiti_graphql/version"
4
6
  require "graphiti_graphql/graphiti_schema/wrapper"
5
7
  require "graphiti_graphql/graphiti_schema/sideload"
@@ -51,8 +51,10 @@ module GraphitiGraphQL
51
51
  # We store a list of all federated relationships
52
52
  # Clear that list when classes are cleared so we don't keep appending
53
53
  initializer "graphiti_graphql.clear_federation" do |app|
54
- GraphitiGraphQL::Engine.reloader_class.after_class_unload do
55
- GraphitiGraphQL::Federation.clear!
54
+ if defined?(GraphitiGraphQL::Federation)
55
+ GraphitiGraphQL::Engine.reloader_class.after_class_unload do
56
+ GraphitiGraphQL::Federation.clear!
57
+ end
56
58
  end
57
59
  end
58
60
 
@@ -83,7 +85,9 @@ module GraphitiGraphQL
83
85
  end
84
86
 
85
87
  initializer "graphiti_graphql.federation" do
86
- GraphitiGraphQL::Federation.setup!
88
+ if defined?(GraphitiGraphQL::Federation)
89
+ GraphitiGraphQL::Federation.setup!
90
+ end
87
91
  end
88
92
  end
89
93
  end
@@ -3,6 +3,7 @@ module GraphitiGraphQL
3
3
  GQL_TYPE_MAP = {
4
4
  integer_id: String,
5
5
  string: String,
6
+ uuid: String,
6
7
  integer: Integer,
7
8
  float: Float,
8
9
  boolean: GraphQL::Schema::Member::GraphQLTypeNames::Boolean,
@@ -1,3 +1,3 @@
1
1
  module GraphitiGraphQL
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.0
4
+ version: 0.1.1
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-02-28 00:00:00.000000000 Z
11
+ date: 2021-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport