sanitize_email 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +10 -10
- data/Rakefile +1 -0
- data/VERSION.yml +2 -2
- data/init.rb +2 -0
- data/lib/sanitize_email.rb +0 -1
- data/sanitize_email.gemspec +6 -5
- data/test/test_helper.rb +10 -2
- metadata +26 -9
data/README.rdoc
CHANGED
@@ -25,20 +25,20 @@ If you install this gem on a production server (which I don't always do), you ca
|
|
25
25
|
|
26
26
|
== Install as a RubyGem
|
27
27
|
|
28
|
-
|
28
|
+
Pick standard or source install below.
|
29
|
+
|
30
|
+
* Standard Install:
|
31
|
+
|
32
|
+
[sudo] gem install sanitize_email
|
33
|
+
|
34
|
+
* Source Install:
|
29
35
|
|
30
36
|
mkdir -p ~/src
|
31
37
|
cd ~/src
|
32
38
|
git clone git://github.com/pboling/sanitize_email.git
|
33
39
|
cd sanitize_email
|
34
40
|
gem build sanitize_email.gemspec
|
35
|
-
sudo gem install sanitize_email-0.3.
|
36
|
-
|
37
|
-
Gemcutter is the hot new gem host, and you can use it like this:
|
38
|
-
|
39
|
-
[sudo] gem install gemcutter
|
40
|
-
[sudo] gem tumble # makes gemcutter gem source first in line
|
41
|
-
[sudo] gem install sanitize_email
|
41
|
+
sudo gem install sanitize_email-0.3.7.gem # (Or whatever version gets built)
|
42
42
|
|
43
43
|
Then in your environment.rb (if you are just going to use it from the console, you can require it as needed there, and skip the config.gem):
|
44
44
|
|
@@ -141,7 +141,7 @@ Peter Boling is the author of the gem/plugin. John Trupiano did the initial con
|
|
141
141
|
|
142
142
|
== Contributors
|
143
143
|
|
144
|
-
George Anderson's work / improvements
|
144
|
+
George Anderson's work / improvements have been pulled in.
|
145
145
|
|
146
146
|
== References
|
147
147
|
* {Source Code}[http://github.com/pboling/sanitize_email]
|
@@ -149,6 +149,6 @@ George Anderson's work / improvements has been merged in.
|
|
149
149
|
* {Peter's Original Writeup}[http://galtzo.blogspot.com/2008/11/sanitize-email-never-worry-about.html]
|
150
150
|
* {Using sanitize_email to Preview HTML Emails Locally}[http://blog.smartlogicsolutions.com/2009/04/30/using-sanitize-email-to-preview-html-emails-locally/]
|
151
151
|
|
152
|
-
Copyright (c) 2008-
|
152
|
+
Copyright (c) 2008-2010 {Peter H. Boling}[http://www.peterboling.com/about.html] of {9thBit LLC}[http://www.peterboling.com/]
|
153
153
|
Copyright (c) 2009 {John Trupiano}[http://smartlogicsolutions.com/wiki/John_Trupiano] of {SmartLogic Solutions, LLC}[http://www.smartlogicsolutions.com]
|
154
154
|
Released under the MIT license
|
data/Rakefile
CHANGED
data/VERSION.yml
CHANGED
data/init.rb
CHANGED
data/lib/sanitize_email.rb
CHANGED
data/sanitize_email.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sanitize_email}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Peter Boling", "John Trupiano", "George Anderson"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-07-08}
|
13
13
|
s.description = %q{Test an application's email abilities without ever sending a message to actual live addresses}
|
14
14
|
s.email = ["peter.boling@gmail.com", "jtrupiano@gmail.com", "george@benevolentcode.com"]
|
15
15
|
s.extra_rdoc_files = [
|
@@ -26,12 +26,13 @@ Gem::Specification.new do |s|
|
|
26
26
|
"lib/sanitize_email/sanitize_email.rb",
|
27
27
|
"sanitize_email.gemspec",
|
28
28
|
"test/sample_mailer.rb",
|
29
|
-
"test/sanitize_email_test.rb"
|
29
|
+
"test/sanitize_email_test.rb",
|
30
|
+
"test/test_helper.rb"
|
30
31
|
]
|
31
32
|
s.homepage = %q{http://github.com/pboling/sanitize_email}
|
32
33
|
s.rdoc_options = ["--charset=UTF-8"]
|
33
34
|
s.require_paths = ["lib"]
|
34
|
-
s.rubygems_version = %q{1.3.
|
35
|
+
s.rubygems_version = %q{1.3.7}
|
35
36
|
s.summary = %q{Tool to aid in development, testing, qa, and production troubleshooting of email issues without worrying that emails will get sent to actual live addresses.}
|
36
37
|
s.test_files = [
|
37
38
|
"test/sample_mailer.rb",
|
@@ -43,7 +44,7 @@ Gem::Specification.new do |s|
|
|
43
44
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
45
|
s.specification_version = 3
|
45
46
|
|
46
|
-
if Gem::Version.new(Gem::
|
47
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
48
|
s.add_runtime_dependency(%q<actionmailer>, [">= 0"])
|
48
49
|
else
|
49
50
|
s.add_dependency(%q<actionmailer>, [">= 0"])
|
data/test/test_helper.rb
CHANGED
@@ -1,8 +1,16 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
|
+
vendored_rails = File.dirname(__FILE__) + '/../../../../vendor/rails'
|
4
|
+
if File.exists?(vendored_rails)
|
5
|
+
Dir.glob(vendored_rails + "/**/lib").each { |dir| $:.unshift dir }
|
6
|
+
RAILS_ROOT = File.dirname(__FILE__) + '/../../../../' unless defined?(RAILS_ROOT)
|
7
|
+
else
|
8
|
+
gem 'rails', "=#{ENV['VERSION']}" if ENV['VERSION']
|
9
|
+
RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
|
10
|
+
end
|
11
|
+
|
3
12
|
require 'test/unit'
|
4
13
|
|
5
|
-
RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
|
6
14
|
RAILS_ENV = 'test'
|
7
15
|
|
8
16
|
require File.join(File.dirname(__FILE__), "..", "init")
|
@@ -13,4 +21,4 @@ ActionMailer::Base.sanitized_recipients = "test@example.com"
|
|
13
21
|
ActionMailer::Base.sanitized_bcc = nil
|
14
22
|
ActionMailer::Base.sanitized_cc = nil
|
15
23
|
|
16
|
-
require '
|
24
|
+
require File.expand_path(File.dirname(__FILE__) + '/sample_mailer')
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sanitize_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 7
|
10
|
+
version: 0.3.7
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Peter Boling
|
@@ -11,19 +17,23 @@ autorequire:
|
|
11
17
|
bindir: bin
|
12
18
|
cert_chain: []
|
13
19
|
|
14
|
-
date:
|
20
|
+
date: 2010-07-08 00:00:00 -04:00
|
15
21
|
default_executable:
|
16
22
|
dependencies:
|
17
23
|
- !ruby/object:Gem::Dependency
|
18
24
|
name: actionmailer
|
19
|
-
|
20
|
-
|
21
|
-
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
22
28
|
requirements:
|
23
29
|
- - ">="
|
24
30
|
- !ruby/object:Gem::Version
|
31
|
+
hash: 3
|
32
|
+
segments:
|
33
|
+
- 0
|
25
34
|
version: "0"
|
26
|
-
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
27
37
|
description: Test an application's email abilities without ever sending a message to actual live addresses
|
28
38
|
email:
|
29
39
|
- peter.boling@gmail.com
|
@@ -47,6 +57,7 @@ files:
|
|
47
57
|
- sanitize_email.gemspec
|
48
58
|
- test/sample_mailer.rb
|
49
59
|
- test/sanitize_email_test.rb
|
60
|
+
- test/test_helper.rb
|
50
61
|
has_rdoc: true
|
51
62
|
homepage: http://github.com/pboling/sanitize_email
|
52
63
|
licenses: []
|
@@ -57,21 +68,27 @@ rdoc_options:
|
|
57
68
|
require_paths:
|
58
69
|
- lib
|
59
70
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
60
72
|
requirements:
|
61
73
|
- - ">="
|
62
74
|
- !ruby/object:Gem::Version
|
75
|
+
hash: 3
|
76
|
+
segments:
|
77
|
+
- 0
|
63
78
|
version: "0"
|
64
|
-
version:
|
65
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
66
81
|
requirements:
|
67
82
|
- - ">="
|
68
83
|
- !ruby/object:Gem::Version
|
84
|
+
hash: 3
|
85
|
+
segments:
|
86
|
+
- 0
|
69
87
|
version: "0"
|
70
|
-
version:
|
71
88
|
requirements: []
|
72
89
|
|
73
90
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.3.
|
91
|
+
rubygems_version: 1.3.7
|
75
92
|
signing_key:
|
76
93
|
specification_version: 3
|
77
94
|
summary: Tool to aid in development, testing, qa, and production troubleshooting of email issues without worrying that emails will get sent to actual live addresses.
|