rack-graphql 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/auto-merge.yml +19 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +26 -25
- data/README.md +2 -1
- data/lib/rack_graphql.rb +7 -3
- data/lib/rack_graphql/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc3ae3d43695a7a533d43610adbc28395dcba6b2c53e7c1811402c98599c74bc
|
4
|
+
data.tar.gz: d0fa5477c6fc8006337dd5653f13fb9b486d79e019b24fd58956dc24867d4d71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4510a840bcc8450fb96ce824118fe9908bec545da22222484f32f1ca061b68a502c9fb30a5041f05e521c16dbd7c4f2241dec2ccb6e649c727b7c3ebf1ac36
|
7
|
+
data.tar.gz: f423c41a32de086c507006b5b2bea6c557931ce329505b25649dc09a93b6d2c1695c052f553f0fd699c53a2f9a16e6c863b2c5b0af62af6a304e114f0944d626
|
@@ -0,0 +1,19 @@
|
|
1
|
+
name: automerge
|
2
|
+
on:
|
3
|
+
pull_request_review:
|
4
|
+
types:
|
5
|
+
- submitted
|
6
|
+
check_suite:
|
7
|
+
types:
|
8
|
+
- completed
|
9
|
+
status: {}
|
10
|
+
jobs:
|
11
|
+
automerge:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
steps:
|
14
|
+
- name: automerge
|
15
|
+
uses: "pascalgn/automerge-action@v0.11.0"
|
16
|
+
env:
|
17
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
18
|
+
MERGE_METHOD: squash
|
19
|
+
MERGE_DELETE_BRANCH: true
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rack-graphql (2.
|
4
|
+
rack-graphql (2.5.0)
|
5
5
|
graphql (~> 1.11)
|
6
6
|
oj
|
7
7
|
rack (~> 2.2)
|
@@ -13,11 +13,11 @@ GEM
|
|
13
13
|
awesome_print (1.8.0)
|
14
14
|
coderay (1.1.3)
|
15
15
|
diff-lcs (1.4.4)
|
16
|
-
graphql (1.11.
|
16
|
+
graphql (1.11.6)
|
17
17
|
method_source (1.0.0)
|
18
|
-
oj (3.10.
|
19
|
-
parallel (1.
|
20
|
-
parser (2.7.
|
18
|
+
oj (3.10.16)
|
19
|
+
parallel (1.20.0)
|
20
|
+
parser (2.7.2.0)
|
21
21
|
ast (~> 2.4.1)
|
22
22
|
pry (0.13.1)
|
23
23
|
coderay (~> 1.1)
|
@@ -27,37 +27,38 @@ GEM
|
|
27
27
|
rack (>= 1.0, < 3)
|
28
28
|
rainbow (3.0.0)
|
29
29
|
rake (13.0.1)
|
30
|
-
regexp_parser (1.8.
|
30
|
+
regexp_parser (1.8.2)
|
31
31
|
rexml (3.2.4)
|
32
|
-
rspec (3.
|
33
|
-
rspec-core (~> 3.
|
34
|
-
rspec-expectations (~> 3.
|
35
|
-
rspec-mocks (~> 3.
|
36
|
-
rspec-core (3.
|
37
|
-
rspec-support (~> 3.
|
38
|
-
rspec-expectations (3.
|
32
|
+
rspec (3.10.0)
|
33
|
+
rspec-core (~> 3.10.0)
|
34
|
+
rspec-expectations (~> 3.10.0)
|
35
|
+
rspec-mocks (~> 3.10.0)
|
36
|
+
rspec-core (3.10.0)
|
37
|
+
rspec-support (~> 3.10.0)
|
38
|
+
rspec-expectations (3.10.0)
|
39
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
-
rspec-support (~> 3.
|
41
|
-
rspec-mocks (3.
|
40
|
+
rspec-support (~> 3.10.0)
|
41
|
+
rspec-mocks (3.10.0)
|
42
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
-
rspec-support (~> 3.
|
44
|
-
rspec-support (3.
|
45
|
-
rubocop (
|
43
|
+
rspec-support (~> 3.10.0)
|
44
|
+
rspec-support (3.10.0)
|
45
|
+
rubocop (1.3.1)
|
46
46
|
parallel (~> 1.10)
|
47
47
|
parser (>= 2.7.1.5)
|
48
48
|
rainbow (>= 2.2.2, < 4.0)
|
49
|
-
regexp_parser (>= 1.
|
49
|
+
regexp_parser (>= 1.8)
|
50
50
|
rexml
|
51
|
-
rubocop-ast (>=
|
51
|
+
rubocop-ast (>= 1.1.1)
|
52
52
|
ruby-progressbar (~> 1.7)
|
53
53
|
unicode-display_width (>= 1.4.0, < 2.0)
|
54
|
-
rubocop-ast (
|
54
|
+
rubocop-ast (1.1.1)
|
55
55
|
parser (>= 2.7.1.5)
|
56
|
-
rubocop-performance (1.
|
57
|
-
rubocop (>= 0.
|
56
|
+
rubocop-performance (1.9.0)
|
57
|
+
rubocop (>= 0.90.0, < 2.0)
|
58
58
|
rubocop-ast (>= 0.4.0)
|
59
|
-
rubocop-rspec (
|
60
|
-
rubocop (~> 0
|
59
|
+
rubocop-rspec (2.0.0)
|
60
|
+
rubocop (~> 1.0)
|
61
|
+
rubocop-ast (>= 1.1.0)
|
61
62
|
ruby-progressbar (1.10.1)
|
62
63
|
unicode-display_width (1.7.0)
|
63
64
|
|
data/README.md
CHANGED
@@ -26,7 +26,8 @@ run RackGraphql::Application.call(
|
|
26
26
|
schema: YourGraqphqlSchema, # required
|
27
27
|
app_name: 'your-service-name', # optional, used for health endpoint content
|
28
28
|
context_handler: YourGraphqlContextHandler, # optional, empty `proc` by default
|
29
|
-
log_exception_backtrace: !A9n.env.production?, # optional, `
|
29
|
+
log_exception_backtrace: !A9n.env.production?, # optional, `false` default
|
30
|
+
# `true` when `RACK_GRAPHQL_LOG_EXCEPTION_BACKTRACE` env var is set to `'1'` or `'true'`
|
30
31
|
health_route: true, # optional, true by default
|
31
32
|
logger: A9n.logger, # optional, not set by default
|
32
33
|
error_status_code_map: { IamTeapotError => 418 }, # optional
|
data/lib/rack_graphql.rb
CHANGED
@@ -10,8 +10,12 @@ require 'rack_graphql/application'
|
|
10
10
|
|
11
11
|
module RackGraphql
|
12
12
|
class << self
|
13
|
-
|
14
|
-
|
13
|
+
def log_exception_backtrace
|
14
|
+
return @log_exception_backtrace unless @log_exception_backtrace.nil?
|
15
|
+
|
16
|
+
%w[1 true].include?(ENV['RACK_GRAPHQL_LOG_EXCEPTION_BACKTRACE'].to_s)
|
17
|
+
end
|
15
18
|
|
16
|
-
|
19
|
+
attr_writer :log_exception_backtrace
|
20
|
+
end
|
17
21
|
end
|
data/lib/rack_graphql/version.rb
CHANGED
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.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Knapik
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-11-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphql
|
@@ -193,6 +193,7 @@ files:
|
|
193
193
|
- ".github/ISSUE_TEMPLATE/story.md"
|
194
194
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
195
195
|
- ".github/workflows/auto-approve.yml"
|
196
|
+
- ".github/workflows/auto-merge.yml"
|
196
197
|
- ".gitignore"
|
197
198
|
- ".rspec"
|
198
199
|
- ".travis.yml"
|
@@ -232,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
233
|
- !ruby/object:Gem::Version
|
233
234
|
version: '0'
|
234
235
|
requirements: []
|
235
|
-
rubygems_version: 3.1.
|
236
|
+
rubygems_version: 3.1.4
|
236
237
|
signing_key:
|
237
238
|
specification_version: 4
|
238
239
|
summary: Rack middleware implementing graphql endpoint.
|