reviewed_braai 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/reviewed_braai/errors.rb +8 -3
- data/lib/reviewed_braai/version.rb +1 -1
- metadata +2 -2
@@ -7,12 +7,17 @@ module ReviewedBraai
|
|
7
7
|
error = {
|
8
8
|
error_class: "ReviewedBraai::TagRenderError",
|
9
9
|
error_message: "Tag Render Error",
|
10
|
-
key: "Key not supplied"
|
10
|
+
key: "Key not supplied",
|
11
|
+
airbrake: true
|
11
12
|
}.merge!(opts)
|
12
13
|
|
13
14
|
@key = error[:key]
|
14
15
|
|
15
|
-
|
16
|
+
if error[:airbrake] && defined?(Airbrake)
|
17
|
+
Airbrake.notify(error)
|
18
|
+
elsif defined?(Rails)
|
19
|
+
logger.warn(error.to_s)
|
20
|
+
end
|
16
21
|
|
17
22
|
super(error[:error_message])
|
18
23
|
end
|
@@ -33,7 +38,7 @@ module ReviewedBraai
|
|
33
38
|
|
34
39
|
class AttachmentNotFound < TagRenderError
|
35
40
|
def initialize(error={})
|
36
|
-
error = { error_message: "Attachment Not Found" }.merge!(error)
|
41
|
+
error = { error_message: "Attachment Not Found", airbrake: false }.merge!(error)
|
37
42
|
super(error)
|
38
43
|
end
|
39
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reviewed_braai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: braai
|