mail_spy_interceptor 0.0.1 → 0.0.3

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: b3025871d1e5f3216ab280821a75ad72a327fcc5
4
- data.tar.gz: 76964bbef66913f75d07b1edd8c1c59408c6873e
3
+ metadata.gz: 481000d464faae41e9b22cfa110afeabed02802d
4
+ data.tar.gz: f4e345d9f053c23e62fda122954a26753fc20e12
5
5
  SHA512:
6
- metadata.gz: 710688e294a926b005e390561fa078d484f4f0efbc537938debede9f55b91001842c6d94dda12bb89fabcb54ed4c1bf4e5ad3ece669b2a6e9bff55b0667a254a
7
- data.tar.gz: c425ce6d79deaf43cd4ab66ff0e259aac9533c064d93e1eb512ee916cc6aeef9404ba0de935da9227c88ae43dd8dd44c8c8ecb5f7dfd133cc102ef45dacd0701
6
+ metadata.gz: 14085340884634583681d2f9d6fe139bb251bf352b5952c174915b3ba19f1c491b1807ec9d2fa9e482897c9bcdc1f1dbc167dd142b5d84d995ad74994fdc2a69
7
+ data.tar.gz: 5ea382b4cef164ecc7299e49dfee5e8919a708ff8306dca96d1b026a873d1f22b65cb788e17971679dda701ff981a096dded05d2401f8bed9e68e92f44ba25e3
@@ -1,6 +1,6 @@
1
1
  require 'mail'
2
2
 
3
- class MailSpy
3
+ class MailSpyInterceptor
4
4
  def initialize(recipients)
5
5
  @recipients = normalize_to_array(recipients)
6
6
  end
@@ -1,20 +1,20 @@
1
- require File.join(File.dirname(__FILE__), '..', 'lib', 'mail_spy')
1
+ require File.join(File.dirname(__FILE__), '..', 'lib', 'mail_spy_interceptor')
2
2
 
3
- describe MailSpy do
3
+ describe MailSpyInterceptor do
4
4
  it 'overrides bcc field' do
5
- Mail.register_interceptor MailSpy.new(recipient_string)
5
+ Mail.register_interceptor MailSpyInterceptor.new(recipient_string)
6
6
  response = deliver_mail
7
7
  expect(response.bcc).to eq [recipient_string]
8
8
  end
9
9
 
10
10
  it 'accepts an array of recipients' do
11
- Mail.register_interceptor MailSpy.new(recipient_array)
11
+ Mail.register_interceptor MailSpyInterceptor.new(recipient_array)
12
12
  response = deliver_mail
13
13
  expect(response.bcc).to eq recipient_array
14
14
  end
15
15
 
16
16
  it 'accepts a string of recipients' do
17
- Mail.register_interceptor MailSpy.new(recipient_string)
17
+ Mail.register_interceptor MailSpyInterceptor.new(recipient_string)
18
18
  response = deliver_mail
19
19
  expect(response.bcc).to eq [recipient_string]
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_spy_interceptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juanda Zapata
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.6'
69
69
  description: |2
70
- Use MailSpy when you want to BCC yourself in every
70
+ Use MailSpyInterceptor when you want to BCC yourself in every
71
71
  email sent out by your application. I've found it very
72
72
  useful when running a startup in a very early stage.
73
73
  email:
@@ -76,9 +76,9 @@ executables: []
76
76
  extensions: []
77
77
  extra_rdoc_files: []
78
78
  files:
79
- - lib/mail_spy.rb
80
- - spec/mail_spy_spec.rb
81
- homepage: https://gitub.com/juandazapata/mail_spy
79
+ - lib/mail_spy_interceptor.rb
80
+ - spec/mail_spy_interceptor_spec.rb
81
+ homepage: https://github.com/juandazapata/mail_spy_interceptor
82
82
  licenses:
83
83
  - MIT
84
84
  metadata: {}
@@ -103,4 +103,4 @@ signing_key:
103
103
  specification_version: 4
104
104
  summary: Send BCC to yourself
105
105
  test_files:
106
- - spec/mail_spy_spec.rb
106
+ - spec/mail_spy_interceptor_spec.rb