json_api_toolbox 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/json_api_toolbox.gemspec +1 -0
- data/lib/json_api_toolbox/version.rb +1 -1
- data/lib/renderizable_exceptions.rb +5 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf01239707604258774757a852af9f3abcb8016a
|
4
|
+
data.tar.gz: 384bf04edfce2f0433704f59e7e93610d65a7d46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13bd778d079b84c75676ea9eedadbcfe605c1051f5114588133072dfa038e6258f8e22643b340f888decbf117ef308135898e33b2c6304f0c8963a2a10762748
|
7
|
+
data.tar.gz: 9176fb7de866f06e100bbec0b510fa9afdc27cae6baba03ca23f3290004383d0c80502a3c441c4d69457fb5efdcd4813d4f16020f29482a1a7463f7c165912f8
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Released]
|
8
8
|
|
9
|
+
## [1.1.0] - 2019-05-28
|
10
|
+
### Added
|
11
|
+
- Added log with log_toolbox
|
12
|
+
|
9
13
|
## [1.0.0] - 2019-05-13
|
10
14
|
### Added
|
11
15
|
- Added status internal_server_error on exception renderizable
|
data/json_api_toolbox.gemspec
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency 'activesupport', '>= 4.0.0'
|
25
25
|
spec.add_dependency 'json-api-vanilla', '~> 1.0.1'
|
26
26
|
spec.add_dependency 'jsonapi-serializable', '>= 0.3.0'
|
27
|
+
spec.add_dependency 'log_toolbox', '>= 1.0.0'
|
27
28
|
spec.add_dependency 'request_store', '~> 1.3.2'
|
28
29
|
spec.add_dependency 'rest-client', '>= 2.0.1'
|
29
30
|
spec.add_dependency 'rspec', '>= 3.0.0'
|
@@ -11,7 +11,11 @@ module JsonApiToolbox
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def render_any_exception(exception)
|
14
|
-
|
14
|
+
if Gem.loaded_specs.key?('log_toolbox')
|
15
|
+
log_critical(exception)
|
16
|
+
else
|
17
|
+
puts_build_log_error(exception)
|
18
|
+
end
|
15
19
|
|
16
20
|
render build_jsonapi(exception)
|
17
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json_api_toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adriano Bacha
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.3.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: log_toolbox
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.0.0
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.0.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: request_store
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|