rack-graphql 2.0.0.rc → 2.0.0.rc2

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: 1075eb9d4a87a4e94b555c8b7f60a6a36c8369b2ff0d60a8e7be9db675f47494
4
- data.tar.gz: ae1137154106d644ee012734ed0d5d21ac11412fb55a4ba12394bdc26e57b873
3
+ metadata.gz: 404f5193946ee5d9dabc5aeedd7a36506a3594ccedca888e38b3f9abc4a25929
4
+ data.tar.gz: 9f702646a34bbc872cf74fd4889049b0258b9a6c0ec159b4f18e75d79b3f3e2c
5
5
  SHA512:
6
- metadata.gz: 2eeb4e9eed9cf0030651c30d6ef16bb53f14ece2cf2f94c36f162d13d3732fe53e699e64b59d2d807b2d64386453d21627f3f718a50db99e10ab74f1fa2c9c20
7
- data.tar.gz: efe2f531123d657e2480a08f4d0b898d9cda4fea50bbe9422faaeb4fc0d4d3ddec13c93c54c4aae5a9792d7bece88652cb35bdeca82bfdbdf315f6c9df724427
6
+ metadata.gz: 1b9293e01c37cfc1a2c459b7d022793f422c8004bc505378faf88dff831325599bb8b4d4f2c095d7f9665ff94624e79cb0adbb4e59860f4150c1b7faa3eae0c0
7
+ data.tar.gz: 82b068ff658f4aea8372666f3cb42f9c837a551ace9977009870de9078e101981e9afa3e8f6b6cdca7ee3f96998e62f983a7bd33b2cbc0fff3c15da5bb80c43d
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rack-graphql (2.0.0.rc)
5
- graphql (~> 1.9)
4
+ rack-graphql (2.0.0.rc2)
5
+ graphql (~> 1.11)
6
6
  oj
7
- rack (~> 2.0)
7
+ rack (~> 2.2)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
@@ -45,7 +45,7 @@ module RackGraphql
45
45
  [
46
46
  500,
47
47
  { 'Content-Type' => 'application/json' },
48
- [Oj.dump(errors: [{ message: exception_string }])]
48
+ [Oj.dump(errors: [exception_hash(e)])]
49
49
  ]
50
50
  ensure
51
51
  ActiveRecord::Base.clear_active_connections! if defined?(ActiveRecord::Base)
@@ -154,5 +154,12 @@ module RackGraphql
154
154
  string << exception.backtrace.map { |l| "\t#{l}" }.join("\n") if RackGraphql.log_exception_backtrace
155
155
  string
156
156
  end
157
+
158
+ def exception_hash(exception)
159
+ {
160
+ message: "#{exception.class}: #{exception.message}",
161
+ backtrace: RackGraphql.log_exception_backtrace ? exception.backtrace : "[FILTERED]"
162
+ }
163
+ end
157
164
  end
158
165
  end
@@ -1,3 +1,3 @@
1
1
  module RackGraphql
2
- VERSION = '2.0.0.rc'.freeze
2
+ VERSION = '2.0.0.rc2'.freeze
3
3
  end
@@ -24,9 +24,9 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.required_ruby_version = '>= 2.6'
26
26
 
27
- spec.add_dependency 'graphql', '~> 1.9'
27
+ spec.add_dependency 'graphql', '~> 1.11'
28
28
  spec.add_dependency 'oj'
29
- spec.add_dependency 'rack', '~> 2.0'
29
+ spec.add_dependency 'rack', '~> 2.2'
30
30
 
31
31
  spec.add_development_dependency 'bundler'
32
32
  spec.add_development_dependency 'pry'
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.0.0.rc
4
+ version: 2.0.0.rc2
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-09-11 00:00:00.000000000 Z
12
+ date: 2020-09-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.9'
20
+ version: '1.11'
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.9'
27
+ version: '1.11'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: oj
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '2.0'
48
+ version: '2.2'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '2.0'
55
+ version: '2.2'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: bundler
58
58
  requirement: !ruby/object:Gem::Requirement