rack-graphql 2.7.3 → 2.9.0
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/.bundler-version +1 -1
- data/.github/workflows/auto-approve.yml +1 -3
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +22 -22
- data/README.md +1 -0
- data/lib/rack_graphql/application.rb +6 -1
- data/lib/rack_graphql/version.rb +1 -1
- data/rack-graphql.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fa34c46d4c206474d4c53cbb76e0333d7c3f8ccfc6e043ef50dcde76f4b0986
|
|
4
|
+
data.tar.gz: 4c88746ab21186b8970d16d0a420914330add933ad538efe6c245e6f48e2e451
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bde586226fd204181dff6d644b7f001078ab97276c7b4dc0764030f10b5c1594c919f5e9a190cd12ed50e35029deed52c93c57943e71a64d56f36f5359f8e0f
|
|
7
|
+
data.tar.gz: ce8cf8f09698795487eb11df9ba9b6f562fd38e6e871d907485cb5f8d08a5e71f45415683498e61889615bf6a91ed7dcee9fd058b3f13553b38f89c6326ec98a
|
data/.bundler-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.3.
|
|
1
|
+
2.3.9
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
# this will allow Dependabot to automatically merge dependency update PRs where CI passes
|
|
3
3
|
# from: https://github.com/hmarr/auto-approve-action
|
|
4
4
|
name: Auto approve dependency upgrades PRs
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
pull_request
|
|
5
|
+
on: pull_request_target
|
|
8
6
|
|
|
9
7
|
jobs:
|
|
10
8
|
auto-approve:
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 2.9.0 - 2022-03-14
|
|
4
|
+
|
|
5
|
+
- Drop graphql 1.x support
|
|
6
|
+
|
|
7
|
+
## 2.8.0 - 2022-03-14
|
|
8
|
+
|
|
9
|
+
- Add ability to provide app run on root path
|
|
10
|
+
|
|
11
|
+
## 2.7.3 - 2022-01-18
|
|
12
|
+
|
|
13
|
+
- Drop ruby 2.x support (3.0.0 is a minimal version)
|
|
14
|
+
|
|
3
15
|
## 2.7.0 - 2021-03-24
|
|
4
16
|
|
|
5
17
|
- Add ability to skip setting up health endpoint on root path with `health_on_root_path` option.
|
data/Gemfile.lock
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rack-graphql (2.
|
|
5
|
-
graphql (~>
|
|
4
|
+
rack-graphql (2.9.0)
|
|
5
|
+
graphql (~> 2.0)
|
|
6
6
|
oj
|
|
7
7
|
rack (~> 2.2)
|
|
8
8
|
|
|
@@ -13,11 +13,11 @@ GEM
|
|
|
13
13
|
awesome_print (1.9.2)
|
|
14
14
|
coderay (1.1.3)
|
|
15
15
|
diff-lcs (1.5.0)
|
|
16
|
-
graphql (
|
|
16
|
+
graphql (2.0.2)
|
|
17
17
|
method_source (1.0.0)
|
|
18
18
|
oj (3.13.11)
|
|
19
19
|
parallel (1.21.0)
|
|
20
|
-
parser (3.1.
|
|
20
|
+
parser (3.1.1.0)
|
|
21
21
|
ast (~> 2.4.1)
|
|
22
22
|
pry (0.14.1)
|
|
23
23
|
coderay (~> 1.1)
|
|
@@ -27,35 +27,35 @@ GEM
|
|
|
27
27
|
rack (>= 1.0, < 3)
|
|
28
28
|
rainbow (3.1.1)
|
|
29
29
|
rake (13.0.6)
|
|
30
|
-
regexp_parser (2.2.
|
|
30
|
+
regexp_parser (2.2.1)
|
|
31
31
|
rexml (3.2.5)
|
|
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.11.0)
|
|
33
|
+
rspec-core (~> 3.11.0)
|
|
34
|
+
rspec-expectations (~> 3.11.0)
|
|
35
|
+
rspec-mocks (~> 3.11.0)
|
|
36
|
+
rspec-core (3.11.0)
|
|
37
|
+
rspec-support (~> 3.11.0)
|
|
38
|
+
rspec-expectations (3.11.0)
|
|
39
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
40
|
-
rspec-support (~> 3.
|
|
41
|
-
rspec-mocks (3.
|
|
40
|
+
rspec-support (~> 3.11.0)
|
|
41
|
+
rspec-mocks (3.11.0)
|
|
42
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
43
|
-
rspec-support (~> 3.
|
|
44
|
-
rspec-support (3.
|
|
45
|
-
rubocop (1.
|
|
43
|
+
rspec-support (~> 3.11.0)
|
|
44
|
+
rspec-support (3.11.0)
|
|
45
|
+
rubocop (1.26.0)
|
|
46
46
|
parallel (~> 1.10)
|
|
47
|
-
parser (>= 3.
|
|
47
|
+
parser (>= 3.1.0.0)
|
|
48
48
|
rainbow (>= 2.2.2, < 4.0)
|
|
49
49
|
regexp_parser (>= 1.8, < 3.0)
|
|
50
50
|
rexml
|
|
51
|
-
rubocop-ast (>= 1.
|
|
51
|
+
rubocop-ast (>= 1.16.0, < 2.0)
|
|
52
52
|
ruby-progressbar (~> 1.7)
|
|
53
53
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
54
|
-
rubocop-ast (1.
|
|
55
|
-
parser (>= 3.
|
|
54
|
+
rubocop-ast (1.16.0)
|
|
55
|
+
parser (>= 3.1.1.0)
|
|
56
56
|
rubocop-rake (0.6.0)
|
|
57
57
|
rubocop (~> 1.0)
|
|
58
|
-
rubocop-rspec (2.
|
|
58
|
+
rubocop-rspec (2.9.0)
|
|
59
59
|
rubocop (~> 1.19)
|
|
60
60
|
ruby-progressbar (1.11.0)
|
|
61
61
|
unicode-display_width (2.1.0)
|
data/README.md
CHANGED
|
@@ -30,6 +30,7 @@ run RackGraphql::Application.call(
|
|
|
30
30
|
# `true` when `RACK_GRAPHQL_LOG_EXCEPTION_BACKTRACE` env var is set to `'1'` or `'true'`
|
|
31
31
|
health_route: true, # optional, true by default
|
|
32
32
|
health_on_root_path: health_route, # optional, health_route value by default (mind map '/' is covering '/any/path-123')
|
|
33
|
+
root_path_app: YourDashboardApp, # optional
|
|
33
34
|
logger: A9n.logger, # optional, not set by default
|
|
34
35
|
error_status_code_map: { IamTeapotError => 418 }, # optional
|
|
35
36
|
re_raise_exceptions: true, # optional, false by default
|
|
@@ -10,6 +10,7 @@ module RackGraphql
|
|
|
10
10
|
health_route: true,
|
|
11
11
|
health_response_builder: RackGraphql::HealthResponseBuilder,
|
|
12
12
|
health_on_root_path: health_route,
|
|
13
|
+
root_path_app: nil,
|
|
13
14
|
error_status_code_map: {}
|
|
14
15
|
)
|
|
15
16
|
|
|
@@ -36,7 +37,11 @@ module RackGraphql
|
|
|
36
37
|
end
|
|
37
38
|
end
|
|
38
39
|
|
|
39
|
-
if
|
|
40
|
+
if root_path_app
|
|
41
|
+
map '/' do
|
|
42
|
+
run root_path_app
|
|
43
|
+
end
|
|
44
|
+
elsif health_on_root_path
|
|
40
45
|
map '/' do
|
|
41
46
|
run ->(env) { health_response_builder.new(app_name: app_name, env: env).build }
|
|
42
47
|
end
|
data/lib/rack_graphql/version.rb
CHANGED
data/rack-graphql.gemspec
CHANGED
|
@@ -24,9 +24,9 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
25
25
|
spec.require_paths = ['lib']
|
|
26
26
|
|
|
27
|
-
spec.required_ruby_version = '>=
|
|
27
|
+
spec.required_ruby_version = '>= 3.0'
|
|
28
28
|
|
|
29
|
-
spec.add_dependency 'graphql', '~>
|
|
29
|
+
spec.add_dependency 'graphql', '~> 2.0'
|
|
30
30
|
spec.add_dependency 'oj'
|
|
31
31
|
spec.add_dependency 'rack', '~> 2.2'
|
|
32
32
|
|
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.9.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: 2022-
|
|
12
|
+
date: 2022-03-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: graphql
|
|
@@ -17,14 +17,14 @@ dependencies:
|
|
|
17
17
|
requirements:
|
|
18
18
|
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '
|
|
20
|
+
version: '2.0'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
25
|
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: '
|
|
27
|
+
version: '2.0'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: oj
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -228,7 +228,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
228
228
|
requirements:
|
|
229
229
|
- - ">="
|
|
230
230
|
- !ruby/object:Gem::Version
|
|
231
|
-
version: '
|
|
231
|
+
version: '3.0'
|
|
232
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
233
233
|
requirements:
|
|
234
234
|
- - ">="
|