upframework 0.2.8 → 0.2.9

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: 65b7cd4203031fe204ae2db4b2e9f15234f70b9f8319c0b0eb0479a93b8d775d
4
- data.tar.gz: bab9c34c224ae19444350453b103a6658bba142351ef54a516d602b34f869ca5
3
+ metadata.gz: d1790949cb9e3a2431f0b06cfcaf818b598c20d716126a3392733aa0faee1b1c
4
+ data.tar.gz: 3119cbf9baf3e671b4750b8dbe64383f330313bc313437328a31b467ece5f1d5
5
5
  SHA512:
6
- metadata.gz: 98e0d8b2a6405ccd13098554c6c219b9b1f3bc551c9d321f4378a71bb39cbd468a34260818b2f0a14abeba83060a9692fdf86163fbf8d92d2121b836ea67efcd
7
- data.tar.gz: 93d0add617417cfd7fe6052d6557525fc22626069032a37677e9b9d5ba43257828694ad35edca4eec0f676e75f8ec510ffc876c2aa9cd208442dbf48dc12492e
6
+ metadata.gz: aeec587df8c7e351e8d47dd66fd5ad80ad25d0d297a3f8c13deeeeab0f4e93983cd557707de3cf032a6a86812d713e510e8bc40d809ccc745731789ee858a486
7
+ data.tar.gz: 6edc14307ffe69e3b1acf93af57e0fd7963b6058cf59e03a7ebcddd0f0ee66e29a444521dfc84dd096411ad08def94c648c5c727368d5c0ac3f989b17016e3c7
@@ -16,7 +16,9 @@ module Upframework::ErrorHandler
16
16
  ExceptionNotifier.notify_exception(error, env: request.env)
17
17
 
18
18
  error_info = {
19
+ success: false,
19
20
  error: 'Internal Server Error',
21
+ status_code: 500,
20
22
  exception: "#{error.class.name} : #{error.message}"
21
23
  }
22
24
 
@@ -15,7 +15,7 @@ module Upframework
15
15
 
16
16
  rescue_from CanCan::AccessDenied do |exception|
17
17
  respond_to do |format|
18
- format.json { render json: { success: false, error: exception.message }, status: :forbidden }
18
+ format.json { render json: { success: false, error: exception.message, status_code: 403 }, status: :forbidden }
19
19
  format.html { redirect_to main_app.root_url, alert: exception.message }
20
20
  end
21
21
  end
@@ -1,3 +1,3 @@
1
1
  module Upframework
2
- VERSION = '0.2.8'
2
+ VERSION = '0.2.9'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upframework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - jude_cali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails