post_office 0.2.0 → 0.2.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.2.0
1
+ 0.2.1
@@ -58,7 +58,7 @@ class GenericServer
58
58
  # Respond to client by sending back text
59
59
  def respond(client, text)
60
60
  $log.debug "#{client.object_id}:#{@port} > #{text}"
61
- client.puts text
61
+ client.write text
62
62
  rescue
63
63
  $log.error "#{client.object_id}:#{@port} ! #{$!}"
64
64
  client.close
data/lib/smtp_server.rb CHANGED
@@ -105,7 +105,7 @@ class SMTPServer < GenericServer
105
105
 
106
106
  # Respond to client using a standard SMTP response code
107
107
  def respond(client, code)
108
- super(client, "#{code} #{SMTPServer::RESPONSES[code].to_s}")
108
+ super(client, "#{code} #{SMTPServer::RESPONSES[code].to_s}\r\n")
109
109
  end
110
110
 
111
111
  # Standard SMTP response codes
Binary file
data/post_office.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{post_office}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rene van Lieshout"]
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
27
27
  "lib/smtp_server.rb",
28
28
  "lib/store.rb",
29
29
  "pkg/post_office-0.1.0.gem",
30
+ "pkg/post_office-0.2.0.gem",
30
31
  "post_office.gemspec"
31
32
  ]
32
33
  s.homepage = %q{http://github.com/bluerail/post_office}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: post_office
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rene van Lieshout
@@ -39,6 +39,7 @@ files:
39
39
  - lib/smtp_server.rb
40
40
  - lib/store.rb
41
41
  - pkg/post_office-0.1.0.gem
42
+ - pkg/post_office-0.2.0.gem
42
43
  - post_office.gemspec
43
44
  has_rdoc: true
44
45
  homepage: http://github.com/bluerail/post_office