pony 0.4.1 → 0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ You can also specify options for SMTP:
27
27
  :host => 'smtp.yourserver.com',
28
28
  :port => '25',
29
29
  :user => 'user',
30
- :pass => 'pass',
30
+ :password => 'password',
31
31
  :auth => :plain # :plain, :login, :cram_md5, no auth by default
32
32
  :domain => "localhost.localdomain" # the HELO domain provided by the client to the server
33
33
  }
@@ -41,7 +41,7 @@ With smtp transport it also possible to use TLS/SSL:
41
41
  :port => '587',
42
42
  :tls => true,
43
43
  :user => 'user',
44
- :pass => 'pass',
44
+ :password => 'password',
45
45
  :auth => :plain # :plain, :login, :cram_md5, no auth by default
46
46
  :domain => "localhost.localdomain" # the HELO domain provided by the client to the server
47
47
  })
@@ -69,6 +69,10 @@ http://github.com/benprew/pony
69
69
 
70
70
  == Releases
71
71
 
72
+ 0.5
73
+ * default location of sendmail to /usr/sbin/sendmail if sendmail not in path
74
+ * fix bug: README not showing password option (listed as pass)
75
+
72
76
  0.4.1
73
77
  * Add :cc capability
74
78
  * fix bug: resolve body not displaying when attachments sent
@@ -59,7 +59,8 @@ module Pony
59
59
  end
60
60
 
61
61
  def self.sendmail_binary
62
- @sendmail_binary ||= `which sendmail`.chomp
62
+ sendmail = `which sendmail`.chomp
63
+ sendmail.empty? ? '/usr/sbin/sendmail' : sendmail
63
64
  end
64
65
 
65
66
  def self.transport(tmail)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{pony}
5
- s.version = "0.4.1"
5
+ s.version = "0.5"
6
6
 
7
7
  s.description = "Send email in one command: Pony.mail(:to => 'someone@example.com', :body => 'hello')"
8
8
  s.summary = s.description
@@ -159,4 +159,11 @@ Y29udGVudCBvZiBmb28ucGRm
159
159
  end
160
160
  end
161
161
 
162
+ describe "sendmail binary location" do
163
+ it "should default to /usr/sbin/sendmail if not in path" do
164
+ Pony.stub!(:'`').and_return('')
165
+ Pony.sendmail_binary.should == '/usr/sbin/sendmail'
166
+ end
167
+ end
168
+
162
169
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pony
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: "0.5"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Wiggins
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-11-18 00:00:00 -08:00
13
+ date: 2009-11-26 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency