runtimeerror_notifier 0.0.15 → 0.0.17
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.
- checksums.yaml +4 -4
- data/README.md +1 -7
- data/lib/runtimeerror_notifier/notifier.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 025bb5f4c51661c2b0c1a2d7d9fcee220d64dff8
|
|
4
|
+
data.tar.gz: 8769335fd01e36c4a74ae30259bdeaafefe7b516
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d94df98788ca0688141bde8e77175de74fc49f7fafb92814bb6e8ecc62a56da007449cbf1b8c3834d6bd82b5beb3b913125975cfede566b8295c2c4d113e42ed
|
|
7
|
+
data.tar.gz: 7b488cdb9d1272b5393db8f9482d4d76ccefc4cd2dc5bda1a6acf955bb03684ec5d843d2fbe1a7a087e09a9cc7095a04b028ceec01e7fae12172fa1e7691aee6
|
data/README.md
CHANGED
|
@@ -20,13 +20,7 @@ RAILS_ENV=production rails generate runtimeerror_notifier:install
|
|
|
20
20
|
|
|
21
21
|
## Preventing errors in development
|
|
22
22
|
|
|
23
|
-
To prevent errors from being sent out while developing,
|
|
24
|
-
|
|
25
|
-
``` ruby
|
|
26
|
-
group :production do
|
|
27
|
-
gem 'runtimeerror_notifier'
|
|
28
|
-
end
|
|
29
|
-
```
|
|
23
|
+
To prevent errors from being sent out while developing, make sure environment variable `RUNTIMEERROR_EMAIL` is unset.
|
|
30
24
|
|
|
31
25
|
## License
|
|
32
26
|
|
|
@@ -18,8 +18,9 @@ module RuntimeerrorNotifier
|
|
|
18
18
|
|
|
19
19
|
def self.for(*emails)
|
|
20
20
|
RECIPIENTS.push(*emails)
|
|
21
|
-
RECIPIENTS.reject!
|
|
21
|
+
RECIPIENTS.reject! {|s| s.to_s.strip.empty? }
|
|
22
22
|
RECIPIENTS.uniq!
|
|
23
|
+
$stderr.puts "WARNING [RuntimeerrorNotifier.for]: No email recipients configured" if $DEBUG && RECIPIENTS.empty?
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
def notification(env, exception, options={})
|