mailhopper 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,13 +1,13 @@
1
1
  = Mailhopper
2
2
 
3
- Mailhopper provides an ActiveRecord based queue for email storage and delivery in Rails apps.
3
+ Mailhopper provides a simple ActiveRecord-based queue for asynchronous delivery of email in Rails apps.
4
4
 
5
5
  Why use Mailhopper to queue your email?
6
6
  * Mailhopper captures the full content and headers of emails at their time of creation. It can handle multiple MIME types and attachments.
7
7
  * If email can't be delivered from your queue (e.g. your smtp server is down), you can retry delivery until successful.
8
8
  * Emails can be accessed at any time, even after they've been sent.
9
9
 
10
- Mailhopper is intended to be used along with a delivery agent such as DelayedMailhopper, which uses DelayedJob to deliver email from the Mailhopper queue. Without use of a delivery agent, emails will accumulate in the Mailhopper queue but won't be delivered.
10
+ Mailhopper is intended to be used along with a delivery agent such as DelayedMailhopper, which uses DelayedJob to deliver email from the Mailhopper queue. Without a delivery agent, emails will accumulate in the Mailhopper queue but won't be delivered.
11
11
 
12
12
  == Requirements
13
13
 
@@ -31,11 +31,11 @@ Migrate your database:
31
31
 
32
32
  rake db:migrate
33
33
 
34
- !!! Don't forget to also install a delivery agent, such as DelayedMailhopper, so that emails will be delivered from your queue !!!
34
+ Don't forget to also install a delivery agent, such as DelayedMailhopper, so that emails will be delivered from your queue !!!
35
35
 
36
36
  == Configuration
37
37
 
38
- If you want all of your application's email to be queued in Mailhopper, configure mailers either in environment.rb or your application's environment-specific configuration files:
38
+ If you want all of your application's email to be queued with Mailhopper, configure mailers either in application.rb or your application's environment-specific configuration files:
39
39
 
40
40
  MyApp::Application.configure do
41
41
  config.action_mailer.delivery_method = :mailhopper
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env rake
2
2
  begin
3
3
  require 'bundler/setup'
4
+ Bundler::GemHelper.install_tasks
4
5
  rescue LoadError
5
6
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
7
  end
@@ -7,19 +7,19 @@ To configure your application to use Mailhopper:
7
7
 
8
8
  1) Migrate your database with "rake db:migrate".
9
9
 
10
- 2) Configure mailers either in environment.rb or environment-specific config files:
10
+ 2) If you want all of your application's email to be queued with Mailhopper, configure mailers either in application.rb or your application's environment-specific configuration files:
11
11
 
12
12
  MyApp::Application.configure do
13
13
  config.action_mailer.delivery_method = :mailhopper
14
14
  end
15
15
 
16
- Alternatively, or additionally, you can configure individual mailers:
16
+ Alternatively, or additionally, configure individual mailers to use Mailhopper:
17
17
 
18
18
  class MyMailer < ActionMailer::Base
19
19
  ActionMailer::Base.delivery_method = :mailhopper
20
20
  end
21
21
 
22
- 3) Install a delivery agent, such as DelayedMailhopper, so that emails will be delivered from your queue.
22
+ 3) Install a delivery agent, such as DelayedMailhopper, to deliver emails from your queue.
23
23
 
24
24
  4) Configure a delivery method in "config/initializers/mailhopper" for your delivery agent to use (the default is smtp).
25
25
 
@@ -1,3 +1,3 @@
1
1
  module Mailhopper
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -396,3 +396,27 @@ Content-Transfer-Encoding: 7bit
396
396
  Papaya
397
397
   (0.1ms) SELECT COUNT(*) FROM "emails"
