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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1038b93a850773fa998a6d17a784b0c9d2c6a49b
4
- data.tar.gz: 42edb3a479327add4a8b4f7242567f813263a6c2
3
+ metadata.gz: e81465681066b3e3e2392f09413dab4e069c3d43
4
+ data.tar.gz: 4062ddaa9e71fd5d12e09809a6dd9863ba101056
5
5
  SHA512:
6
- metadata.gz: 0f72941dc324c3e7c4f2a0a3e22146843e7ae33be4a5926933871d47aa14a98da88f1bc2ab7bc15c167494c2c4d005b681d0806dfa38faa057405d8f59567b20
7
- data.tar.gz: 669c21d19894c6c1b6a541389b6853c39e791a111157041c01ab466e58d94287cd31ed1407ea85ab483fe924c35310c41ba652524611c9600978594c1e513285
6
+ metadata.gz: 7db16cb58488d073b8aad0599e031b36dbbbbd8e0d1652514897140362111633d646ec86e7cde290d6a955b4b7f4edc8596bf3ebeff2bb5f613ebbe9561e1a2b
7
+ data.tar.gz: 29248224aab6fb1a991ab5c21bcd74c1cd89cc77eacee2e55cb6c1b55d7edc36bb0542a946d8a1537735f0fac94806a41cdf890b6d4ab6251c37c2e55c1f7d30
data/README.md CHANGED
@@ -45,7 +45,7 @@ the front of the subject in non-production environment.
45
45
 
46
46
  ```
47
47
  [WHEEL] Forgot password
48
- [WHEEL STAGING] Forogt password
48
+ [WHEEL STAGING] Forgot password
49
49
  ```
50
50
 
51
51
  #### forward_emails_to
@@ -1,3 +1,3 @@
1
1
  module MailInterceptor
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -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
- raise "forward_emails_to should not be empty" if forward_emails_to_empty?
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.1
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-20 00:00:00.000000000 Z
11
+ date: 2015-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler