remailer 0.3.1 → 0.3.2
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.
- data/VERSION +1 -1
- data/lib/remailer/connection.rb +4 -0
- data/remailer.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/remailer/connection.rb
CHANGED
@@ -43,6 +43,8 @@ class Remailer::Connection < EventMachine::Connection
|
|
43
43
|
# * port => Numerical port number (default is 25)
|
44
44
|
# * require_tls => If true will fail connections to non-TLS capable
|
45
45
|
# servers (default is false)
|
46
|
+
# * username => Username to authenticate with the SMTP server (optional)
|
47
|
+
# * password => Password to authenticate with the SMTP server (optional)
|
46
48
|
# * use_tls => Will use TLS if availble (default is true)
|
47
49
|
# * debug => Where to send debugging output (IO or Proc)
|
48
50
|
# * connect => Where to send a connection notification (IO or Proc)
|
@@ -77,6 +79,7 @@ class Remailer::Connection < EventMachine::Connection
|
|
77
79
|
EventMachine.connect(host_name, host_port, self, options)
|
78
80
|
rescue EventMachine::ConnectionError => e
|
79
81
|
options[:connect].is_a?(Proc) and options[:connect].call(false, e.to_s)
|
82
|
+
options[:on_error].is_a?(Proc) and options[:on_error].call(e.to_s)
|
80
83
|
options[:debug].is_a?(Proc) and options[:debug].call(:error, e.to_s)
|
81
84
|
options[:error].is_a?(Proc) and options[:error].call(:connect_error, e.to_s)
|
82
85
|
end
|
@@ -308,6 +311,7 @@ class Remailer::Connection < EventMachine::Connection
|
|
308
311
|
super
|
309
312
|
@closed = true
|
310
313
|
end
|
314
|
+
alias_method :close, :close_connection
|
311
315
|
|
312
316
|
def use_socks5_interpreter!
|
313
317
|
@interpreter = Remailer::Connection::Socks5Interpreter.new(:delegate => self)
|
data/remailer.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{remailer}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Scott Tadman"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-15}
|
13
13
|
s.description = %q{EventMachine capable SMTP engine}
|
14
14
|
s.email = %q{scott@twg.ca}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 2
|
9
|
+
version: 0.3.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Scott Tadman
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-15 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|