queued_mail 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/queued_mail/job.rb +5 -3
- data/lib/queued_mail/version.rb +1 -1
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/jp_sample_mailer.rb +36 -0
- data/spec/dummy/app/mailers/sample_mailer.rb +29 -0
- data/spec/dummy/app/views/jp_sample_mailer/attachment_test.html.erb +5 -0
- data/spec/dummy/app/views/jp_sample_mailer/attachment_test.text.erb +4 -0
- data/spec/dummy/app/views/jp_sample_mailer/inline_attachment_test.html.erb +5 -0
- data/spec/dummy/app/views/jp_sample_mailer/inline_attachment_test.text.erb +5 -0
- data/spec/dummy/app/views/jp_sample_mailer/multipart_test.html.erb +4 -0
- data/spec/dummy/app/views/jp_sample_mailer/multipart_test.text.erb +4 -0
- data/spec/dummy/app/views/jp_sample_mailer/simple_test.text.erb +6 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/sample_mailer/attachment_test.html.erb +2 -0
- data/spec/dummy/app/views/sample_mailer/attachment_test.text.erb +1 -0
- data/spec/dummy/app/views/sample_mailer/inline_attachment_test.html.erb +2 -0
- data/spec/dummy/app/views/sample_mailer/inline_attachment_test.text.erb +2 -0
- data/spec/dummy/app/views/sample_mailer/multipart_test.html.erb +1 -0
- data/spec/dummy/app/views/sample_mailer/multipart_test.text.erb +1 -0
- data/spec/dummy/app/views/sample_mailer/simple.text.erb +3 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/aws.yml +15 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +29 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +44 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +38 -0
- data/spec/dummy/config/initializers/aws.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/load_rasqueue.rb +8 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/resque.yml +3 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20121031094220_create_queued_mail_messages2.queued_mail.rb +11 -0
- data/spec/dummy/db/schema.rb +23 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/file/cat.jpg +0 -0
- data/spec/dummy/log/development.log +20 -0
- data/spec/dummy/log/test.log +2344 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/test/mailer/jp_sample_mailer_test.rb +11 -0
- data/spec/dummy/test/mailer/sample_mailer_test.rb +12 -0
- data/spec/files/001.eml +11 -0
- data/spec/queued_mail/delivery_method_spec.rb +50 -0
- data/spec/queued_mail/job_spec.rb +88 -0
- data/spec/queued_mail/mailer_spec.rb +38 -0
- data/spec/spec_helper.rb +39 -0
- data/spec/support/file_read.rb +4 -0
- metadata +164 -16
@@ -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_test" do
|
5
|
+
mail = SampleMailer.simple_test
|
6
|
+
assert_equal "Simple", mail.subject
|
7
|
+
assert_equal ["uzuki05@takeyu-web.com"], mail.to
|
8
|
+
assert_equal ["from@takeyu-web.com"], mail.from
|
9
|
+
assert_match "Hi", mail.body.encoded
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
data/spec/files/001.eml
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
Date: Wed, 31 Oct 2012 17:35:37 +0900
|
2
|
+
From: from@takeyu-web.com
|
3
|
+
To: Yuichi Takeuchi <uzuki05@takeyu-web.com>
|
4
|
+
Message-ID: <5090e2d9a350_befbf581069666@dev.mail>
|
5
|
+
Subject: Simple test
|
6
|
+
Mime-Version: 1.0
|
7
|
+
Content-Type: text/plain;
|
8
|
+
charset=UTF-8
|
9
|
+
Content-Transfer-Encoding: 7bit
|
10
|
+
|
11
|
+
plain text mail.
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe QueuedMail::DeliveryMethod, 'deliver!(mail)' do
|
5
|
+
|
6
|
+
it 'QueuedMail::Messageオブジェクトが作成されること' do
|
7
|
+
mail = ::Mail.new(file_read('001.eml'))
|
8
|
+
delivery_method = QueuedMail::DeliveryMethod.new({})
|
9
|
+
expect{ delivery_method.deliver!(mail) }.to change(QueuedMail::Message, :count).by(1)
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'bccアドレスが設定されること' do
|
13
|
+
mail = ::Mail.new(file_read('001.eml'))
|
14
|
+
delivery_method = QueuedMail::DeliveryMethod.new({})
|
15
|
+
delivery_method.deliver!(mail)
|
16
|
+
QueuedMail::Message.last.bcc_addresses.should be_nil
|
17
|
+
end
|
18
|
+
|
19
|
+
it 'bccアドレスが設定されること' do
|
20
|
+
mail = ::Mail.new(file_read('001.eml'))
|
21
|
+
mail.bcc = '竹内雄一 <uzuki05@takeyu-web.com>'
|
22
|
+
delivery_method = QueuedMail::DeliveryMethod.new({})
|
23
|
+
delivery_method.deliver!(mail)
|
24
|
+
QueuedMail::Message.last.bcc_addresses.should == 'uzuki05@takeyu-web.com'
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'bccアドレスが設定されること' do
|
28
|
+
mail = ::Mail.new(file_read('001.eml'))
|
29
|
+
mail.bcc = '竹内雄一 <uzuki05+extend@takeyu-web.com>'
|
30
|
+
delivery_method = QueuedMail::DeliveryMethod.new({})
|
31
|
+
delivery_method.deliver!(mail)
|
32
|
+
QueuedMail::Message.last.bcc_addresses.should == 'uzuki05+extend@takeyu-web.com'
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'bccアドレスが設定されること' do
|
36
|
+
mail = ::Mail.new(file_read('001.eml'))
|
37
|
+
mail.bcc = '竹内雄一 <uzuki05@takeyu-web.com>, hoge@takeyu-web.com'
|
38
|
+
delivery_method = QueuedMail::DeliveryMethod.new({})
|
39
|
+
delivery_method.deliver!(mail)
|
40
|
+
QueuedMail::Message.last.bcc_addresses.should == 'uzuki05@takeyu-web.com, hoge@takeyu-web.com'
|
41
|
+
end
|
42
|
+
|
43
|
+
it 'bccアドレスが設定されること' do
|
44
|
+
mail = ::Mail.new(file_read('001.eml'))
|
45
|
+
mail.bcc = '竹内雄一 <uzuki05+extend@takeyu-web.com>, hoge+extend@takeyu-web.com'
|
46
|
+
delivery_method = QueuedMail::DeliveryMethod.new({})
|
47
|
+
delivery_method.deliver!(mail)
|
48
|
+
QueuedMail::Message.last.bcc_addresses.should == 'uzuki05+extend@takeyu-web.com, hoge+extend@takeyu-web.com'
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe QueuedMail::Job do
|
5
|
+
|
6
|
+
let(:message) do
|
7
|
+
message = QueuedMail::Message.create(source: <<'EML')
|
8
|
+
Message-ID: <5042BF6B.3010600@takeyu-web.com>
|
9
|
+
Date: Sun, 02 Sep 2012 11:07:39 +0900
|
10
|
+
From: Yuichi Takeuchi <uzuki05@takeyu-web.com>
|
11
|
+
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0
|
12
|
+
MIME-Version: 1.0
|
13
|
+
To: test@takeyu-web.com
|
14
|
+
Subject: test
|
15
|
+
Content-Type: text/plain; charset=ISO-2022-JP
|
16
|
+
Content-Transfer-Encoding: 7bit
|
17
|
+
|
18
|
+
test
|
19
|
+
EML
|
20
|
+
end
|
21
|
+
|
22
|
+
describe '#perform' do
|
23
|
+
let(:mail){ double(Mail::Message).as_null_object }
|
24
|
+
before do
|
25
|
+
QueuedMail::Mailer.stub(:original_email).and_return(mail)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "nothing raises" do
|
29
|
+
expect{ QueuedMail::Job.perform('message_id' => message.id) }.to_not raise_error
|
30
|
+
end
|
31
|
+
|
32
|
+
it "raises" do
|
33
|
+
Rails.logger.should_receive(:error)
|
34
|
+
QueuedMail::Job.perform('message_id' => 1)
|
35
|
+
end
|
36
|
+
|
37
|
+
it do
|
38
|
+
QueuedMail::Mailer.should_receive(:original_email).with(message).and_return(double(Mail::Message).as_null_object)
|
39
|
+
QueuedMail::Job.perform('message_id' => message.id)
|
40
|
+
end
|
41
|
+
|
42
|
+
it do
|
43
|
+
mail.should_receive(:deliver)
|
44
|
+
QueuedMail::Job.perform('message_id' => message.id)
|
45
|
+
end
|
46
|
+
|
47
|
+
it do
|
48
|
+
QueuedMail::Message.stub(:find).and_return(message)
|
49
|
+
message.should_receive(:destroy)
|
50
|
+
QueuedMail::Job.perform('message_id' => message.id)
|
51
|
+
end
|
52
|
+
|
53
|
+
[1, 2, 3].each do |retry_limit|
|
54
|
+
context "config.mail_queue_retry_limit = #{retry_limit}" do
|
55
|
+
before do
|
56
|
+
Rails.application.config.stub(mail_queue_retry_limit: retry_limit,
|
57
|
+
mail_queue_retry_interval: 0)
|
58
|
+
message.stub(:with_lock).and_yield()
|
59
|
+
end
|
60
|
+
it do
|
61
|
+
QueuedMail::Message.should_receive(:find).exactly(retry_limit + 1).times.and_raise(ActiveRecord::RecordNotFound)
|
62
|
+
QueuedMail::Job.perform('message_id' => message.id)
|
63
|
+
end
|
64
|
+
|
65
|
+
it do
|
66
|
+
QueuedMail::Message.should_receive(:find).exactly(1).times.and_return(message)
|
67
|
+
QueuedMail::Job.perform('message_id' => message.id)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
[1, 2, 3].each do |retry_interval|
|
73
|
+
context "config.mail_queue_retry_interval = #{retry_interval}" do
|
74
|
+
before do
|
75
|
+
Rails.application.config.stub(mail_queue_retry_limit: 1,
|
76
|
+
mail_queue_retry_interval: retry_interval)
|
77
|
+
end
|
78
|
+
it do
|
79
|
+
rel = stub('ActiveRecord::Relation')
|
80
|
+
QueuedMail::Job.should_receive(:sleep).with(retry_interval)
|
81
|
+
QueuedMail::Job.perform('message_id' => 1)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'spec_helper'
|
3
|
+
|
4
|
+
describe QueuedMail::Mailer do
|
5
|
+
let(:message){ stub_model(QueuedMail::Message, source: file_read('001.eml')) }
|
6
|
+
{
|
7
|
+
smtp: Mail::SMTP,
|
8
|
+
sendmail: Mail::Sendmail
|
9
|
+
}.each do |method, klass|
|
10
|
+
it 'delivery_method' do
|
11
|
+
QueuedMail::Mailer.delivery_method = method
|
12
|
+
mail = QueuedMail::Mailer.original_email(message)
|
13
|
+
mail.delivery_method.should be_is_a(klass)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
[nil,
|
18
|
+
'',
|
19
|
+
].each do |addresses|
|
20
|
+
it "BCC addresses(#{addresses.inspect})" do
|
21
|
+
message.stub(:bcc_addresses).and_return(addresses)
|
22
|
+
QueuedMail::Mailer.original_email(message).bcc.should be_empty
|
23
|
+
end
|
24
|
+
end
|
25
|
+
[
|
26
|
+
'hoge@takeyu-web.com, fuga@takeyu-web.com',
|
27
|
+
].each do |addresses|
|
28
|
+
it "BCC addresses(#{addresses})" do
|
29
|
+
message.stub(:bcc_addresses).and_return(addresses.force_encoding('binary'))
|
30
|
+
QueuedMail::Mailer.original_email(message).bcc.should == ['hoge@takeyu-web.com', 'fuga@takeyu-web.com']
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'subject' do
|
35
|
+
QueuedMail::Mailer.original_email(message).subject.should == 'Simple test'
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
ENV["RAILS_ENV"] = 'test'
|
3
|
+
require File.expand_path("../../spec/dummy/config/environment", __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'rspec/autorun'
|
6
|
+
|
7
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
8
|
+
# in spec/support/ and its subdirectories.
|
9
|
+
Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}
|
10
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
# ## Mock Framework
|
14
|
+
#
|
15
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
16
|
+
#
|
17
|
+
# config.mock_with :mocha
|
18
|
+
# config.mock_with :flexmock
|
19
|
+
# config.mock_with :rr
|
20
|
+
|
21
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
22
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
23
|
+
|
24
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
25
|
+
# examples within a transaction, remove the following line or assign false
|
26
|
+
# instead of true.
|
27
|
+
config.use_transactional_fixtures = false
|
28
|
+
|
29
|
+
# If true, the base class of anonymous controllers will be inferred
|
30
|
+
# automatically. This will be the default behavior in future versions of
|
31
|
+
# rspec-rails.
|
32
|
+
config.infer_base_class_for_anonymous_controllers = false
|
33
|
+
|
34
|
+
# Run specs in random order to surface order dependencies. If you find an
|
35
|
+
# order dependency and want to debug it, you can fix the order by providing
|
36
|
+
# the seed, which is printed after each run.
|
37
|
+
# --seed 1234
|
38
|
+
config.order = "random"
|
39
|
+
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queued_mail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.8
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Yuichi Takeuchi
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,19 +27,45 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: mail
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 2.4.4
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 2.4.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mysql2
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
46
69
|
description: Description of QueuedMail.
|
47
70
|
email:
|
48
71
|
- uzuki05@takeyu-web.com
|
@@ -70,28 +93,153 @@ files:
|
|
70
93
|
- MIT-LICENSE
|
71
94
|
- Rakefile
|
72
95
|
- README.rdoc
|
96
|
+
- spec/queued_mail/job_spec.rb
|
97
|
+
- spec/queued_mail/mailer_spec.rb
|
98
|
+
- spec/queued_mail/delivery_method_spec.rb
|
99
|
+
- spec/spec_helper.rb
|
100
|
+
- spec/dummy/log/test.log
|
101
|
+
- spec/dummy/log/development.log
|
102
|
+
- spec/dummy/README.rdoc
|
103
|
+
- spec/dummy/public/favicon.ico
|
104
|
+
- spec/dummy/public/500.html
|
105
|
+
- spec/dummy/public/422.html
|
106
|
+
- spec/dummy/public/404.html
|
107
|
+
- spec/dummy/config.ru
|
108
|
+
- spec/dummy/config/initializers/inflections.rb
|
109
|
+
- spec/dummy/config/initializers/session_store.rb
|
110
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
111
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
112
|
+
- spec/dummy/config/initializers/mime_types.rb
|
113
|
+
- spec/dummy/config/initializers/aws.rb
|
114
|
+
- spec/dummy/config/initializers/secret_token.rb
|
115
|
+
- spec/dummy/config/initializers/load_rasqueue.rb
|
116
|
+
- spec/dummy/config/environments/production.rb
|
117
|
+
- spec/dummy/config/environments/development.rb
|
118
|
+
- spec/dummy/config/environments/test.rb
|
119
|
+
- spec/dummy/config/aws.yml
|
120
|
+
- spec/dummy/config/boot.rb
|
121
|
+
- spec/dummy/config/application.rb
|
122
|
+
- spec/dummy/config/database.yml
|
123
|
+
- spec/dummy/config/resque.yml
|
124
|
+
- spec/dummy/config/environment.rb
|
125
|
+
- spec/dummy/config/routes.rb
|
126
|
+
- spec/dummy/config/locales/en.yml
|
127
|
+
- spec/dummy/file/cat.jpg
|
128
|
+
- spec/dummy/db/schema.rb
|
129
|
+
- spec/dummy/db/test.sqlite3
|
130
|
+
- spec/dummy/db/migrate/20121031094220_create_queued_mail_messages2.queued_mail.rb
|
131
|
+
- spec/dummy/db/development.sqlite3
|
132
|
+
- spec/dummy/Rakefile
|
133
|
+
- spec/dummy/test/mailer/jp_sample_mailer_test.rb
|
134
|
+
- spec/dummy/test/mailer/sample_mailer_test.rb
|
135
|
+
- spec/dummy/app/controllers/application_controller.rb
|
136
|
+
- spec/dummy/app/mailers/jp_sample_mailer.rb
|
137
|
+
- spec/dummy/app/mailers/sample_mailer.rb
|
138
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
139
|
+
- spec/dummy/app/assets/javascripts/application.js
|
140
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
141
|
+
- spec/dummy/app/views/jp_sample_mailer/inline_attachment_test.html.erb
|
142
|
+
- spec/dummy/app/views/jp_sample_mailer/multipart_test.text.erb
|
143
|
+
- spec/dummy/app/views/jp_sample_mailer/attachment_test.html.erb
|
144
|
+
- spec/dummy/app/views/jp_sample_mailer/multipart_test.html.erb
|
145
|
+
- spec/dummy/app/views/jp_sample_mailer/simple_test.text.erb
|
146
|
+
- spec/dummy/app/views/jp_sample_mailer/attachment_test.text.erb
|
147
|
+
- spec/dummy/app/views/jp_sample_mailer/inline_attachment_test.text.erb
|
148
|
+
- spec/dummy/app/views/sample_mailer/inline_attachment_test.html.erb
|
149
|
+
- spec/dummy/app/views/sample_mailer/multipart_test.text.erb
|
150
|
+
- spec/dummy/app/views/sample_mailer/attachment_test.html.erb
|
151
|
+
- spec/dummy/app/views/sample_mailer/multipart_test.html.erb
|
152
|
+
- spec/dummy/app/views/sample_mailer/attachment_test.text.erb
|
153
|
+
- spec/dummy/app/views/sample_mailer/simple.text.erb
|
154
|
+
- spec/dummy/app/views/sample_mailer/inline_attachment_test.text.erb
|
155
|
+
- spec/dummy/app/helpers/application_helper.rb
|
156
|
+
- spec/dummy/script/rails
|
157
|
+
- spec/files/001.eml
|
158
|
+
- spec/support/file_read.rb
|
73
159
|
homepage: https://github.com/uzuki05/queued_mail
|
74
160
|
licenses: []
|
161
|
+
metadata: {}
|
75
162
|
post_install_message:
|
76
163
|
rdoc_options: []
|
77
164
|
require_paths:
|
78
165
|
- lib
|
79
166
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
167
|
requirements:
|
82
|
-
- -
|
168
|
+
- - '>='
|
83
169
|
- !ruby/object:Gem::Version
|
84
170
|
version: '0'
|
85
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
172
|
requirements:
|
88
|
-
- -
|
173
|
+
- - '>='
|
89
174
|
- !ruby/object:Gem::Version
|
90
175
|
version: '0'
|
91
176
|
requirements: []
|
92
177
|
rubyforge_project:
|
93
|
-
rubygems_version:
|
178
|
+
rubygems_version: 2.0.3
|
94
179
|
signing_key:
|
95
|
-
specification_version:
|
180
|
+
specification_version: 4
|
96
181
|
summary: Summary of QueuedMail.
|
97
|
-
test_files:
|
182
|
+
test_files:
|
183
|
+
- spec/queued_mail/job_spec.rb
|
184
|
+
- spec/queued_mail/mailer_spec.rb
|
185
|
+
- spec/queued_mail/delivery_method_spec.rb
|
186
|
+
- spec/spec_helper.rb
|
187
|
+
- spec/dummy/log/test.log
|
188
|
+
- spec/dummy/log/development.log
|
189
|
+
- spec/dummy/README.rdoc
|
190
|
+
- spec/dummy/public/favicon.ico
|
191
|
+
- spec/dummy/public/500.html
|
192
|
+
- spec/dummy/public/422.html
|
193
|
+
- spec/dummy/public/404.html
|
194
|
+
- spec/dummy/config.ru
|
195
|
+
- spec/dummy/config/initializers/inflections.rb
|
196
|
+
- spec/dummy/config/initializers/session_store.rb
|
197
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
198
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
199
|
+
- spec/dummy/config/initializers/mime_types.rb
|
200
|
+
- spec/dummy/config/initializers/aws.rb
|
201
|
+
- spec/dummy/config/initializers/secret_token.rb
|
202
|
+
- spec/dummy/config/initializers/load_rasqueue.rb
|
203
|
+
- spec/dummy/config/environments/production.rb
|
204
|
+
- spec/dummy/config/environments/development.rb
|
205
|
+
- spec/dummy/config/environments/test.rb
|
206
|
+
- spec/dummy/config/aws.yml
|
207
|
+
- spec/dummy/config/boot.rb
|
208
|
+
- spec/dummy/config/application.rb
|
209
|
+
- spec/dummy/config/database.yml
|
210
|
+
- spec/dummy/config/resque.yml
|
211
|
+
- spec/dummy/config/environment.rb
|
212
|
+
- spec/dummy/config/routes.rb
|
213
|
+
- spec/dummy/config/locales/en.yml
|
214
|
+
- spec/dummy/file/cat.jpg
|
215
|
+
- spec/dummy/db/schema.rb
|
216
|
+
- spec/dummy/db/test.sqlite3
|
217
|
+
- spec/dummy/db/migrate/20121031094220_create_queued_mail_messages2.queued_mail.rb
|
218
|
+
- spec/dummy/db/development.sqlite3
|
219
|
+
- spec/dummy/Rakefile
|
220
|
+
- spec/dummy/test/mailer/jp_sample_mailer_test.rb
|
221
|
+
- spec/dummy/test/mailer/sample_mailer_test.rb
|
222
|
+
- spec/dummy/app/controllers/application_controller.rb
|
223
|
+
- spec/dummy/app/mailers/jp_sample_mailer.rb
|
224
|
+
- spec/dummy/app/mailers/sample_mailer.rb
|
225
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
226
|
+
- spec/dummy/app/assets/javascripts/application.js
|
227
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
228
|
+
- spec/dummy/app/views/jp_sample_mailer/inline_attachment_test.html.erb
|
229
|
+
- spec/dummy/app/views/jp_sample_mailer/multipart_test.text.erb
|
230
|
+
- spec/dummy/app/views/jp_sample_mailer/attachment_test.html.erb
|
231
|
+
- spec/dummy/app/views/jp_sample_mailer/multipart_test.html.erb
|
232
|
+
- spec/dummy/app/views/jp_sample_mailer/simple_test.text.erb
|
233
|
+
- spec/dummy/app/views/jp_sample_mailer/attachment_test.text.erb
|
234
|
+
- spec/dummy/app/views/jp_sample_mailer/inline_attachment_test.text.erb
|
235
|
+
- spec/dummy/app/views/sample_mailer/inline_attachment_test.html.erb
|
236
|
+
- spec/dummy/app/views/sample_mailer/multipart_test.text.erb
|
237
|
+
- spec/dummy/app/views/sample_mailer/attachment_test.html.erb
|
238
|
+
- spec/dummy/app/views/sample_mailer/multipart_test.html.erb
|
239
|
+
- spec/dummy/app/views/sample_mailer/attachment_test.text.erb
|
240
|
+
- spec/dummy/app/views/sample_mailer/simple.text.erb
|
241
|
+
- spec/dummy/app/views/sample_mailer/inline_attachment_test.text.erb
|
242
|
+
- spec/dummy/app/helpers/application_helper.rb
|
243
|
+
- spec/dummy/script/rails
|
244
|
+
- spec/files/001.eml
|
245
|
+
- spec/support/file_read.rb
|