mail_safe 0.3.2 → 0.3.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: 31c1a2b64eb57573f90a15add88b559edeec9b8e
4
- data.tar.gz: 2f4bba2d1e5d7176d1b9882be77adc7bc94b89cc
3
+ metadata.gz: 54474df49cf693f3050010dd5bbd28c41716e8b2
4
+ data.tar.gz: 86930016af06b3c56309ebe5de2813b31a568685
5
5
  SHA512:
6
- metadata.gz: 5e05fe8957e4f3d977e23d7f714219bbd636d4fdd47349f63860d0cbabe96357fb0799119527720fdda9a0d7c37ca5a7b5c9a9c3e955edaad2ab67abdbe92f10
7
- data.tar.gz: 63a8b3ab0f0ad45ec17f53417225097a4571915c192345da892ad5842d7ebd65c9d91eb7d0cf2686ce620e29e313f7b78c6018fe35179c3dcb39e551713f3f2b
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.2)
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. ![Build Status](https://travis-ci.org/watu/mail_safe.svg?branch=master)
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
- postscript = postscript.html_safe if postscript.respond_to?(:html_safe)
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
@@ -1,3 +1,3 @@
1
1
  module MailSafe
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
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"re developing an application that uses ActionMailer.
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"t send
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
@@ -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.2
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-05 00:00:00.000000000 Z
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"re developing an application that uses ActionMailer.
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"t send
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: '0'
152
+ version: 1.9.3
153
153
  required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  requirements:
155
155
  - - ">="