graphql_rails 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +89 -2
- data/docs/README.md +16 -0
- data/docs/_sidebar.md +2 -0
- data/docs/components/controller.md +113 -0
- data/docs/components/decorator.md +69 -0
- data/docs/components/model.md +75 -2
- data/docs/logging_and_monitoring/logging_and_monitoring.md +35 -0
- data/graphql_rails.gemspec +1 -0
- data/lib/graphql_rails/attributes/attributable.rb +5 -1
- data/lib/graphql_rails/attributes/attribute.rb +31 -4
- data/lib/graphql_rails/attributes/input_attribute.rb +14 -10
- data/lib/graphql_rails/attributes/input_type_parser.rb +84 -0
- data/lib/graphql_rails/attributes/type_name_info.rb +38 -0
- data/lib/graphql_rails/attributes/type_parser.rb +30 -28
- data/lib/graphql_rails/controller/action_configuration.rb +13 -7
- data/lib/graphql_rails/controller/configuration.rb +2 -0
- data/lib/graphql_rails/controller/log_controller_action.rb +66 -0
- data/lib/graphql_rails/controller.rb +26 -9
- data/lib/graphql_rails/decorator/relation_decorator.rb +79 -0
- data/lib/graphql_rails/decorator.rb +41 -0
- data/lib/graphql_rails/integrations/lograge.rb +39 -0
- data/lib/graphql_rails/integrations/sentry.rb +34 -0
- data/lib/graphql_rails/integrations.rb +19 -0
- data/lib/graphql_rails/model/configuration.rb +20 -7
- data/lib/graphql_rails/model/input.rb +1 -1
- data/lib/graphql_rails/model.rb +7 -0
- data/lib/graphql_rails/version.rb +1 -1
- data/lib/graphql_rails.rb +4 -0
- metadata +26 -2
data/lib/graphql_rails.rb
CHANGED
@@ -1,11 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'active_support/core_ext/module/delegation'
|
4
|
+
|
3
5
|
require 'graphql_rails/version'
|
4
6
|
require 'graphql_rails/model'
|
5
7
|
require 'graphql_rails/router'
|
6
8
|
require 'graphql_rails/controller'
|
7
9
|
require 'graphql_rails/attributes'
|
10
|
+
require 'graphql_rails/decorator'
|
8
11
|
|
9
12
|
# wonders starts here
|
10
13
|
module GraphqlRails
|
14
|
+
autoload :Integrations, 'graphql_rails/integrations'
|
11
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Povilas Jurčys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '5'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '5'
|
111
125
|
description:
|
112
126
|
email:
|
113
127
|
- po.jurcys@gmail.com
|
@@ -133,11 +147,13 @@ files:
|
|
133
147
|
- docs/README.md
|
134
148
|
- docs/_sidebar.md
|
135
149
|
- docs/components/controller.md
|
150
|
+
- docs/components/decorator.md
|
136
151
|
- docs/components/model.md
|
137
152
|
- docs/components/routes.md
|
138
153
|
- docs/getting_started/quick_start.md
|
139
154
|
- docs/getting_started/setup.md
|
140
155
|
- docs/index.html
|
156
|
+
- docs/logging_and_monitoring/logging_and_monitoring.md
|
141
157
|
- docs/testing/testing.md
|
142
158
|
- graphql_rails.gemspec
|
143
159
|
- lib/graphql_rails.rb
|
@@ -146,6 +162,8 @@ files:
|
|
146
162
|
- lib/graphql_rails/attributes/attribute.rb
|
147
163
|
- lib/graphql_rails/attributes/attribute_name_parser.rb
|
148
164
|
- lib/graphql_rails/attributes/input_attribute.rb
|
165
|
+
- lib/graphql_rails/attributes/input_type_parser.rb
|
166
|
+
- lib/graphql_rails/attributes/type_name_info.rb
|
149
167
|
- lib/graphql_rails/attributes/type_parser.rb
|
150
168
|
- lib/graphql_rails/controller.rb
|
151
169
|
- lib/graphql_rails/controller/action.rb
|
@@ -155,10 +173,16 @@ files:
|
|
155
173
|
- lib/graphql_rails/controller/configuration.rb
|
156
174
|
- lib/graphql_rails/controller/controller_function.rb
|
157
175
|
- lib/graphql_rails/controller/format_results.rb
|
176
|
+
- lib/graphql_rails/controller/log_controller_action.rb
|
158
177
|
- lib/graphql_rails/controller/request.rb
|
178
|
+
- lib/graphql_rails/decorator.rb
|
179
|
+
- lib/graphql_rails/decorator/relation_decorator.rb
|
159
180
|
- lib/graphql_rails/errors/error.rb
|
160
181
|
- lib/graphql_rails/errors/execution_error.rb
|
161
182
|
- lib/graphql_rails/errors/validation_error.rb
|
183
|
+
- lib/graphql_rails/integrations.rb
|
184
|
+
- lib/graphql_rails/integrations/lograge.rb
|
185
|
+
- lib/graphql_rails/integrations/sentry.rb
|
162
186
|
- lib/graphql_rails/model.rb
|
163
187
|
- lib/graphql_rails/model/build_enum_type.rb
|
164
188
|
- lib/graphql_rails/model/build_graphql_input_type.rb
|