mail_interceptor 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/mail_interceptor/version.rb +1 -1
- data/lib/mail_interceptor.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e81465681066b3e3e2392f09413dab4e069c3d43
|
4
|
+
data.tar.gz: 4062ddaa9e71fd5d12e09809a6dd9863ba101056
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7db16cb58488d073b8aad0599e031b36dbbbbd8e0d1652514897140362111633d646ec86e7cde290d6a955b4b7f4edc8596bf3ebeff2bb5f613ebbe9561e1a2b
|
7
|
+
data.tar.gz: 29248224aab6fb1a991ab5c21bcd74c1cd89cc77eacee2e55cb6c1b55d7edc36bb0542a946d8a1537735f0fac94806a41cdf890b6d4ab6251c37c2e55c1f7d30
|
data/README.md
CHANGED
data/lib/mail_interceptor.rb
CHANGED
@@ -21,6 +21,8 @@ module MailInterceptor
|
|
21
21
|
private
|
22
22
|
|
23
23
|
def normalize_recipients recipients
|
24
|
+
return Array.wrap(recipients) if production?
|
25
|
+
|
24
26
|
return forward_emails_to if deliver_emails_to.empty?
|
25
27
|
|
26
28
|
recipients.map do |recipient|
|
@@ -41,7 +43,9 @@ module MailInterceptor
|
|
41
43
|
def sanitize_forward_emails_to
|
42
44
|
self.forward_emails_to = Array.wrap forward_emails_to
|
43
45
|
|
44
|
-
|
46
|
+
if forward_emails_to_empty? && !production?
|
47
|
+
raise "forward_emails_to should not be empty"
|
48
|
+
end
|
45
49
|
end
|
46
50
|
|
47
51
|
def add_env_info_to_subject_prefix
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail_interceptor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neeraj Singh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|