actionmailer_interceptor 0.0.2 → 0.0.3

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: 7f716e91fee5f1d0e9990df032d778ea855bbd0f
4
- data.tar.gz: c0a5b325bb7fa8df0fc0ff05f080a7aff91a47ad
3
+ metadata.gz: 5f5546c6477326029c26062a61c8463e89b39d55
4
+ data.tar.gz: e69e9d3b1786cc9852c9b2609cb5aff8b54482dd
5
5
  SHA512:
6
- metadata.gz: e8429018cf2c53c5baf279151648777e83c5931ffe50f2d8f4ddc9fb1d0242e6d29e69683fded81f21b573b6d063f357f6fcc13c5648f43ed0d3718ec3dcfb1e
7
- data.tar.gz: 2ae8a955d121e6a50ea6070519ae69d86abd3178fc9f1831d764d5095435f4957ff4ddb9a17fc093f9affec8af022ddb35d2bc14cb526e6049e304d026bf9407
6
+ metadata.gz: 8920f5025fa79642216cac02faa1e33a661510e0983274ae46114e10b55c0a12519621cfe7a7a6ebd57c8d8c44e19eb718c6fc4a83f266442418cfab0e982d8e
7
+ data.tar.gz: 10c2c1704bb4a6744b8b257e03ff941b2ded4f1c8fcf613f40ad2b6b4f91cfc66b4855a3d6451e97240e44943877a45436fc7daf097cab9bc8b860ff4b1c2f66
@@ -1,21 +1,19 @@
1
- module ActionmailerInterceptor
2
- class MailInterceptor
3
- attr_accessor :redirection_email
1
+ class ActionmailerInterceptor::MailInterceptor
2
+ attr_accessor :redirection_email
4
3
 
5
- def initialize(options={})
6
- @redirection_email = options[:redirection_email]
7
- end
4
+ def initialize(options={})
5
+ @redirection_email = options[:redirection_email]
6
+ end
8
7
 
9
- def self.delivering_email(message)
10
- original_recipients = ' ['
11
- [:to, :cc, :bcc].each do |field|
12
- unless message.send(field).blank?
13
- original_recipients << "#{field}: #{message.send(field).join(', ')}"
14
- end
8
+ def self.delivering_email(message)
9
+ original_recipients = ' ['
10
+ [:to, :cc, :bcc].each do |field|
11
+ unless message.send(field).blank?
12
+ original_recipients << "#{field}: #{message.send(field).join(', ')}"
15
13
  end
16
- original_recipients << ']'
17
- message.subject += original_recipients
18
- message.to = @redirection_email
19
14
  end
15
+ original_recipients << ']'
16
+ message.subject += original_recipients
17
+ message.to = @redirection_email
20
18
  end
21
19
  end
@@ -1,3 +1,3 @@
1
1
  module ActionmailerInterceptor
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Bošković