398
398
  Mailhopper::Email Load (0.1ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
399
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
400
+ Migrating to CreateEmails (20110801151741)
401
+  (0.1ms) SELECT COUNT(*) FROM "emails"
402
+ Rendered sample_mailer/hello.text.erb (1.2ms)
403
+  (0.0ms) SAVEPOINT active_record_1
404
+ SQL (12.5ms) INSERT INTO "emails" ("bcc_address", "cc_address", "content", "created_at", "from_address", "reply_to_address", "sent_at", "subject", "to_address", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bcc_address", "bcc@example.com"], ["cc_address", "cc@example.com"], ["content", "Date: Thu, 04 Aug 2011 23:15:45 -0400\r\nFrom: from@example.com\r\nReply-To: reply_to@example.com\r\nTo: to@example.com\r\nCc: cc@example.com\r\nMessage-ID: <4e3b60616333a_9402800eb1b01987e@dgmpro.local.mail>\r\nSubject: Hiya!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\n\r\nPapaya"], ["created_at", Fri, 05 Aug 2011 03:15:45 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Fri, 05 Aug 2011 03:15:45 UTC +00:00]]
405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
406
+
407
+ Sent mail to to@example.com (52ms)
408
+ Date: Thu, 04 Aug 2011 23:15:45 -0400
409
+ From: from@example.com
410
+ Reply-To: reply_to@example.com
411
+ To: to@example.com
412
+ Cc: cc@example.com
413
+ Message-ID: <4e3b60616333a_9402800eb1b01987e@dgmpro.local.mail>
414
+ Subject: Hiya!
415
+ Mime-Version: 1.0
416
+ Content-Type: text/plain;
417
+ charset=UTF-8
418
+ Content-Transfer-Encoding: 7bit
419
+
420
+ Papaya
421
+  (0.0ms) SELECT COUNT(*) FROM "emails"
422
+ Mailhopper::Email Load (0.1ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
@@ -40,11 +40,5 @@ class EmailTest < ActiveSupport::TestCase
40
40
 
41
41
  assert email.sent_at.nil?
42
42
  end
43
-
44
- context "with a from address" do
45
- setup do
46
- @email.from_address = 'user@example.com'
47
- end
48
- end
49
43
  end
50
44
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailhopper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Gebhardt
@@ -19,9 +19,10 @@ date: 2011-08-04 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
+ type: :runtime
22
23
  name: rails
23
24
  prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
28
  - - ~>
@@ -34,12 +35,12 @@ dependencies:
34
35
  - rc
35
36
  - 5
36
37
  version: 3.1.0.rc5
37
- type: :runtime
38
- version_requirements: *id001
38
+ requirement: *id001
39
39
  - !ruby/object:Gem::Dependency
40
+ type: :development
40
41
  name: sqlite3
41
42
  prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
43
+ version_requirements: &id002 !ruby/object:Gem::Requirement
43
44
  none: false
44
45
  requirements:
45
46
  - - ">="
@@ -48,12 +49,12 @@ dependencies:
48
49
  segments:
49
50
  - 0
50
51
  version: "0"
51
- type: :development
52
- version_requirements: *id002
52
+ requirement: *id002
53
53
  - !ruby/object:Gem::Dependency
54
+ type: :development
54
55
  name: shoulda
55
56
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
+ version_requirements: &id003 !ruby/object:Gem::Requirement
57
58
  none: false
58
59
  requirements:
59
60
  - - ">="
@@ -62,9 +63,8 @@ dependencies:
62
63
  segments:
63
64
  - 0
64
65
  version: "0"
65
- type: :development
66
- version_requirements: *id003
67
- description: Mailhopper stores your application's emails in a queue for delayed delivery.
66
+ requirement: *id003
67
+ description: Mailhopper stores your application's emails in an ActiveRecord queue for asynchronous delivery. Use Mailhopper in combination with a delivery agent such as DelayedMailhopper.
68
68
  email:
69
69
  - support@cerebris.com
70
70
  executables: []
@@ -163,7 +163,7 @@ rubyforge_project:
163
163
  rubygems_version: 1.4.2
164
164
  signing_key:
165
165
  specification_version: 3
166
- summary: An ActiveRecord based queue for email storage and delivery.
166
+ summary: A simple ActiveRecord-based solution to queue emails in Rails apps.
167
167
  test_files:
168
168
  - test/dummy/app/assets/javascripts/application.js
169
169
  - test/dummy/app/assets/stylesheets/application.css