queued_mail 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +118 -0
- data/Rakefile +40 -0
- data/app/assets/javascripts/queued_mail/application.js +15 -0
- data/app/assets/stylesheets/queued_mail/application.css +13 -0
- data/app/controllers/queued_mail/application_controller.rb +4 -0
- data/app/helpers/queued_mail/application_helper.rb +4 -0
- data/app/models/queued_mail/message.rb +18 -0
- data/app/views/layouts/queued_mail/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20120906053621_create_queued_mail_messages.rb +19 -0
- data/lib/queued_mail/delivery_method.rb +29 -0
- data/lib/queued_mail/engine.rb +14 -0
- data/lib/queued_mail/job.rb +15 -0
- data/lib/queued_mail/mailer.rb +18 -0
- data/lib/queued_mail/queue/amazon_sqs.rb +54 -0
- data/lib/queued_mail/queue/resque.rb +22 -0
- data/lib/queued_mail/version.rb +3 -0
- data/lib/queued_mail.rb +13 -0
- data/lib/tasks/queued_mail_tasks.rake +11 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/sample_mailer.rb +28 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/sample_mailer/attachment_test.html.erb +2 -0
- data/test/dummy/app/views/sample_mailer/attachment_test.text.erb +1 -0
- data/test/dummy/app/views/sample_mailer/inline_attachment_test.html.erb +2 -0
- data/test/dummy/app/views/sample_mailer/inline_attachment_test.text.erb +2 -0
- data/test/dummy/app/views/sample_mailer/multipart_test.html.erb +1 -0
- data/test/dummy/app/views/sample_mailer/multipart_test.text.erb +1 -0
- data/test/dummy/app/views/sample_mailer/simple.text.erb +3 -0
- data/test/dummy/config/application.rb +65 -0
- data/test/dummy/config/aws.yml +8 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +40 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/aws.rb +7 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/load_rasqueue.rb +8 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/resque.yml +3 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20120906073754_create_queued_mail_messages.queued_mail.rb +20 -0
- data/test/dummy/db/schema.rb +32 -0
- data/test/dummy/file/cat.jpg +0 -0
- data/test/dummy/log/development.log +75427 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/functional/sample_mailer_test.rb +12 -0
- data/test/fixtures/queued_mail/messages.yml +21 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/queued_mail_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/test/unit/queued_mail/message_test.rb +9 -0
- metadata +205 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SampleMailerTest < ActionMailer::TestCase
|
4
|
+
test "simple" do
|
5
|
+
mail = SampleMailer.simple
|
6
|
+
assert_equal "Simple", mail.subject
|
7
|
+
assert_equal ["to@example.org"], mail.to
|
8
|
+
assert_equal ["from@example.com"], mail.from
|
9
|
+
assert_match "Hi", mail.body.encoded
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
one:
|
4
|
+
subject: MyString
|
5
|
+
body:
|
6
|
+
recipient_address: MyString
|
7
|
+
recipient_name: MyString
|
8
|
+
sender_address: MyString
|
9
|
+
sender_name: MyString
|
10
|
+
reply_to_address: MyString
|
11
|
+
reply_to_name: MyString
|
12
|
+
|
13
|
+
two:
|
14
|
+
subject: MyString
|
15
|
+
body:
|
16
|
+
recipient_address: MyString
|
17
|
+
recipient_name: MyString
|
18
|
+
sender_address: MyString
|
19
|
+
sender_name: MyString
|
20
|
+
reply_to_address: MyString
|
21
|
+
reply_to_name: MyString
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,205 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: queued_mail
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Yuichi Takeuchi
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-09-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sqlite3
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Description of QueuedMail.
|
47
|
+
email:
|
48
|
+
- uzuki05@takeyu-web.com
|
49
|
+
executables: []
|
50
|
+
extensions: []
|
51
|
+
extra_rdoc_files: []
|
52
|
+
files:
|
53
|
+
- app/models/queued_mail/message.rb
|
54
|
+
- app/controllers/queued_mail/application_controller.rb
|
55
|
+
- app/assets/stylesheets/queued_mail/application.css
|
56
|
+
- app/assets/javascripts/queued_mail/application.js
|
57
|
+
- app/views/layouts/queued_mail/application.html.erb
|
58
|
+
- app/helpers/queued_mail/application_helper.rb
|
59
|
+
- config/routes.rb
|
60
|
+
- db/migrate/20120906053621_create_queued_mail_messages.rb
|
61
|
+
- lib/queued_mail/delivery_method.rb
|
62
|
+
- lib/queued_mail/mailer.rb
|
63
|
+
- lib/queued_mail/queue/amazon_sqs.rb
|
64
|
+
- lib/queued_mail/queue/resque.rb
|
65
|
+
- lib/queued_mail/job.rb
|
66
|
+
- lib/queued_mail/engine.rb
|
67
|
+
- lib/queued_mail/version.rb
|
68
|
+
- lib/tasks/queued_mail_tasks.rake
|
69
|
+
- lib/queued_mail.rb
|
70
|
+
- MIT-LICENSE
|
71
|
+
- Rakefile
|
72
|
+
- README.rdoc
|
73
|
+
- test/integration/navigation_test.rb
|
74
|
+
- test/dummy/log/development.log
|
75
|
+
- test/dummy/README.rdoc
|
76
|
+
- test/dummy/public/favicon.ico
|
77
|
+
- test/dummy/public/500.html
|
78
|
+
- test/dummy/public/422.html
|
79
|
+
- test/dummy/public/404.html
|
80
|
+
- test/dummy/config.ru
|
81
|
+
- test/dummy/config/initializers/inflections.rb
|
82
|
+
- test/dummy/config/initializers/session_store.rb
|
83
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
84
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
85
|
+
- test/dummy/config/initializers/mime_types.rb
|
86
|
+
- test/dummy/config/initializers/aws.rb
|
87
|
+
- test/dummy/config/initializers/secret_token.rb
|
88
|
+
- test/dummy/config/initializers/load_rasqueue.rb
|
89
|
+
- test/dummy/config/environments/production.rb
|
90
|
+
- test/dummy/config/environments/development.rb
|
91
|
+
- test/dummy/config/environments/test.rb
|
92
|
+
- test/dummy/config/aws.yml
|
93
|
+
- test/dummy/config/boot.rb
|
94
|
+
- test/dummy/config/application.rb
|
95
|
+
- test/dummy/config/database.yml
|
96
|
+
- test/dummy/config/resque.yml
|
97
|
+
- test/dummy/config/environment.rb
|
98
|
+
- test/dummy/config/routes.rb
|
99
|
+
- test/dummy/config/locales/en.yml
|
100
|
+
- test/dummy/file/cat.jpg
|
101
|
+
- test/dummy/db/schema.rb
|
102
|
+
- test/dummy/db/migrate/20120906073754_create_queued_mail_messages.queued_mail.rb
|
103
|
+
- test/dummy/db/development.sqlite3
|
104
|
+
- test/dummy/Rakefile
|
105
|
+
- test/dummy/test/functional/sample_mailer_test.rb
|
106
|
+
- test/dummy/app/controllers/application_controller.rb
|
107
|
+
- test/dummy/app/mailers/sample_mailer.rb
|
108
|
+
- test/dummy/app/assets/stylesheets/application.css
|
109
|
+
- test/dummy/app/assets/javascripts/application.js
|
110
|
+
- test/dummy/app/views/layouts/application.html.erb
|
111
|
+
- test/dummy/app/views/sample_mailer/inline_attachment_test.html.erb
|
112
|
+
- test/dummy/app/views/sample_mailer/multipart_test.text.erb
|
113
|
+
- test/dummy/app/views/sample_mailer/attachment_test.html.erb
|
114
|
+
- test/dummy/app/views/sample_mailer/multipart_test.html.erb
|
115
|
+
- test/dummy/app/views/sample_mailer/attachment_test.text.erb
|
116
|
+
- test/dummy/app/views/sample_mailer/simple.text.erb
|
117
|
+
- test/dummy/app/views/sample_mailer/inline_attachment_test.text.erb
|
118
|
+
- test/dummy/app/helpers/application_helper.rb
|
119
|
+
- test/dummy/script/rails
|
120
|
+
- test/unit/queued_mail/message_test.rb
|
121
|
+
- test/test_helper.rb
|
122
|
+
- test/fixtures/queued_mail/messages.yml
|
123
|
+
- test/queued_mail_test.rb
|
124
|
+
homepage: http://takeyu-web.com/
|
125
|
+
licenses: []
|
126
|
+
post_install_message:
|
127
|
+
rdoc_options: []
|
128
|
+
require_paths:
|
129
|
+
- lib
|
130
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
132
|
+
requirements:
|
133
|
+
- - ! '>='
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
segments:
|
137
|
+
- 0
|
138
|
+
hash: 2737878527955173205
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
141
|
+
requirements:
|
142
|
+
- - ! '>='
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
segments:
|
146
|
+
- 0
|
147
|
+
hash: 2737878527955173205
|
148
|
+
requirements: []
|
149
|
+
rubyforge_project:
|
150
|
+
rubygems_version: 1.8.23
|
151
|
+
signing_key:
|
152
|
+
specification_version: 3
|
153
|
+
summary: Summary of QueuedMail.
|
154
|
+
test_files:
|
155
|
+
- test/integration/navigation_test.rb
|
156
|
+
- test/dummy/log/development.log
|
157
|
+
- test/dummy/README.rdoc
|
158
|
+
- test/dummy/public/favicon.ico
|
159
|
+
- test/dummy/public/500.html
|
160
|
+
- test/dummy/public/422.html
|
161
|
+
- test/dummy/public/404.html
|
162
|
+
- test/dummy/config.ru
|
163
|
+
- test/dummy/config/initializers/inflections.rb
|
164
|
+
- test/dummy/config/initializers/session_store.rb
|
165
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
166
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
167
|
+
- test/dummy/config/initializers/mime_types.rb
|
168
|
+
- test/dummy/config/initializers/aws.rb
|
169
|
+
- test/dummy/config/initializers/secret_token.rb
|
170
|
+
- test/dummy/config/initializers/load_rasqueue.rb
|
171
|
+
- test/dummy/config/environments/production.rb
|
172
|
+
- test/dummy/config/environments/development.rb
|
173
|
+
- test/dummy/config/environments/test.rb
|
174
|
+
- test/dummy/config/aws.yml
|
175
|
+
- test/dummy/config/boot.rb
|
176
|
+
- test/dummy/config/application.rb
|
177
|
+
- test/dummy/config/database.yml
|
178
|
+
- test/dummy/config/resque.yml
|
179
|
+
- test/dummy/config/environment.rb
|
180
|
+
- test/dummy/config/routes.rb
|
181
|
+
- test/dummy/config/locales/en.yml
|
182
|
+
- test/dummy/file/cat.jpg
|
183
|
+
- test/dummy/db/schema.rb
|
184
|
+
- test/dummy/db/migrate/20120906073754_create_queued_mail_messages.queued_mail.rb
|
185
|
+
- test/dummy/db/development.sqlite3
|
186
|
+
- test/dummy/Rakefile
|
187
|
+
- test/dummy/test/functional/sample_mailer_test.rb
|
188
|
+
- test/dummy/app/controllers/application_controller.rb
|
189
|
+
- test/dummy/app/mailers/sample_mailer.rb
|
190
|
+
- test/dummy/app/assets/stylesheets/application.css
|
191
|
+
- test/dummy/app/assets/javascripts/application.js
|
192
|
+
- test/dummy/app/views/layouts/application.html.erb
|
193
|
+
- test/dummy/app/views/sample_mailer/inline_attachment_test.html.erb
|
194
|
+
- test/dummy/app/views/sample_mailer/multipart_test.text.erb
|
195
|
+
- test/dummy/app/views/sample_mailer/attachment_test.html.erb
|
196
|
+
- test/dummy/app/views/sample_mailer/multipart_test.html.erb
|
197
|
+
- test/dummy/app/views/sample_mailer/attachment_test.text.erb
|
198
|
+
- test/dummy/app/views/sample_mailer/simple.text.erb
|
199
|
+
- test/dummy/app/views/sample_mailer/inline_attachment_test.text.erb
|
200
|
+
- test/dummy/app/helpers/application_helper.rb
|
201
|
+
- test/dummy/script/rails
|
202
|
+
- test/unit/queued_mail/message_test.rb
|
203
|
+
- test/test_helper.rb
|
204
|
+
- test/fixtures/queued_mail/messages.yml
|
205
|
+
- test/queued_mail_test.rb
|