whoops 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -58,9 +58,9 @@ class Whoops::EventGroup
|
|
58
58
|
def handle_archival
|
59
59
|
if self.archived_change && !self.new_record?
|
60
60
|
if self.archived
|
61
|
-
self.notify_on_next_occurrence = false
|
62
|
-
else
|
63
61
|
self.notify_on_next_occurrence = true
|
62
|
+
else
|
63
|
+
self.notify_on_next_occurrence = false
|
64
64
|
end
|
65
65
|
end
|
66
66
|
true
|
@@ -56,7 +56,8 @@ class Whoops::NotificationRule
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def matches
|
59
|
-
|
59
|
+
service_matches = event_group.service.split(".").inject([]){|collection, part| collection << [collection.last, part].compact.join(".")}.join("|")
|
60
|
+
@matches ||= Whoops::NotificationRule.where(:matchers => /^((#{service_matches})\S*$|(#{service_matches}).*#{event_group.environment})/)
|
60
61
|
end
|
61
62
|
end
|
62
63
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whoops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 4
|
10
|
+
version: 0.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Higginbotham
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-08-
|
18
|
+
date: 2012-08-29 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|