actionmailer_interceptor 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7260e94044417696b2016067a03a2a16fcd9654
4
- data.tar.gz: 7581f4560fb73c694d1250250e6d668b65f0e177
3
+ metadata.gz: a2629937ddda62b5565ef03ee9849b7f0decb236
4
+ data.tar.gz: 33d5134ac03f4b4a13514587d30c55d762d2a646
5
5
  SHA512:
6
- metadata.gz: 5f0623ee5f5d2d382cb927b4c1013208df8badaddea38972bc3816b5ee2ff28b54682a7da54a996b1b936812aa0430a84685b1c30491ea25e54a625274f90995
7
- data.tar.gz: bb2c1f075deac8d5303228fff6daad9a4cd936d28e8a64384d00d8caab26a28bbb88ec108cacf114dce18243b17022632e42589b6793b0af4df4b7f2e6304d21
6
+ metadata.gz: 5cbcc23e50534b16ee19fcc145ab7bd7a4b3d46ffbead52ff08b02eb15bfcd3e622b8a2f88c9fcf3bcbeaca86ca46d9e30b765a731f44d23c8c5fd1eb3256052
7
+ data.tar.gz: 2f102498c7719b949dddd0ef2ed869ff26018d7e84638e90cf10c06100b8ca7c98a4a9184dce06e76d1938c32a904c8ee2f28200c4fd6f7a927cf26b9624990c
@@ -1,11 +1,5 @@
1
1
  module ActionmailerInterceptor
2
2
  class MailInterceptor
3
- attr_accessor :redirection_email
4
-
5
- def initialize(options={})
6
- @redirection_email = options[:redirection_email]
7
- end
8
-
9
3
  def self.delivering_email(message)
10
4
  original_recipients = ' ['
11
5
  [:to, :cc, :bcc].each do |field|
@@ -15,7 +9,7 @@ module ActionmailerInterceptor
15
9
  end
16
10
  original_recipients << ']'
17
11
  message.subject += original_recipients
18
- message.to = @redirection_email
12
+ message.to = ENV['redirection_email']
19
13
  end
20
14
  end
21
15
  end
@@ -1,3 +1,3 @@
1
1
  module ActionmailerInterceptor
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmailer_interceptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Bošković