mailhopper 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
1
1
  module Mailhopper
2
2
  class Email < ActiveRecord::Base
3
+ attr_accessible :to_address, :from_address, :cc_address, :bcc_address,
4
+ :reply_to_address, :subject, :content
3
5
  default_scope :order => 'created_at DESC'
4
6
  scope :unsent, :conditions => 'sent_at is null'
5
7
 
@@ -1,3 +1,3 @@
1
1
  module Mailhopper
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -85,3 +85,77 @@ Papaya
85
85
   (0.1ms) SELECT COUNT(*) FROM "emails"
86
86
  Mailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
87
87
   (0.5ms) rollback transaction
88
+  (0.4ms) begin transaction
89
+  (0.1ms) rollback transaction
90
+  (0.0ms) begin transaction
91
+  (0.4ms) SELECT COUNT(*) FROM "emails"
92
+ Rendered sample_mailer/hello.text.erb (2.0ms)
93
+  (0.1ms) SAVEPOINT active_record_1
94
+ SQL (43.8ms) 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: Wed, 04 Apr 2012 22:30:11 -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: <4f7d03b370b4e_add83fc806034cd4983aa@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", Thu, 05 Apr 2012 02:30:11 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", Thu, 05 Apr 2012 02:30:11 UTC +00:00]]
95
+  (0.0ms) RELEASE SAVEPOINT active_record_1
96
+
97
+ Sent mail to to@example.com (114ms)
98
+ Date: Wed, 04 Apr 2012 22:30:11 -0400
99
+ From: from@example.com
100
+ Reply-To: reply_to@example.com
101
+ To: to@example.com
102
+ Cc: cc@example.com
103
+ Message-ID: <4f7d03b370b4e_add83fc806034cd4983aa@dgmpro.local.mail>
104
+ Subject: Hiya!
105
+ Mime-Version: 1.0
106
+ Content-Type: text/plain;
107
+ charset=UTF-8
108
+ Content-Transfer-Encoding: 7bit
109
+
110
+ Papaya
111
+  (0.1ms) SELECT COUNT(*) FROM "emails"
112
+ Mailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
113
+  (0.7ms) rollback transaction
114
+  (0.0ms) begin transaction
115
+  (0.1ms) SELECT COUNT(*) FROM "emails"
116
+ Rendered sample_mailer/hello.text.erb (0.0ms)
117
+  (0.1ms) SAVEPOINT active_record_1
118
+ SQL (0.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", "bcc1@example.com,bcc2@example.com"], ["cc_address", "cc1@example.com,cc2@example.com"], ["content", "Date: Wed, 04 Apr 2012 22:30:11 -0400\r\nFrom: from1@example.com\r\nReply-To: reply_to@example.com\r\nTo: to1@example.com, \r\n to2@example.com\r\nCc: cc1@example.com, \r\n cc2@example.com\r\nMessage-ID: <4f7d03b387cd5_add83fc806034cd4984e3@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", Thu, 05 Apr 2012 02:30:11 UTC +00:00], ["from_address", "from1@example.com"], ["reply_to_address", "reply_to@example.com"], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to1@example.com,to2@example.com"], ["updated_at", Thu, 05 Apr 2012 02:30:11 UTC +00:00]]
119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
120
+
121
+ Sent mail to to1@example.com, to2@example.com (12ms)
122
+ Date: Wed, 04 Apr 2012 22:30:11 -0400
123
+ From: from1@example.com
124
+ Reply-To: reply_to@example.com
125
+ To: to1@example.com,
126
+ to2@example.com
127
+ Cc: cc1@example.com,
128
+ cc2@example.com
129
+ Message-ID: <4f7d03b387cd5_add83fc806034cd4984e3@dgmpro.local.mail>
130
+ Subject: Hiya!
131
+ Mime-Version: 1.0
132
+ Content-Type: text/plain;
133
+ charset=UTF-8
134
+ Content-Transfer-Encoding: 7bit
135
+
136
+ Papaya
137
+  (0.1ms) SELECT COUNT(*) FROM "emails"
138
+ Mailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
139
+  (0.6ms) rollback transaction
140
+  (0.0ms) begin transaction
141
+  (0.1ms) SELECT COUNT(*) FROM "emails"
142
+ Rendered sample_mailer/hello.text.erb (0.0ms)
143
+  (0.1ms) SAVEPOINT active_record_1
144
+ SQL (0.4ms) 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", nil], ["cc_address", nil], ["content", "Date: Wed, 04 Apr 2012 22:30:11 -0400\r\nFrom: from@example.com\r\nTo: to@example.com\r\nMessage-ID: <4f7d03b38c61e_add83fc806034cd498539@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", Thu, 05 Apr 2012 02:30:11 UTC +00:00], ["from_address", "from@example.com"], ["reply_to_address", nil], ["sent_at", nil], ["subject", "Hiya!"], ["to_address", "to@example.com"], ["updated_at", Thu, 05 Apr 2012 02:30:11 UTC +00:00]]
145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
146
+
147
+ Sent mail to to@example.com (8ms)
148
+ Date: Wed, 04 Apr 2012 22:30:11 -0400
149
+ From: from@example.com
150
+ To: to@example.com
151
+ Message-ID: <4f7d03b38c61e_add83fc806034cd498539@dgmpro.local.mail>
152
+ Subject: Hiya!
153
+ Mime-Version: 1.0
154
+ Content-Type: text/plain;
155
+ charset=UTF-8
156
+ Content-Transfer-Encoding: 7bit
157
+
158
+ Papaya
159
+  (0.1ms) SELECT COUNT(*) FROM "emails"
160
+ Mailhopper::Email Load (0.2ms) SELECT "emails".* FROM "emails" ORDER BY created_at DESC LIMIT 1
161
+  (0.6ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailhopper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-13 00:00:00.000000000 Z
12
+ date: 2012-04-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70342664052840 !ruby/object:Gem::Requirement
16
+ requirement: &70186242099960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70342664052840
24
+ version_requirements: *70186242099960
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &70342664052000 !ruby/object:Gem::Requirement
27
+ requirement: &70186242099460 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.3.4
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70342664052000
35
+ version_requirements: *70186242099460
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec-rails
38
- requirement: &70342664050860 !ruby/object:Gem::Requirement
38
+ requirement: &70186242099080 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70342664050860
46
+ version_requirements: *70186242099080
47
47
  description: Mailhopper stores your application's emails in an ActiveRecord queue
48
48
  for asynchronous delivery. Use Mailhopper in combination with a delivery agent such
49
49
  as DelayedMailhopper.
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project:
127
- rubygems_version: 1.8.10
127
+ rubygems_version: 1.8.15
128
128
  signing_key:
129
129
  specification_version: 3
130
130
  summary: A simple ActiveRecord-based email queue for Rails apps.
@@ -165,4 +165,3 @@ test_files:
165
165
  - spec/dummy/script/rails
166
166
  - spec/models/email_spec.rb
167
167
  - spec/spec_helper.rb
168
- has_rdoc: