rack-graphql 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/Gemfile.lock +1 -1
- data/README.md +7 -6
- data/lib/rack_graphql/version.rb +1 -1
- data/rack-graphql.gemspec +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96ec802b9de117754bdea93534b69eb47be05796d31ecc362d2c1ac32d4ab929
|
|
4
|
+
data.tar.gz: f87c56ccc52c047e35ebde5777e7a0ff171e61263c6e58fe1b7312be47e41561
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2637be8f7dc262397347f60d89133cbfb354c3943b7b2e16343bf2ec26cb2ffd127eedfb0a0d255cc29fadff3c02005373539e2325b300b655f000ad6f55dbac
|
|
7
|
+
data.tar.gz: 4edf965d3d98f562618479721323adffc7093bdb34efeba9e495af8157e3690855f82d3f0dbcd77b49e4cad38247fe3c43dd6dd14efd8a1282d306e1dd6ddb70
|
data/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## 2.3.0 - 2020-09-39
|
|
4
4
|
|
|
5
|
-
- Add `error_status_code_map` option to `RackGraphql::Application`.
|
|
5
|
+
- Add `error_status_code_map` option to `RackGraphql::Application`.
|
|
6
|
+
|
|
7
|
+
`error_status_code_map` allows for return custom http code when specific errors are raised.
|
|
6
8
|
|
|
7
9
|
## 2.2.1 - 2020-09-14
|
|
8
10
|
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -23,12 +23,13 @@ Add following to your `config.ru` file:
|
|
|
23
23
|
|
|
24
24
|
```ruby
|
|
25
25
|
run RackGraphql::Application.call(
|
|
26
|
-
schema: YourGraqphqlSchema,
|
|
27
|
-
app_name: 'your-service-name',
|
|
28
|
-
context_handler: YourGraphqlContextHandler,
|
|
29
|
-
log_exception_backtrace: !A9n.env.production?,
|
|
30
|
-
health_route: true,
|
|
31
|
-
logger: A9n.logger,
|
|
26
|
+
schema: YourGraqphqlSchema, # required
|
|
27
|
+
app_name: 'your-service-name', # optional, used for health endpoint content
|
|
28
|
+
context_handler: YourGraphqlContextHandler, # optional, empty `proc` by default
|
|
29
|
+
log_exception_backtrace: !A9n.env.production?, # optional, `true` default
|
|
30
|
+
health_route: true, # optional, true by default
|
|
31
|
+
logger: A9n.logger, # optional, not set by default
|
|
32
|
+
error_status_code_map: { IamTeapotError => 418 }, # optional
|
|
32
33
|
)
|
|
33
34
|
```
|
|
34
35
|
|
data/lib/rack_graphql/version.rb
CHANGED
data/rack-graphql.gemspec
CHANGED
|
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
|
|
15
15
|
spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/rack-graphql'
|
|
16
16
|
spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/rack-graphql'
|
|
17
|
+
spec.metadata['changelog_uri'] = 'https://github.com/RenoFi/rack-graphql/blob/master/CHANGELOG.md'
|
|
17
18
|
|
|
18
19
|
spec.files = Dir.chdir(__dir__) do
|
|
19
20
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rack-graphql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Krzysztof Knapik
|
|
@@ -216,6 +216,7 @@ licenses:
|
|
|
216
216
|
metadata:
|
|
217
217
|
homepage_uri: https://github.com/RenoFi/rack-graphql
|
|
218
218
|
source_code_uri: https://github.com/RenoFi/rack-graphql
|
|
219
|
+
changelog_uri: https://github.com/RenoFi/rack-graphql/blob/master/CHANGELOG.md
|
|
219
220
|
post_install_message:
|
|
220
221
|
rdoc_options: []
|
|
221
222
|
require_paths:
|