rack-graphql 2.7.1 → 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 +2 -4
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +27 -26
- data/README.md +1 -0
- data/lib/rack_graphql/application.rb +6 -1
- data/lib/rack_graphql/middleware.rb +1 -0
- data/lib/rack_graphql/version.rb +1 -1
- data/rack-graphql.gemspec +3 -2
- metadata +7 -6
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.
|
|
1
|
+
2.3.9
|
|
@@ -2,15 +2,13 @@
|
|
|
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:
|
|
11
9
|
runs-on: ubuntu-latest
|
|
12
10
|
steps:
|
|
13
|
-
- uses: hmarr/auto-approve-action@v2
|
|
11
|
+
- uses: hmarr/auto-approve-action@v2
|
|
14
12
|
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
|
|
15
13
|
with:
|
|
16
14
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
data/.github/workflows/ci.yml
CHANGED
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
|
|
|
@@ -12,12 +12,12 @@ GEM
|
|
|
12
12
|
ast (2.4.2)
|
|
13
13
|
awesome_print (1.9.2)
|
|
14
14
|
coderay (1.1.3)
|
|
15
|
-
diff-lcs (1.
|
|
16
|
-
graphql (
|
|
15
|
+
diff-lcs (1.5.0)
|
|
16
|
+
graphql (2.0.2)
|
|
17
17
|
method_source (1.0.0)
|
|
18
|
-
oj (3.13.
|
|
18
|
+
oj (3.13.11)
|
|
19
19
|
parallel (1.21.0)
|
|
20
|
-
parser (3.
|
|
20
|
+
parser (3.1.1.0)
|
|
21
21
|
ast (~> 2.4.1)
|
|
22
22
|
pry (0.14.1)
|
|
23
23
|
coderay (~> 1.1)
|
|
@@ -25,37 +25,37 @@ GEM
|
|
|
25
25
|
rack (2.2.3)
|
|
26
26
|
rack-test (1.1.0)
|
|
27
27
|
rack (>= 1.0, < 3)
|
|
28
|
-
rainbow (3.
|
|
28
|
+
rainbow (3.1.1)
|
|
29
29
|
rake (13.0.6)
|
|
30
|
-
regexp_parser (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)
|
|
@@ -65,6 +65,7 @@ PLATFORMS
|
|
|
65
65
|
x86_64-darwin-18
|
|
66
66
|
x86_64-darwin-19
|
|
67
67
|
x86_64-darwin-20
|
|
68
|
+
x86_64-darwin-21
|
|
68
69
|
x86_64-linux
|
|
69
70
|
|
|
70
71
|
DEPENDENCIES
|
|
@@ -80,4 +81,4 @@ DEPENDENCIES
|
|
|
80
81
|
rubocop-rspec
|
|
81
82
|
|
|
82
83
|
BUNDLED WITH
|
|
83
|
-
2.
|
|
84
|
+
2.3.5
|
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
|
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
|
|
|
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
17
|
spec.metadata['changelog_uri'] = 'https://github.com/RenoFi/rack-graphql/blob/master/CHANGELOG.md'
|
|
18
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
18
19
|
|
|
19
20
|
spec.files = Dir.chdir(__dir__) do
|
|
20
21
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
|
|
@@ -23,9 +24,9 @@ Gem::Specification.new do |spec|
|
|
|
23
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
24
25
|
spec.require_paths = ['lib']
|
|
25
26
|
|
|
26
|
-
spec.required_ruby_version = '>=
|
|
27
|
+
spec.required_ruby_version = '>= 3.0'
|
|
27
28
|
|
|
28
|
-
spec.add_dependency 'graphql', '~>
|
|
29
|
+
spec.add_dependency 'graphql', '~> 2.0'
|
|
29
30
|
spec.add_dependency 'oj'
|
|
30
31
|
spec.add_dependency 'rack', '~> 2.2'
|
|
31
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:
|
|
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
|
|
@@ -219,6 +219,7 @@ metadata:
|
|
|
219
219
|
homepage_uri: https://github.com/RenoFi/rack-graphql
|
|
220
220
|
source_code_uri: https://github.com/RenoFi/rack-graphql
|
|
221
221
|
changelog_uri: https://github.com/RenoFi/rack-graphql/blob/master/CHANGELOG.md
|
|
222
|
+
rubygems_mfa_required: 'true'
|
|
222
223
|
post_install_message:
|
|
223
224
|
rdoc_options: []
|
|
224
225
|
require_paths:
|
|
@@ -227,14 +228,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
227
228
|
requirements:
|
|
228
229
|
- - ">="
|
|
229
230
|
- !ruby/object:Gem::Version
|
|
230
|
-
version: '
|
|
231
|
+
version: '3.0'
|
|
231
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
233
|
requirements:
|
|
233
234
|
- - ">="
|
|
234
235
|
- !ruby/object:Gem::Version
|
|
235
236
|
version: '0'
|
|
236
237
|
requirements: []
|
|
237
|
-
rubygems_version: 3.2.
|
|
238
|
+
rubygems_version: 3.2.32
|
|
238
239
|
signing_key:
|
|
239
240
|
specification_version: 4
|
|
240
241
|
summary: Rack middleware implementing graphql endpoint.
|