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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/rack_graphql/middleware.rb +8 -1
- data/lib/rack_graphql/version.rb +1 -1
- data/rack-graphql.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 404f5193946ee5d9dabc5aeedd7a36506a3594ccedca888e38b3f9abc4a25929
|
4
|
+
data.tar.gz: 9f702646a34bbc872cf74fd4889049b0258b9a6c0ec159b4f18e75d79b3f3e2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b9293e01c37cfc1a2c459b7d022793f422c8004bc505378faf88dff831325599bb8b4d4f2c095d7f9665ff94624e79cb0adbb4e59860f4150c1b7faa3eae0c0
|
7
|
+
data.tar.gz: 82b068ff658f4aea8372666f3cb42f9c837a551ace9977009870de9078e101981e9afa3e8f6b6cdca7ee3f96998e62f983a7bd33b2cbc0fff3c15da5bb80c43d
|
data/Gemfile.lock
CHANGED
@@ -45,7 +45,7 @@ module RackGraphql
|
|
45
45
|
[
|
46
46
|
500,
|
47
47
|
{ 'Content-Type' => 'application/json' },
|
48
|
-
[Oj.dump(errors: [
|
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
|
data/lib/rack_graphql/version.rb
CHANGED
data/rack-graphql.gemspec
CHANGED
@@ -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.
|
27
|
+
spec.add_dependency 'graphql', '~> 1.11'
|
28
28
|
spec.add_dependency 'oj'
|
29
|
-
spec.add_dependency 'rack', '~> 2.
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
55
|
+
version: '2.2'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: bundler
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|