rack-graphql 2.7.3 → 2.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e63c0a1197d43c113c369a837899d3bc514bee45b659f7e2c17115f66b2bb1c
4
- data.tar.gz: '03836932013ef2ed5fb44333306615c07b7a95dd9c6e78424dd3ede19b211fc3'
3
+ metadata.gz: d260febdd0e344f8d01c2c93ad67cb272060491c703ab3f6a3b7ba6ab7c11d7e
4
+ data.tar.gz: dd51708aea8edfeb2e24210ff695906d1256a59c1b6481eeefcbce66df759328
5
5
  SHA512:
6
- metadata.gz: c2d456be280fe79232a2121364df99e3a396bd35042b4bccdc2b70063761a6112c22eb6047d1e59b457aaf00d6e87b3d6b0499c21f2a646f5f9331ce4e2d14cd
7
- data.tar.gz: 78e68976644c01fb662e55ee0a3347da3568ba820315fad1f3b8f29962db68378fcaa30296fdfa626338e58f266ec42be7d0135fb312fe85d682cf4b107cfd3b
6
+ metadata.gz: 13c3eee68874f017afeab5820bb7b5bf25e29928fdb24b0c6aee630d849523668d71bed1d27f4d4ee81e38e4588351554501d457737b0826dafd3f55e5613aef
7
+ data.tar.gz: 41997bc6e9349814d8463e34dc26caeb5fd17842c5d7425e73ac8a61541822466372174ed0549f6bd9d68b99015b4b5ebef92db0e32bf6eb58c1acb299255131
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.3.5
1
+ 2.3.11
@@ -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,21 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.9.1 - 2022-04-02
4
+
5
+ - Test against ruby 3.1
6
+
7
+ ## 2.9.0 - 2022-03-14
8
+
9
+ - Drop graphql 1.x support
10
+
11
+ ## 2.8.0 - 2022-03-14
12
+
13
+ - Add ability to provide app run on root path
14
+
15
+ ## 2.7.3 - 2022-01-18
16
+
17
+ - Drop ruby 2.x support (3.0.0 is a minimal version)
18
+
3
19
  ## 2.7.0 - 2021-03-24
4
20
 
5
21
  - 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.7.3)
5
- graphql (~> 1.12)
4
+ rack-graphql (2.10.0)
5
+ graphql (>= 1.13)
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 (1.13.5)
16
+ graphql (2.0.6)
17
17
  method_source (1.0.0)
18
18
  oj (3.13.11)
19
- parallel (1.21.0)
20
- parser (3.1.0.0)
19
+ parallel (1.22.1)
20
+ parser (3.1.2.0)
21
21
  ast (~> 2.4.1)
22
22
  pry (0.14.1)
23
23
  coderay (~> 1.1)
@@ -27,41 +27,42 @@ GEM
27
27
  rack (>= 1.0, < 3)
28
28
  rainbow (3.1.1)
29
29
  rake (13.0.6)
30
- regexp_parser (2.2.0)
30
+ regexp_parser (2.3.0)
31
31
  rexml (3.2.5)
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.1)
37
- rspec-support (~> 3.10.0)
38
- rspec-expectations (3.10.1)
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.10.0)
41
- rspec-mocks (3.10.2)
40
+ rspec-support (~> 3.11.0)
41
+ rspec-mocks (3.11.1)
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.10.0)
44
- rspec-support (3.10.3)
45
- rubocop (1.24.1)
43
+ rspec-support (~> 3.11.0)
44
+ rspec-support (3.11.0)
45
+ rubocop (1.28.1)
46
46
  parallel (~> 1.10)
47
- parser (>= 3.0.0.0)
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.15.1, < 2.0)
51
+ rubocop-ast (>= 1.17.0, < 2.0)
52
52
  ruby-progressbar (~> 1.7)
53
53
  unicode-display_width (>= 1.4.0, < 3.0)
54
- rubocop-ast (1.15.1)
55
- parser (>= 3.0.1.1)
54
+ rubocop-ast (1.17.0)
55
+ parser (>= 3.1.1.0)
56
56
  rubocop-rake (0.6.0)
57
57
  rubocop (~> 1.0)
58
- rubocop-rspec (2.7.0)
58
+ rubocop-rspec (2.10.0)
59
59
  rubocop (~> 1.19)
60
60
  ruby-progressbar (1.11.0)
61
61
  unicode-display_width (2.1.0)
62
62
 
63
63
  PLATFORMS
64
64
  aarch64-linux-musl
65
+ ruby
65
66
  x86_64-darwin-18
66
67
  x86_64-darwin-19
67
68
  x86_64-darwin-20
@@ -81,4 +82,4 @@ DEPENDENCIES
81
82
  rubocop-rspec
82
83
 
83
84
  BUNDLED WITH
84
- 2.3.5
85
+ 2.3.10
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 health_on_root_path
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
@@ -1,3 +1,3 @@
1
1
  module RackGraphql
2
- VERSION = '2.7.3'.freeze
2
+ VERSION = '2.10.0'.freeze
3
3
  end
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 = '>= 2.6'
27
+ spec.required_ruby_version = '>= 3.0'
28
28
 
29
- spec.add_dependency 'graphql', '~> 1.12'
29
+ spec.add_dependency 'graphql', '>= 1.13'
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.7.3
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-01-18 00:00:00.000000000 Z
12
+ date: 2022-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: graphql
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '1.12'
20
+ version: '1.13'
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: '1.12'
27
+ version: '1.13'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: oj
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -228,14 +228,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
228
228
  requirements:
229
229
  - - ">="
230
230
  - !ruby/object:Gem::Version
231
- version: '2.6'
231
+ version: '3.0'
232
232
  required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
- rubygems_version: 3.2.32
238
+ rubygems_version: 3.3.7
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: Rack middleware implementing graphql endpoint.