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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 293a3f3bef35b46009f162831c7cac036911d95691acd7663de201201e77cf0b
4
- data.tar.gz: 34cea63eec948fb39809de3556d828f736b88e64a68e5569ea840d04b6fd7263
3
+ metadata.gz: 85b110565817354fec9277b86b3934f2c8fca3b6b95643dd59ffc49446864c9e
4
+ data.tar.gz: 1a9866c9c44dc1cd23a5f034917ab00b0b946da5867b439c60d7aebb201ce807
5
5
  SHA512:
6
- metadata.gz: 9b825140beec644c8b2a3329624dfd6ede68869436fa788b998cd1f45e24388c5bcc5e467330fc587a06589612c39bddd20f80d05552304d6e9a2449a62a9839
7
- data.tar.gz: 882e34dc80ec565cbab69571ad8e27e9f406f1ab33ec0cb193e945e9da6276139851c8b4ca9f8a2c7b1810a32b8bbd8634a4d11bc2c3a2e10f6b11152598957d
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)
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'eivo-rails-api'
7
- spec.version = '0.1.10'
7
+ spec.version = '0.1.11'
8
8
  spec.authors = ['Jonathan VUKOVICH-TRIBOUHARET']
9
9
  spec.email = ['jonathan@eivo.co']
10
10
 
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.10
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-06-22 00:00:00.000000000 Z
11
+ date: 2020-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor