nullstyle-railmail 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/controllers/railmail_controller.rb +1 -1
- data/railmail.gemspec +77 -0
- data/tasks/railmail_tasks.rake +35 -0
- data/test/.dummy +0 -0
- metadata +7 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/railmail.gemspec
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{railmail}
|
5
|
+
s.version = "1.1.0"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Scott Fleckenstein"]
|
9
|
+
s.date = %q{2009-07-28}
|
10
|
+
s.email = %q{nullstyle@gmail.com}
|
11
|
+
s.extra_rdoc_files = [
|
12
|
+
"LICENSE",
|
13
|
+
"README.rdoc"
|
14
|
+
]
|
15
|
+
s.files = [
|
16
|
+
".document",
|
17
|
+
".gitignore",
|
18
|
+
"LICENSE",
|
19
|
+
"README.rdoc",
|
20
|
+
"Rakefile",
|
21
|
+
"VERSION",
|
22
|
+
"app/controllers/railmail_controller.rb",
|
23
|
+
"app/controllers/railmail_controller.rb",
|
24
|
+
"app/helpers/railmail_helper.rb",
|
25
|
+
"app/helpers/railmail_helper.rb",
|
26
|
+
"app/models/railmail_delivery.rb",
|
27
|
+
"app/models/railmail_delivery.rb",
|
28
|
+
"app/views/layouts/_javascripts.erb",
|
29
|
+
"app/views/layouts/_javascripts.erb",
|
30
|
+
"app/views/layouts/_styles.erb",
|
31
|
+
"app/views/layouts/_styles.erb",
|
32
|
+
"app/views/layouts/railmail.html.erb",
|
33
|
+
"app/views/layouts/railmail.html.erb",
|
34
|
+
"app/views/railmail/_delivery.html.erb",
|
35
|
+
"app/views/railmail/_delivery.html.erb",
|
36
|
+
"app/views/railmail/index.html.erb",
|
37
|
+
"app/views/railmail/index.html.erb",
|
38
|
+
"app/views/railmail/read.rjs",
|
39
|
+
"app/views/railmail/read.rjs",
|
40
|
+
"generators/railmail_migration/USAGE",
|
41
|
+
"generators/railmail_migration/USAGE",
|
42
|
+
"generators/railmail_migration/railmail_migration_generator.rb",
|
43
|
+
"generators/railmail_migration/railmail_migration_generator.rb",
|
44
|
+
"generators/railmail_migration/templates/migration.rb",
|
45
|
+
"generators/railmail_migration/templates/migration.rb",
|
46
|
+
"lib/railmail.rb",
|
47
|
+
"lib/railmail.rb",
|
48
|
+
"lib/railmail/action_mailer.rb",
|
49
|
+
"lib/railmail/action_mailer.rb",
|
50
|
+
"railmail.gemspec",
|
51
|
+
"rails/init.rb",
|
52
|
+
"rails/init.rb",
|
53
|
+
"tasks/railmail_tasks.rake",
|
54
|
+
"test/.dummy",
|
55
|
+
"test/railmail_test.rb",
|
56
|
+
"test/test_helper.rb"
|
57
|
+
]
|
58
|
+
s.homepage = %q{http://github.com/nullstyle/railmail}
|
59
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
60
|
+
s.require_paths = ["lib"]
|
61
|
+
s.rubygems_version = %q{1.3.4}
|
62
|
+
s.summary = %q{Provides a mock actionmailer with a web interface}
|
63
|
+
s.test_files = [
|
64
|
+
"test/railmail_test.rb",
|
65
|
+
"test/test_helper.rb"
|
66
|
+
]
|
67
|
+
|
68
|
+
if s.respond_to? :specification_version then
|
69
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
70
|
+
s.specification_version = 3
|
71
|
+
|
72
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
73
|
+
else
|
74
|
+
end
|
75
|
+
else
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
namespace :railmail do
|
2
|
+
desc "Add the Database Tables needed for RailMail"
|
3
|
+
task :install => [:environment] do
|
4
|
+
ActiveRecord::Schema.define do
|
5
|
+
create_table :railmail_deliveries do |t|
|
6
|
+
t.column "recipients", :string, :limit => 1.kilobyte
|
7
|
+
t.column "from", :string, :limit => 255
|
8
|
+
t.column "subject", :string, :limit => 1.kilobyte
|
9
|
+
t.column "sent_at", :datetime
|
10
|
+
t.column "read_at", :datetime
|
11
|
+
t.column "raw", :string, :limit => 10.megabytes
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
task :uninstall => [:environment] do
|
17
|
+
ActiveRecord::Schema.define do
|
18
|
+
drop_table :railmail_deliveries
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
task :reinstall => [:uninstall, :install]
|
23
|
+
|
24
|
+
task :clear => :environment do
|
25
|
+
RailmailDelivery.delete_all
|
26
|
+
end
|
27
|
+
|
28
|
+
desc "Creates the railmail table migration"
|
29
|
+
task :migration => :environment do
|
30
|
+
raise "Task unavailable to this database (no migration support)" unless ActiveRecord::Base.connection.supports_migrations?
|
31
|
+
require 'rails_generator'
|
32
|
+
require 'rails_generator/scripts/generate'
|
33
|
+
Rails::Generator::Scripts::Generate.new.run(["railmail_migration", ENV["MIGRATION"] || "AddRailmailTable"])
|
34
|
+
end
|
35
|
+
end
|
data/test/.dummy
ADDED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nullstyle-railmail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Fleckenstein
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-28 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -43,11 +43,15 @@ files:
|
|
43
43
|
- generators/railmail_migration/templates/migration.rb
|
44
44
|
- lib/railmail.rb
|
45
45
|
- lib/railmail/action_mailer.rb
|
46
|
+
- railmail.gemspec
|
46
47
|
- rails/init.rb
|
48
|
+
- tasks/railmail_tasks.rake
|
49
|
+
- test/.dummy
|
47
50
|
- test/railmail_test.rb
|
48
51
|
- test/test_helper.rb
|
49
52
|
has_rdoc: false
|
50
53
|
homepage: http://github.com/nullstyle/railmail
|
54
|
+
licenses:
|
51
55
|
post_install_message:
|
52
56
|
rdoc_options:
|
53
57
|
- --charset=UTF-8
|
@@ -68,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
72
|
requirements: []
|
69
73
|
|
70
74
|
rubyforge_project:
|
71
|
-
rubygems_version: 1.
|
75
|
+
rubygems_version: 1.3.5
|
72
76
|
signing_key:
|
73
77
|
specification_version: 3
|
74
78
|
summary: Provides a mock actionmailer with a web interface
|