test_mail_interceptor 0.1.0 → 0.1.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -1,5 +1,9 @@
1
1
  class TestMailInterceptor
2
-
2
+
3
+ class Engine < Rails::Engine
4
+ config.mail_interceptor = ActiveSupport::OrderedOptions.new
5
+ end
6
+
3
7
  def self.delivering_email(mail)
4
8
  if Rails.application.config.mail_interceptor.intercept_mail
5
9
  interceptor = new(mail)
@@ -57,4 +61,4 @@ class TestMailInterceptor
57
61
  generate_test_mail_header.gsub(/\n/, "<br>")
58
62
  end
59
63
 
60
- end
64
+ end
@@ -0,0 +1,61 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{test_mail_interceptor}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Andi Bade"]
12
+ s.date = %q{2011-06-09}
13
+ s.description = %q{With this library you can catch all outgoing e-mails and redirect them to a specific address. This is very useful for testing purpose, for example on your staging/testing server.}
14
+ s.email = %q{andi@galaxycats.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/test_mail_interceptor.rb",
28
+ "test/helper.rb",
29
+ "test/test_test_mail_interceptor.rb",
30
+ "test_mail_interceptor.gemspec"
31
+ ]
32
+ s.homepage = %q{http://github.com/thyphoon/test_mail_interceptor}
33
+ s.licenses = ["MIT"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = %q{1.3.6}
36
+ s.summary = %q{redirect all outgoing emails to one address}
37
+ s.test_files = [
38
+ "test/helper.rb",
39
+ "test/test_test_mail_interceptor.rb"
40
+ ]
41
+
42
+ if s.respond_to? :specification_version then
43
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
+ s.specification_version = 3
45
+
46
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
47
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
48
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
49
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
50
+ else
51
+ s.add_dependency(%q<shoulda>, [">= 0"])
52
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
53
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<shoulda>, [">= 0"])
57
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
58
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
59
+ end
60
+ end
61
+
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andi Bade
@@ -77,6 +77,7 @@ files:
77
77
  - lib/test_mail_interceptor.rb
78
78
  - test/helper.rb
79
79
  - test/test_test_mail_interceptor.rb
80
+ - test_mail_interceptor.gemspec
80
81
  has_rdoc: true
81
82
  homepage: http://github.com/thyphoon/test_mail_interceptor
82
83
  licenses: