rack-graphql 2.7.1 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e93e42e089512fb66fd31d4ee5927904e795b98729b7e61819c85062d1bbe05d
4
- data.tar.gz: 01156f4ddac5d400a610aedb10eba7cf7b15f35ae54b2379e5a3cee812128c68
3
+ metadata.gz: 0fa34c46d4c206474d4c53cbb76e0333d7c3f8ccfc6e043ef50dcde76f4b0986
4
+ data.tar.gz: 4c88746ab21186b8970d16d0a420914330add933ad538efe6c245e6f48e2e451
5
5
  SHA512:
6
- metadata.gz: 19716823cf60ebd465c7c9d7927f2b03bc54c0c07e0ffe14105548af9effd090f5ae98df3a50efbf6bd59a54d1823181c6e5669accf5ef291e1a28850d7b4e42
7
- data.tar.gz: 60b7edf7e00f84c5f83a7d10f03706660a5dd9b9e95dd3954b2e405c72814c10950c375bbfad2ac2e71043aa7cb79b6f5cfa34fea17949d1638d8e6c5185ab91
6
+ metadata.gz: 8bde586226fd204181dff6d644b7f001078ab97276c7b4dc0764030f10b5c1594c919f5e9a190cd12ed50e35029deed52c93c57943e71a64d56f36f5359f8e0f
7
+ data.tar.gz: ce8cf8f09698795487eb11df9ba9b6f562fd38e6e871d907485cb5f8d08a5e71f45415683498e61889615bf6a91ed7dcee9fd058b3f13553b38f89c6326ec98a
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.2.29
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.0.0
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 }}"
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['2.7', '3.0']
14
+ ruby-version: ['3.0']
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v2
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.7.1)
5
- graphql (~> 1.12)
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.4.4)
16
- graphql (1.12.17)
15
+ diff-lcs (1.5.0)
16
+ graphql (2.0.2)
17
17
  method_source (1.0.0)
18
- oj (3.13.9)
18
+ oj (3.13.11)
19
19
  parallel (1.21.0)
20
- parser (3.0.2.0)
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.0.0)
28
+ rainbow (3.1.1)
29
29
  rake (13.0.6)
30
- regexp_parser (2.1.1)
30
+ regexp_parser (2.2.1)
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.0)
42
42
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.10.0)
44
- rspec-support (3.10.2)
45
- rubocop (1.22.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.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.12.0, < 2.0)
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.12.0)
55
- parser (>= 3.0.1.1)
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.5.0)
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.2.29
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 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
@@ -178,6 +178,7 @@ module RackGraphql
178
178
 
179
179
  def log(message)
180
180
  return unless logger
181
+
181
182
  logger.debug("[rack-graphql] #{message}")
182
183
  end
183
184
 
@@ -1,3 +1,3 @@
1
1
  module RackGraphql
2
- VERSION = '2.7.1'.freeze
2
+ VERSION = '2.9.0'.freeze
3
3
  end
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 = '>= 2.6'
27
+ spec.required_ruby_version = '>= 3.0'
27
28
 
28
- spec.add_dependency 'graphql', '~> 1.12'
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.7.1
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: 2021-10-17 00:00:00.000000000 Z
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: '1.12'
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: '1.12'
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: '2.6'
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.23
238
+ rubygems_version: 3.2.32
238
239
  signing_key:
239
240
  specification_version: 4
240
241
  summary: Rack middleware implementing graphql endpoint.