pboling-sanitize_email 0.3.0 → 0.3.1

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.
data/README.rdoc CHANGED
@@ -26,7 +26,7 @@ If you install this gem on a production server (which I don't always do), you ca
26
26
  == Install
27
27
 
28
28
  gem sources -a http://gems.github.com/
29
- gem install jtrupiano-sanitize_email
29
+ gem install pboling-sanitize_email
30
30
 
31
31
  == Setup
32
32
 
@@ -106,7 +106,6 @@ Then if you want to send it to the actual user, instead of yourself
106
106
 
107
107
  == References
108
108
  * {RDoc}[http://johntrupiano.rubyforge.org/sanitize_email]
109
- * {Source Code}[http://github.com/jtrupiano/sanitize_email]
110
109
  * {Source Code}[http://github.com/pboling/sanitize_email]
111
110
  * {Gem Release Announcement}[http://blog.smartlogicsolutions.com/2009/04/25/reintroducing-sanitize_email-work-with-production-email-without-fear/]
112
111
  * {Peter's Original Writeup}[http://galtzo.blogspot.com/2008/11/sanitize-email-never-worry-about.html]
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 0
4
+ :patch: 1
data/init.rb ADDED
@@ -0,0 +1,7 @@
1
+ require File.join(File.dirname(__FILE__), 'lib', "sanitize_email", "custom_environments")
2
+ require File.join(File.dirname(__FILE__), 'lib', "sanitize_email", "sanitize_email")
3
+
4
+ $:.unshift "#{File.dirname(__FILE__)}/lib"
5
+
6
+ require 'action_mailer'
7
+ require 'sanitize_email'
@@ -24,4 +24,4 @@ module NinthBit
24
24
  end
25
25
 
26
26
  end
27
- end
27
+ end
@@ -0,0 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{sanitize_email}
5
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
+ s.extra_rdoc_files = ["README.rdoc"]
7
+ s.version = "0.3.1"
8
+ s.authors = ["Peter Boling", "John Trupiano", "George Anderson"]
9
+ s.date = %q{2009-08-13}
10
+ s.description = %q{allows you to play with your application's email abilities without worrying that emails will get sent to actual live addresses}
11
+ s.email = ['peter.boling@gmail.com', 'jtrupiano@gmail.com', 'george@benevolentcode.com']
12
+ # s.files = FileList['lib/**/*.rb', 'bin/*', '[A-Z]*', 'test/**/*'].to_a
13
+ s.files = ["lib/sanitize_email/custom_environments.rb",
14
+ "lib/sanitize_email/sanitize_email.rb",
15
+ "lib/sanitize_email.rb",
16
+ "init.rb",
17
+ "MIT-LICENSE",
18
+ "Rakefile",
19
+ "README.rdoc",
20
+ "sanitize_email.gemspec",
21
+ "VERSION.yml",
22
+ "test/sample_mailer.rb",
23
+ "test/sanitize_email_test.rb"]
24
+
25
+ s.test_files = ["test/sample_mailer.rb",
26
+ "test/sanitize_email_test.rb",
27
+ "test/test_helper.rb"]
28
+ s.has_rdoc = true
29
+ s.homepage = %q{http://github.com/pboling/sanitize_email}
30
+ s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
31
+ s.require_paths = ["lib"]
32
+ s.rubyforge_project = %q{johntrupiano}
33
+ s.rubygems_version = %q{1.3.3}
34
+ 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.}
35
+
36
+ if s.respond_to? :specification_version then
37
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
38
+ s.specification_version = 2
39
+
40
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
41
+ else
42
+ end
43
+ else
44
+ end
45
+ end
@@ -1,13 +1,3 @@
1
-
2
- require 'rubygems'
3
- require 'action_mailer'
4
-
5
- # configure ActionMailer
6
- ActionMailer::Base.template_root = "."
7
-
8
- require File.join(File.dirname(__FILE__), "..", "lib", 'sanitize_email')
9
-
10
-
11
1
  class SampleMailer < ActionMailer::Base
12
2
 
13
3
  def gmail_override
@@ -31,4 +21,4 @@ class SampleMailer < ActionMailer::Base
31
21
 
32
22
  end
33
23
 
34
- end
24
+ end
@@ -1,5 +1,4 @@
1
- require 'test/unit'
2
- require 'test/sample_mailer'
1
+ require File.expand_path(File.dirname(__FILE__) + '/test_helper')
3
2
 
4
3
  class SanitizeEmailTest < Test::Unit::TestCase
5
4
  def setup
@@ -0,0 +1,16 @@
1
+ require 'rubygems'
2
+
3
+ require 'test/unit'
4
+
5
+ RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
6
+ RAILS_ENV = 'test'
7
+
8
+ require File.join(File.dirname(__FILE__), "..", "init")
9
+
10
+ # configure ActionMailer
11
+ ActionMailer::Base.template_root = File.join(File.dirname(__FILE__), "test")
12
+ ActionMailer::Base.sanitized_recipients = "test@example.com"
13
+ ActionMailer::Base.sanitized_bcc = nil
14
+ ActionMailer::Base.sanitized_cc = nil
15
+
16
+ require 'test/sample_mailer'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pboling-sanitize_email
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-06-09 00:00:00 -07:00
14
+ date: 2009-08-13 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies: []
17
17
 
@@ -30,9 +30,11 @@ files:
30
30
  - lib/sanitize_email/custom_environments.rb
31
31
  - lib/sanitize_email/sanitize_email.rb
32
32
  - lib/sanitize_email.rb
33
+ - init.rb
33
34
  - MIT-LICENSE
34
35
  - Rakefile
35
36
  - README.rdoc
37
+ - sanitize_email.gemspec
36
38
  - VERSION.yml
37
39
  - test/sample_mailer.rb
38
40
  - test/sanitize_email_test.rb
@@ -64,5 +66,7 @@ rubygems_version: 1.3.5
64
66
  signing_key:
65
67
  specification_version: 2
66
68
  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.
67
- test_files: []
68
-
69
+ test_files:
70
+ - test/sample_mailer.rb
71
+ - test/sanitize_email_test.rb
72
+ - test/test_helper.rb