eivo-rails-api 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/eivo/concerns/rendering.rb +3 -1
- data/eivo-rails-api.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85b110565817354fec9277b86b3934f2c8fca3b6b95643dd59ffc49446864c9e
|
4
|
+
data.tar.gz: 1a9866c9c44dc1cd23a5f034917ab00b0b946da5867b439c60d7aebb201ce807
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f5410a18221a5f98e9de1ff1fdc1600e69d4f299b5c231b2469de1b3f364ccd42f0d83bb910c08b3b4f5d0a63c4df96610923b4143c568fef095f9386da9598
|
7
|
+
data.tar.gz: 640968c7cc3ed44fb6d9f4675495a879c4239bd0e5025593a6cd206527bd27e7891880c248c7486f659f038b917223f439a45c7e215b23a3f30770a111e1f6aa
|
@@ -52,9 +52,11 @@ module EIVO
|
|
52
52
|
render_errors json_errors.flatten
|
53
53
|
end
|
54
54
|
|
55
|
-
def render_error(code, status: :bad_request, source: nil)
|
55
|
+
def render_error(code, status: :bad_request, title: nil, detail: nil, source: nil)
|
56
56
|
render_errors([{
|
57
57
|
code: code,
|
58
|
+
title: title,
|
59
|
+
detail: detail,
|
58
60
|
source: source,
|
59
61
|
status: ::Rack::Utils::SYMBOL_TO_STATUS_CODE[status].to_s
|
60
62
|
}.compact], status: status)
|
data/eivo-rails-api.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eivo-rails-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan VUKOVICH-TRIBOUHARET
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|