mail_safe 0.3.2 → 0.3.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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/lib/mail_safe/address_replacer.rb +1 -2
- data/lib/mail_safe/version.rb +1 -1
- data/mail_safe.gemspec +5 -3
- data/spec/mailers/test_mailer.rb +2 -4
- metadata +19 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 54474df49cf693f3050010dd5bbd28c41716e8b2
|
|
4
|
+
data.tar.gz: 86930016af06b3c56309ebe5de2813b31a568685
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 296080cf85dd6dfaec2677b728ae6a898b8d587eb7ca365f563c6c35c4629d4012a036561ff65df01b034ba507469c49675360a6eb9ff4aecd3260f34cf7c8c8
|
|
7
|
+
data.tar.gz: a7cd0a820a6bd55d10430954a4c6478af0d036726505f1fb9f09337bb5c56fcf3ea94dba66bb28b328bb76edd82adfcb1fd838525663ed8ab8200ec25d265478
|
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
mail_safe (0.3.
|
|
4
|
+
mail_safe (0.3.3)
|
|
5
5
|
actionmailer (>= 3.0.0)
|
|
6
|
-
coveralls
|
|
7
6
|
|
|
8
7
|
GEM
|
|
9
8
|
remote: https://rubygems.org/
|
|
@@ -92,6 +91,7 @@ PLATFORMS
|
|
|
92
91
|
DEPENDENCIES
|
|
93
92
|
appraisal
|
|
94
93
|
bundler
|
|
94
|
+
coveralls
|
|
95
95
|
mail_safe!
|
|
96
96
|
rake
|
|
97
97
|
rspec (~> 3.0, >= 3.0.0)
|
data/README.md
CHANGED
|
@@ -83,10 +83,10 @@ When mail safe replaces an email address, it appends a notice to the bottom of t
|
|
|
83
83
|
|
|
84
84
|
Tested with [Travis](https://travis-ci.org/watu/mail_safe) using Ruby 1.9, 2.0 and 2.1 against actionmailer 3.2, 4.0 and 4.1. 
|
|
85
85
|
|
|
86
|
-
|
|
87
86
|
## Copyright
|
|
88
87
|
|
|
89
88
|
Copyright (c) 2009-2010 Myron Marston, Kashless.org.
|
|
89
|
+
|
|
90
90
|
Copyright (c) 2014, Watu
|
|
91
91
|
|
|
92
92
|
See LICENSE for details.
|
|
@@ -95,8 +95,7 @@ The original recipients were:
|
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
def add_postscript(part, postscript)
|
|
98
|
-
|
|
99
|
-
part.body = part.body.to_s + postscript
|
|
98
|
+
part.body = part.body.to_s + postscript.html_safe
|
|
100
99
|
end
|
|
101
100
|
end
|
|
102
101
|
end
|
data/lib/mail_safe/version.rb
CHANGED
data/mail_safe.gemspec
CHANGED
|
@@ -9,10 +9,10 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Myron Marston", "Juan José Conti"]
|
|
10
10
|
spec.email = ["myron.marston@gmail.com", "jjconti@gmail.com"]
|
|
11
11
|
spec.summary = %q{Keep your ActionMailer emails from escaping into the wild during development.}
|
|
12
|
-
spec.description = %q{Mail safe provides a safety net while you
|
|
12
|
+
spec.description = %q{Mail safe provides a safety net while you're developing an application that uses ActionMailer.
|
|
13
13
|
It keeps emails from escaping into the wild.
|
|
14
14
|
|
|
15
|
-
Once you"ve installed and configured this gem, you can rest assure that your app won
|
|
15
|
+
Once you"ve installed and configured this gem, you can rest assure that your app won't send
|
|
16
16
|
emails to external email addresses. Instead, emails that would normally be delivered to external
|
|
17
17
|
addresses will be sent to an address of your choosing, and the body of the email will be appended
|
|
18
18
|
with a note stating where the email was originally intended to go.}
|
|
@@ -25,10 +25,12 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.require_paths = ["lib"]
|
|
26
26
|
|
|
27
27
|
spec.add_dependency "actionmailer", ">= 3.0.0"
|
|
28
|
-
spec.add_dependency "coveralls"
|
|
29
28
|
|
|
30
29
|
spec.add_development_dependency "bundler"
|
|
31
30
|
spec.add_development_dependency "rake"
|
|
32
31
|
spec.add_development_dependency "rspec", "~> 3.0", ">= 3.0.0"
|
|
33
32
|
spec.add_development_dependency "appraisal"
|
|
33
|
+
spec.add_development_dependency "coveralls"
|
|
34
|
+
|
|
35
|
+
spec.required_ruby_version = ">= 1.9.3"
|
|
34
36
|
end
|
data/spec/mailers/test_mailer.rb
CHANGED
|
@@ -10,8 +10,7 @@ class TestMailer < ActionMailer::Base
|
|
|
10
10
|
|
|
11
11
|
def html_message(options)
|
|
12
12
|
setup = setup_recipients(options)
|
|
13
|
-
body = "<p>Here is the message body.</p>"
|
|
14
|
-
body = body.html_safe if body.respond_to?(:html_safe)
|
|
13
|
+
body = "<p>Here is the message body.</p>".html_safe
|
|
15
14
|
mail({from: 'test@mailsafe.org',
|
|
16
15
|
subject: "Html Message Test"}.update(setup)) do |format|
|
|
17
16
|
format.html { render text: body }
|
|
@@ -20,8 +19,7 @@ class TestMailer < ActionMailer::Base
|
|
|
20
19
|
|
|
21
20
|
def multipart_message(options)
|
|
22
21
|
setup = setup_recipients(options)
|
|
23
|
-
html_body = "<p>Here is the message body.</p>"
|
|
24
|
-
html_body = html_body.html_safe if html_body.respond_to?(:html_safe)
|
|
22
|
+
html_body = "<p>Here is the message body.</p>".html_safe
|
|
25
23
|
mail({from: 'test@mailsafe.org',
|
|
26
24
|
subject: "Html Message Test"}.update(setup)) do |format|
|
|
27
25
|
format.text { render text: "Here is the message body." }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mail_safe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Myron Marston
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-09-
|
|
12
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: actionmailer
|
|
@@ -25,20 +25,6 @@ dependencies:
|
|
|
25
25
|
- - ">="
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
27
|
version: 3.0.0
|
|
28
|
-
- !ruby/object:Gem::Dependency
|
|
29
|
-
name: coveralls
|
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
|
31
|
-
requirements:
|
|
32
|
-
- - ">="
|
|
33
|
-
- !ruby/object:Gem::Version
|
|
34
|
-
version: '0'
|
|
35
|
-
type: :runtime
|
|
36
|
-
prerelease: false
|
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
-
requirements:
|
|
39
|
-
- - ">="
|
|
40
|
-
- !ruby/object:Gem::Version
|
|
41
|
-
version: '0'
|
|
42
28
|
- !ruby/object:Gem::Dependency
|
|
43
29
|
name: bundler
|
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -101,11 +87,25 @@ dependencies:
|
|
|
101
87
|
- - ">="
|
|
102
88
|
- !ruby/object:Gem::Version
|
|
103
89
|
version: '0'
|
|
90
|
+
- !ruby/object:Gem::Dependency
|
|
91
|
+
name: coveralls
|
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
type: :development
|
|
98
|
+
prerelease: false
|
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
104
|
description: |-
|
|
105
|
-
Mail safe provides a safety net while you
|
|
105
|
+
Mail safe provides a safety net while you're developing an application that uses ActionMailer.
|
|
106
106
|
It keeps emails from escaping into the wild.
|
|
107
107
|
|
|
108
|
-
Once you"ve installed and configured this gem, you can rest assure that your app won
|
|
108
|
+
Once you"ve installed and configured this gem, you can rest assure that your app won't send
|
|
109
109
|
emails to external email addresses. Instead, emails that would normally be delivered to external
|
|
110
110
|
addresses will be sent to an address of your choosing, and the body of the email will be appended
|
|
111
111
|
with a note stating where the email was originally intended to go.
|
|
@@ -149,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
149
149
|
requirements:
|
|
150
150
|
- - ">="
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version:
|
|
152
|
+
version: 1.9.3
|
|
153
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
requirements:
|
|
155
155
|
- - ">="
|