aaf-lipstick 3.0.0 → 3.0.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfcd45c6c601b809340890852d183333006b2175
|
4
|
+
data.tar.gz: 01e01466e571f79b72e0cdc985a419e4f1ebc58f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90c8dc5b4cad84050c8e884b6d6ece9ce23fe54a1a76bd30d2a5576e7355bc94ad0e8e4e9119cd7676fb1a12a369a5d374a97bf6ac768e35b003dbd5d7ca95cb
|
7
|
+
data.tar.gz: 26acd5ddf6a344004116fd9aaf6b46135c2e6a6869d716e1a2b8396c64709147dadbd804441a65a5c24e553b940cf47e8f6cb0db8978a63af209c4e3a860ecfc
|
@@ -7,22 +7,23 @@ module Lipstick
|
|
7
7
|
module DynamicErrors
|
8
8
|
Forbidden = Class.new(StandardError)
|
9
9
|
private_constant :Forbidden
|
10
|
-
::ActionController::Base.rescue_from Forbidden, with: :forbidden
|
11
10
|
|
12
11
|
Unauthorized = Class.new(StandardError)
|
13
12
|
private_constant :Unauthorized
|
14
|
-
::ActionController::Base.rescue_from Unauthorized, with: :unauthorized
|
15
13
|
|
16
14
|
BadRequest = Class.new(StandardError)
|
17
15
|
private_constant :BadRequest
|
18
|
-
::ActionController::Base.rescue_from BadRequest, with: :bad_request
|
19
16
|
|
20
17
|
NotFound = Class.new(StandardError)
|
21
18
|
private_constant :NotFound
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
19
|
+
|
20
|
+
def self.included(base)
|
21
|
+
base.rescue_from Forbidden, with: :forbidden
|
22
|
+
base.rescue_from Unauthorized, with: :unauthorized
|
23
|
+
base.rescue_from BadRequest, with: :bad_request
|
24
|
+
base.rescue_from NotFound, with: :not_found
|
25
|
+
base.rescue_from(::ActiveRecord::RecordNotFound, with: :not_found)
|
26
|
+
end
|
26
27
|
|
27
28
|
private
|
28
29
|
|
data/lib/lipstick/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aaf-lipstick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun Mangelsdorf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubis
|
@@ -345,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
345
345
|
version: '0'
|
346
346
|
requirements: []
|
347
347
|
rubyforge_project:
|
348
|
-
rubygems_version: 2.6.
|
348
|
+
rubygems_version: 2.6.10
|
349
349
|
signing_key:
|
350
350
|
specification_version: 4
|
351
351
|
summary: A gem for applying AAF branding to our services
|