graphiti_graphql 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -11
- data/README.md +2 -0
- data/lib/graphiti_graphql/engine.rb +11 -9
- data/lib/graphiti_graphql/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06b6392e0c336de1983a2b40f69a748942e424b85adb20c4e64cbe581eb88ee0
|
4
|
+
data.tar.gz: f2d1aed4a0aba07bc3bf2279659011f0da8d33f509a325df5935c6e8500e384c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: befa7b4bdbf8389aeca15592942b72d4904f65e59bb00873e3a17a8d95eef3da70ce2001c80dd9c6863778edef485feeb9c62969047a8aea2972bf1f680cd550
|
7
|
+
data.tar.gz: 83d7689197e18b71c1b140ff1cf09b48fb7e6d950cc1b72187e33b38bba23e5d01ff5526c93cd19c9410ea7adf6bc5d19d3fba06aef1d2a993f47e1758de6bac
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
graphiti_graphql (0.1.
|
4
|
+
graphiti_graphql (0.1.15)
|
5
5
|
activesupport (>= 4.1)
|
6
6
|
graphiti (~> 1.3)
|
7
7
|
graphql (~> 1.12)
|
@@ -23,14 +23,14 @@ GEM
|
|
23
23
|
ast (2.4.2)
|
24
24
|
byebug (11.1.3)
|
25
25
|
coderay (1.1.3)
|
26
|
-
concurrent-ruby (1.1.
|
26
|
+
concurrent-ruby (1.1.10)
|
27
27
|
diff-lcs (1.4.4)
|
28
|
-
dry-configurable (0.
|
28
|
+
dry-configurable (0.15.0)
|
29
29
|
concurrent-ruby (~> 1.0)
|
30
|
-
dry-core (~> 0.
|
31
|
-
dry-container (0.
|
30
|
+
dry-core (~> 0.6)
|
31
|
+
dry-container (0.9.0)
|
32
32
|
concurrent-ruby (~> 1.0)
|
33
|
-
dry-configurable (~> 0.
|
33
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
34
34
|
dry-core (0.7.1)
|
35
35
|
concurrent-ruby (~> 1.0)
|
36
36
|
dry-inflector (0.2.1)
|
@@ -44,8 +44,8 @@ GEM
|
|
44
44
|
dry-inflector (~> 0.1, >= 0.1.2)
|
45
45
|
dry-logic (~> 1.0, >= 1.0.2)
|
46
46
|
google-protobuf (3.17.3)
|
47
|
-
graphiti (1.3.
|
48
|
-
activesupport (>=
|
47
|
+
graphiti (1.3.6)
|
48
|
+
activesupport (>= 5.2)
|
49
49
|
concurrent-ruby (~> 1.0)
|
50
50
|
dry-types (>= 0.15.0, < 2.0)
|
51
51
|
graphiti_errors (~> 1.1.0)
|
@@ -60,13 +60,13 @@ GEM
|
|
60
60
|
graphql-batch (0.4.3)
|
61
61
|
graphql (>= 1.3, < 2)
|
62
62
|
promise.rb (~> 0.7.2)
|
63
|
-
i18n (1.
|
63
|
+
i18n (1.10.0)
|
64
64
|
concurrent-ruby (~> 1.0)
|
65
65
|
jsonapi-renderer (0.2.2)
|
66
66
|
jsonapi-serializable (0.3.1)
|
67
67
|
jsonapi-renderer (~> 0.2.0)
|
68
68
|
method_source (1.0.0)
|
69
|
-
minitest (5.
|
69
|
+
minitest (5.15.0)
|
70
70
|
parallel (1.20.1)
|
71
71
|
parser (3.0.2.0)
|
72
72
|
ast (~> 2.4.1)
|
@@ -117,7 +117,7 @@ GEM
|
|
117
117
|
tzinfo (2.0.4)
|
118
118
|
concurrent-ruby (~> 1.0)
|
119
119
|
unicode-display_width (2.0.0)
|
120
|
-
zeitwerk (2.4
|
120
|
+
zeitwerk (2.5.4)
|
121
121
|
|
122
122
|
PLATFORMS
|
123
123
|
ruby
|
data/README.md
CHANGED
@@ -21,7 +21,8 @@ module GraphitiGraphQL
|
|
21
21
|
case Rails::VERSION::MAJOR
|
22
22
|
when 4 then ActionDispatch::Reloader
|
23
23
|
when 5 then ActiveSupport::Reloader
|
24
|
-
|
24
|
+
else
|
25
|
+
::Rails.application.reloader
|
25
26
|
end
|
26
27
|
end
|
27
28
|
|
@@ -64,15 +65,16 @@ module GraphitiGraphQL
|
|
64
65
|
end
|
65
66
|
|
66
67
|
initializer "graphiti_graphql.define_controller" do
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
68
|
+
require "#{Rails.root}/app/controllers/application_controller"
|
69
|
+
app_controller = GraphitiGraphQL.config.federation_application_controller || ::ApplicationController
|
70
|
+
# rubocop:disable Lint/ConstantDefinitionInBlock(Standard)
|
71
|
+
class GraphitiGraphQL::ExecutionController < app_controller
|
72
|
+
register_exception Graphiti::Errors::UnreadableAttribute, message: true
|
73
|
+
def execute
|
74
|
+
params = request.params # avoid strong_parameters
|
75
|
+
render json: Graphiti.gql(params[:query], params[:variables])
|
75
76
|
end
|
77
|
+
end
|
76
78
|
end
|
77
79
|
|
78
80
|
initializer "graphiti_graphql.federation" do
|
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.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lee Richmond
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphiti
|
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
274
274
|
- !ruby/object:Gem::Version
|
275
275
|
version: '0'
|
276
276
|
requirements: []
|
277
|
-
rubygems_version: 3.
|
277
|
+
rubygems_version: 3.3.7
|
278
278
|
signing_key:
|
279
279
|
specification_version: 4
|
280
280
|
summary: GraphQL support for Graphiti
|