adzap-ar_mailer 2.1.6 → 2.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ = 2.1.7
2
+
3
+ * Miscellaneous Updates
4
+ * Added adzap-ar_mailer file to end the need for the config.gem :lib option
5
+
6
+ * Bugs fixed
7
+ * Fix from address being set as address header object.
8
+
1
9
  = 2.1.6
2
10
 
3
11
  * Miscellaneous Updates
data/README.rdoc CHANGED
@@ -36,7 +36,11 @@ Then
36
36
 
37
37
  For Rails >= 2.1, in your environment.rb:
38
38
 
39
- config.gem "adzap-ar_mailer", :lib => 'action_mailer/ar_mailer', :source => 'http://gemcutter.com'
39
+ config.gem "adzap-ar_mailer", :lib => 'action_mailer/ar_mailer'
40
+
41
+ # or since version 2.1.7 of this gem you can now just do
42
+
43
+ config.gem "adzap-ar_mailer"
40
44
 
41
45
  For Rails 2.0, in an initializer file:
42
46
 
data/Rakefile CHANGED
@@ -26,6 +26,7 @@ ar_mailer_gemspec = Gem::Specification.new do |s|
26
26
  "generators/ar_mailer/ar_mailer_generator.rb",
27
27
  "generators/ar_mailer/templates/migration.rb",
28
28
  "generators/ar_mailer/templates/model.rb",
29
+ "lib/adzap-ar_mailer.rb",
29
30
  "lib/action_mailer/ar_mailer.rb",
30
31
  "lib/action_mailer/ar_sendmail.rb",
31
32
  "lib/smtp_tls.rb",
@@ -44,6 +45,8 @@ ar_mailer_gemspec = Gem::Specification.new do |s|
44
45
  s.rubyforge_project = %q{seattlerb}
45
46
  s.summary = %q{A two-phase delivery agent for ActionMailer}
46
47
  s.test_files = ["test/test_armailer.rb", "test/test_arsendmail.rb"]
48
+ s.add_development_dependency "minitest", ">= 1.5.0"
49
+ s.add_development_dependency "mocha", ">= 0.9.8"
47
50
  end
48
51
 
49
52
  Rake::GemPackageTask.new(ar_mailer_gemspec) do |pkg|
@@ -23,7 +23,7 @@ class ActionMailer::Base
23
23
  # used.
24
24
 
25
25
  def perform_delivery_activerecord(mail)
26
- sender = (mail['return-path'] && mail['return-path'].spec) || mail['from']
26
+ sender = (mail['return-path'] && mail['return-path'].spec) || mail.from.first
27
27
  mail.destinations.each do |destination|
28
28
  self.class.email_class.create :mail => mail.encoded, :to => destination, :from => sender
29
29
  end
@@ -42,7 +42,7 @@ class ActionMailer::ARSendmail
42
42
  ##
43
43
  # The version of ActionMailer::ARSendmail you are running.
44
44
 
45
- VERSION = '2.1.6'
45
+ VERSION = '2.1.7'
46
46
 
47
47
  ##
48
48
  # Maximum number of times authentication will be consecutively retried
@@ -0,0 +1 @@
1
+ require 'action_mailer/ar_mailer'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adzap-ar_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.6
4
+ version: 2.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Hodel
@@ -10,10 +10,29 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-01-16 00:00:00 +11:00
13
+ date: 2010-01-19 00:00:00 +11:00
14
14
  default_executable: ar_sendmail
15
- dependencies: []
16
-
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: minitest
18
+ type: :development
19
+ version_requirement:
20
+ version_requirements: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 1.5.0
25
+ version:
26
+ - !ruby/object:Gem::Dependency
27
+ name: mocha
28
+ type: :development
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 0.9.8
35
+ version:
17
36
  description: Even delivering email to the local machine may take too long when you have to send hundreds of messages. ar_mailer allows you to store messages into the database for later delivery by a separate process, ar_sendmail.
18
37
  email: adam.meehan@gmail.com
19
38
  executables:
@@ -33,6 +52,7 @@ files:
33
52
  - generators/ar_mailer/ar_mailer_generator.rb
34
53
  - generators/ar_mailer/templates/migration.rb
35
54
  - generators/ar_mailer/templates/model.rb
55
+ - lib/adzap-ar_mailer.rb
36
56
  - lib/action_mailer/ar_mailer.rb
37
57
  - lib/action_mailer/ar_sendmail.rb
38
58
  - lib/smtp_tls.rb