remailer 0.4.11 → 0.4.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.11
1
+ 0.4.12
@@ -318,6 +318,12 @@ class Remailer::Connection::SmtpInterpreter < Remailer::Interpreter
318
318
  'SMTP'
319
319
  end
320
320
 
321
+ def close
322
+ if (@state == :ready)
323
+ enter_state(:quit)
324
+ end
325
+ end
326
+
321
327
  def handle_reply_continuation(reply_code, reply_message, continues)
322
328
  @reply_message ||= ''
323
329
 
@@ -423,7 +423,13 @@ class Remailer::Connection < EventMachine::Connection
423
423
 
424
424
  send_callback(:on_error)
425
425
  else
426
- send_callback(:on_disconnect)
426
+ interpreter = @interpreter
427
+
428
+ if (interpreter and interpreter.respond_to?(:close))
429
+ interpreter.close
430
+ else
431
+ send_callback(:on_disconnect)
432
+ end
427
433
  end
428
434
 
429
435
  close_connection
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.4.11"
8
+ s.version = "0.4.12"
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{2011-07-05}
12
+ s.date = %q{2011-08-03}
13
13
  s.description = %q{EventMachine SMTP Mail User Agent}
14
14
  s.email = %q{scott@twg.ca}
15
15
  s.extra_rdoc_files = [
@@ -38,18 +38,8 @@ Gem::Specification.new do |s|
38
38
  ]
39
39
  s.homepage = %q{http://github.com/twg/remailer}
40
40
  s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.5.3}
41
+ s.rubygems_version = %q{1.7.0}
42
42
  s.summary = %q{Reactor-Ready SMTP Mailer}
43
- s.test_files = [
44
- "test/config.example.rb",
45
- "test/helper.rb",
46
- "test/unit/remailer_connection_smtp_interpreter_test.rb",
47
- "test/unit/remailer_connection_socks5_interpreter_test.rb",
48
- "test/unit/remailer_connection_test.rb",
49
- "test/unit/remailer_interpreter_state_proxy_test.rb",
50
- "test/unit/remailer_interpreter_test.rb",
51
- "test/unit/remailer_test.rb"
52
- ]
53
43
 
54
44
  if s.respond_to? :specification_version then
55
45
  s.specification_version = 3
metadata CHANGED
@@ -1,38 +1,34 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: remailer
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.12
4
5
  prerelease:
5
- version: 0.4.11
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Scott Tadman
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-07-05 00:00:00 -04:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-03 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: eventmachine
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70359114526100 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
25
22
  type: :runtime
26
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: *70359114526100
27
25
  description: EventMachine SMTP Mail User Agent
28
26
  email: scott@twg.ca
29
27
  executables: []
30
-
31
28
  extensions: []
32
-
33
- extra_rdoc_files:
29
+ extra_rdoc_files:
34
30
  - README.rdoc
35
- files:
31
+ files:
36
32
  - .document
37
33
  - README.rdoc
38
34
  - Rakefile
@@ -52,40 +48,28 @@ files:
52
48
  - test/unit/remailer_interpreter_state_proxy_test.rb
53
49
  - test/unit/remailer_interpreter_test.rb
54
50
  - test/unit/remailer_test.rb
55
- has_rdoc: true
56
51
  homepage: http://github.com/twg/remailer
57
52
  licenses: []
58
-
59
53
  post_install_message:
60
54
  rdoc_options: []
61
-
62
- require_paths:
55
+ require_paths:
63
56
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
57
+ required_ruby_version: !ruby/object:Gem::Requirement
65
58
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: "0"
70
- required_rubygems_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
64
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: "0"
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
76
69
  requirements: []
77
-
78
70
  rubyforge_project:
79
- rubygems_version: 1.5.3
71
+ rubygems_version: 1.7.0
80
72
  signing_key:
81
73
  specification_version: 3
82
74
  summary: Reactor-Ready SMTP Mailer
83
- test_files:
84
- - test/config.example.rb
85
- - test/helper.rb
86
- - test/unit/remailer_connection_smtp_interpreter_test.rb
87
- - test/unit/remailer_connection_socks5_interpreter_test.rb
88
- - test/unit/remailer_connection_test.rb
89
- - test/unit/remailer_interpreter_state_proxy_test.rb
90
- - test/unit/remailer_interpreter_test.rb
91
- - test/unit/remailer_test.rb
75
+ test_files: []