egalite 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/egalite/version.rb +1 -1
- data/lib/egalite.rb +7 -0
- metadata +4 -4
data/lib/egalite/version.rb
CHANGED
data/lib/egalite.rb
CHANGED
@@ -92,6 +92,7 @@ module Egalite
|
|
92
92
|
@@table = nil
|
93
93
|
@@admin_emails = nil
|
94
94
|
@@email_from = nil
|
95
|
+
@@do_not_catch = false
|
95
96
|
class <<self
|
96
97
|
def create_table(db, opts = {})
|
97
98
|
table = opts[:table_name] || :logs
|
@@ -116,6 +117,9 @@ module Egalite
|
|
116
117
|
def email_from=(t)
|
117
118
|
@@email_from=t
|
118
119
|
end
|
120
|
+
def do_not_catch=(t)
|
121
|
+
@@do_not_catch=t
|
122
|
+
end
|
119
123
|
def write(hash, sendmail = false)
|
120
124
|
hash[:md5] = Digest::MD5.hexdigest(hash[:text]) unless hash[:md5]
|
121
125
|
if (hash[:severity] == 'critical' or sendmail) and @@admin_emails
|
@@ -143,6 +147,9 @@ module Egalite
|
|
143
147
|
yield
|
144
148
|
rescue Exception => e
|
145
149
|
ErrorLogger.write_exception(e, hash, sendmail)
|
150
|
+
if @@do_not_catch
|
151
|
+
raise e
|
152
|
+
end
|
146
153
|
end
|
147
154
|
end
|
148
155
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: egalite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 2
|
10
|
+
version: 1.5.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Shunichi Arai
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2015-01-
|
18
|
+
date: 2015-01-31 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|