padrino-mailer 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -15,7 +15,6 @@ module Padrino
15
15
 
16
16
  def mail(options)
17
17
  raise(ArgumentError, ":to is required") unless options[:to]
18
-
19
18
  via = options.delete(:via)
20
19
  if via.nil?
21
20
  transport build_tmail(options)
@@ -31,7 +30,7 @@ module Padrino
31
30
  def build_tmail(options)
32
31
  mail = TMail::Mail.new
33
32
  mail.to = options[:to]
34
- mail.from = options[:from] || 'pony@unknown'
33
+ mail.from = options[:from] || 'padrino@unknown'
35
34
  mail.subject = options[:subject]
36
35
  mail.body = options[:body] || ""
37
36
  mail.set_content_type 'text', options[:type] || 'plain', {'charset'=> options[:charset] || 'utf-8'}
@@ -63,6 +62,7 @@ module Padrino
63
62
  end
64
63
 
65
64
  def transport_via_sendmail(tmail, options={})
65
+ logger.debug "Sending email via sendmail: #{tmail}"
66
66
  IO.popen('-', 'w+') do |pipe|
67
67
  if pipe
68
68
  pipe.write(tmail.to_s)
@@ -73,6 +73,7 @@ module Padrino
73
73
  end
74
74
 
75
75
  def transport_via_smtp(tmail, options={:smtp => {}})
76
+ logger.debug "Sending email via smtp: #{tmail}"
76
77
  default_options = {:smtp => { :host => 'localhost', :port => '25', :domain => 'localhost.localdomain' }}
77
78
  o = default_options[:smtp].merge(options[:smtp])
78
79
  smtp = Net::SMTP.new(o[:host], o[:port])
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{padrino-mailer}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
12
- s.date = %q{2010-01-31}
12
+ s.date = %q{2010-02-03}
13
13
  s.description = %q{Mailer system for padrino allowing easy delivery of application emails}
14
14
  s.email = %q{nesquena@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
48
48
 
49
49
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
50
50
  s.add_runtime_dependency(%q<sinatra>, [">= 0.9.2"])
51
- s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.0"])
51
+ s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.1"])
52
52
  s.add_runtime_dependency(%q<tilt>, [">= 0.2"])
53
53
  s.add_runtime_dependency(%q<tmail>, [">= 1.2"])
54
54
  s.add_development_dependency(%q<shoulda>, [">= 0"])
@@ -58,7 +58,7 @@ Gem::Specification.new do |s|
58
58
  s.add_development_dependency(%q<webrat>, [">= 0.5.1"])
59
59
  else
60
60
  s.add_dependency(%q<sinatra>, [">= 0.9.2"])
61
- s.add_dependency(%q<padrino-core>, ["= 0.7.0"])
61
+ s.add_dependency(%q<padrino-core>, ["= 0.7.1"])
62
62
  s.add_dependency(%q<tilt>, [">= 0.2"])
63
63
  s.add_dependency(%q<tmail>, [">= 1.2"])
64
64
  s.add_dependency(%q<shoulda>, [">= 0"])
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
69
69
  end
70
70
  else
71
71
  s.add_dependency(%q<sinatra>, [">= 0.9.2"])
72
- s.add_dependency(%q<padrino-core>, ["= 0.7.0"])
72
+ s.add_dependency(%q<padrino-core>, ["= 0.7.1"])
73
73
  s.add_dependency(%q<tilt>, [">= 0.2"])
74
74
  s.add_dependency(%q<tmail>, [">= 1.2"])
75
75
  s.add_dependency(%q<shoulda>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2010-01-31 00:00:00 +01:00
15
+ date: 2010-02-03 00:00:00 +01:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -33,7 +33,7 @@ dependencies:
33
33
  requirements:
34
34
  - - "="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.7.0
36
+ version: 0.7.1
37
37
  version:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: tilt