mail_magnet 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +36 -0
- data/VERSION +1 -0
- data/lib/mail_magnet.rb +2 -0
- data/mail_magnet.gemspec +78 -0
- data/spec/app_root/config/database.yml +21 -0
- data/spec/app_root/log/.gitignore +1 -0
- data/spec/app_root/script/console +7 -0
- data/spec/support/rcov.opts +2 -0
- data/spec/support/spec.opts +4 -0
- metadata +27 -3
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Henning Koch
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'rake'
|
2
|
+
require 'rake/rdoctask'
|
3
|
+
require 'spec/rake/spectask'
|
4
|
+
|
5
|
+
desc 'Default: Run all specs.'
|
6
|
+
task :default => :spec
|
7
|
+
|
8
|
+
desc "Run all specs"
|
9
|
+
Spec::Rake::SpecTask.new() do |t|
|
10
|
+
t.spec_opts = ['--options', "\"spec/support/spec.opts\""]
|
11
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
12
|
+
end
|
13
|
+
|
14
|
+
desc 'Generate documentation for the mail_magnet gem.'
|
15
|
+
Rake::RDocTask.new(:rdoc) do |rdoc|
|
16
|
+
rdoc.rdoc_dir = 'rdoc'
|
17
|
+
rdoc.title = 'mail_magnet'
|
18
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
19
|
+
rdoc.rdoc_files.include('README')
|
20
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
+
end
|
22
|
+
|
23
|
+
begin
|
24
|
+
require 'jeweler'
|
25
|
+
Jeweler::Tasks.new do |gemspec|
|
26
|
+
gemspec.name = "mail_magnet"
|
27
|
+
gemspec.summary = "Override ActionMailer recipients so all mails go to a given address"
|
28
|
+
gemspec.email = "github@makandra.com"
|
29
|
+
gemspec.homepage = "http://github.com/makandra/mail_magnet"
|
30
|
+
gemspec.description = "Override ActionMailer recipients so all mails go to a given address"
|
31
|
+
gemspec.authors = ["Arne Hartherz"]
|
32
|
+
end
|
33
|
+
rescue LoadError
|
34
|
+
puts "Jeweler not available. Install it with: sudo gem install jeweler"
|
35
|
+
end
|
36
|
+
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
data/lib/mail_magnet.rb
ADDED
data/mail_magnet.gemspec
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
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{mail_magnet}
|
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 = ["Arne Hartherz"]
|
12
|
+
s.date = %q{2010-07-23}
|
13
|
+
s.description = %q{Override ActionMailer recipients so all mails go to a given address}
|
14
|
+
s.email = %q{github@makandra.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"MIT-LICENSE",
|
21
|
+
"README.rdoc",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION",
|
24
|
+
"lib/mail_magnet.rb",
|
25
|
+
"lib/mail_magnet/action_mailer_ext.rb",
|
26
|
+
"lib/mail_magnet/tmail_ext.rb",
|
27
|
+
"mail_magnet.gemspec",
|
28
|
+
"spec/app_root/app/controllers/application_controller.rb",
|
29
|
+
"spec/app_root/app/models/mailer.rb",
|
30
|
+
"spec/app_root/app/views/mailer/letter.erb",
|
31
|
+
"spec/app_root/config/boot.rb",
|
32
|
+
"spec/app_root/config/database.yml",
|
33
|
+
"spec/app_root/config/environment.rb",
|
34
|
+
"spec/app_root/config/environments/in_memory.rb",
|
35
|
+
"spec/app_root/config/environments/mysql.rb",
|
36
|
+
"spec/app_root/config/environments/postgresql.rb",
|
37
|
+
"spec/app_root/config/environments/sqlite.rb",
|
38
|
+
"spec/app_root/config/environments/sqlite3.rb",
|
39
|
+
"spec/app_root/config/routes.rb",
|
40
|
+
"spec/app_root/lib/console_with_fixtures.rb",
|
41
|
+
"spec/app_root/log/.gitignore",
|
42
|
+
"spec/app_root/script/console",
|
43
|
+
"spec/mail_magnet_spec.rb",
|
44
|
+
"spec/spec_helper.rb",
|
45
|
+
"spec/support/rcov.opts",
|
46
|
+
"spec/support/spec.opts"
|
47
|
+
]
|
48
|
+
s.homepage = %q{http://github.com/makandra/mail_magnet}
|
49
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
50
|
+
s.require_paths = ["lib"]
|
51
|
+
s.rubygems_version = %q{1.3.6}
|
52
|
+
s.summary = %q{Override ActionMailer recipients so all mails go to a given address}
|
53
|
+
s.test_files = [
|
54
|
+
"spec/app_root/config/boot.rb",
|
55
|
+
"spec/app_root/config/environment.rb",
|
56
|
+
"spec/app_root/config/routes.rb",
|
57
|
+
"spec/app_root/config/environments/in_memory.rb",
|
58
|
+
"spec/app_root/config/environments/mysql.rb",
|
59
|
+
"spec/app_root/config/environments/postgresql.rb",
|
60
|
+
"spec/app_root/config/environments/sqlite.rb",
|
61
|
+
"spec/app_root/config/environments/sqlite3.rb",
|
62
|
+
"spec/app_root/lib/console_with_fixtures.rb",
|
63
|
+
"spec/app_root/app/controllers/application_controller.rb",
|
64
|
+
"spec/app_root/app/models/mailer.rb",
|
65
|
+
"spec/spec_helper.rb",
|
66
|
+
"spec/mail_magnet_spec.rb"
|
67
|
+
]
|
68
|
+
|
69
|
+
if s.respond_to? :specification_version then
|
70
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
71
|
+
s.specification_version = 3
|
72
|
+
|
73
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
74
|
+
else
|
75
|
+
end
|
76
|
+
else
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
in_memory:
|
2
|
+
adapter: sqlite3
|
3
|
+
database: ":memory:"
|
4
|
+
verbosity: quiet
|
5
|
+
sqlite:
|
6
|
+
adapter: sqlite
|
7
|
+
dbfile: plugin_test.sqlite.db
|
8
|
+
sqlite3:
|
9
|
+
adapter: sqlite3
|
10
|
+
dbfile: plugin_test.sqlite3.db
|
11
|
+
postgresql:
|
12
|
+
adapter: postgresql
|
13
|
+
username: postgres
|
14
|
+
password: postgres
|
15
|
+
database: plugin_test
|
16
|
+
mysql:
|
17
|
+
adapter: mysql
|
18
|
+
host: localhost
|
19
|
+
username: root
|
20
|
+
password:
|
21
|
+
database: plugin_test
|
@@ -0,0 +1 @@
|
|
1
|
+
*.log
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Arne Hartherz
|
@@ -27,10 +27,34 @@ extensions: []
|
|
27
27
|
extra_rdoc_files:
|
28
28
|
- README.rdoc
|
29
29
|
files:
|
30
|
+
- .gitignore
|
31
|
+
- MIT-LICENSE
|
32
|
+
- README.rdoc
|
33
|
+
- Rakefile
|
34
|
+
- VERSION
|
35
|
+
- lib/mail_magnet.rb
|
30
36
|
- lib/mail_magnet/action_mailer_ext.rb
|
31
37
|
- lib/mail_magnet/tmail_ext.rb
|
38
|
+
- mail_magnet.gemspec
|
39
|
+
- spec/app_root/app/controllers/application_controller.rb
|
40
|
+
- spec/app_root/app/models/mailer.rb
|
32
41
|
- spec/app_root/app/views/mailer/letter.erb
|
33
|
-
-
|
42
|
+
- spec/app_root/config/boot.rb
|
43
|
+
- spec/app_root/config/database.yml
|
44
|
+
- spec/app_root/config/environment.rb
|
45
|
+
- spec/app_root/config/environments/in_memory.rb
|
46
|
+
- spec/app_root/config/environments/mysql.rb
|
47
|
+
- spec/app_root/config/environments/postgresql.rb
|
48
|
+
- spec/app_root/config/environments/sqlite.rb
|
49
|
+
- spec/app_root/config/environments/sqlite3.rb
|
50
|
+
- spec/app_root/config/routes.rb
|
51
|
+
- spec/app_root/lib/console_with_fixtures.rb
|
52
|
+
- spec/app_root/log/.gitignore
|
53
|
+
- spec/app_root/script/console
|
54
|
+
- spec/mail_magnet_spec.rb
|
55
|
+
- spec/spec_helper.rb
|
56
|
+
- spec/support/rcov.opts
|
57
|
+
- spec/support/spec.opts
|
34
58
|
has_rdoc: true
|
35
59
|
homepage: http://github.com/makandra/mail_magnet
|
36
60
|
licenses: []
|