remailer 0.7.1.1 → 0.7.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/VERSION +1 -1
- data/lib/remailer/abstract_connection.rb +2 -2
- data/lib/remailer/smtp/client.rb +4 -0
- data/remailer.gemspec +6 -3
- data/test/helper.rb +3 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb36a038eda0c02e2a03d0d14ab288c47e28353a
|
4
|
+
data.tar.gz: 8053fdfbcfe5c629725a8c298cdd1ac7aba8704f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f239537ae91a5d85599ad9e45d7206130af1368654f478f3d7c6c8fd465857abd34ef7d2519d77ece5b79268993bd2c7a4de242048680e1fc529dd7963abfd5
|
7
|
+
data.tar.gz: 8947e95785a4233fbfefb4df63c36266bc2d2470eaf6e72405b01a7c5ccf326f0870a0783b054d273b56b19167d92c4f61ec5961ee0dd12a96d976be0975ec69
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.1.
|
1
|
+
0.7.1.2
|
@@ -239,11 +239,11 @@ class Remailer::AbstractConnection < EventMachine::Connection
|
|
239
239
|
|
240
240
|
# This implements the EventMachine::Connection#receive_data method that
|
241
241
|
# is called each time new data is received from the socket.
|
242
|
-
def receive_data(data)
|
242
|
+
def receive_data(data = nil)
|
243
243
|
reset_timeout!
|
244
244
|
|
245
245
|
@buffer ||= ''
|
246
|
-
@buffer << data
|
246
|
+
@buffer << data if (data)
|
247
247
|
|
248
248
|
if (interpreter = @interpreter)
|
249
249
|
interpreter.process(@buffer) do |reply|
|
data/lib/remailer/smtp/client.rb
CHANGED
@@ -216,6 +216,10 @@ class Remailer::SMTP::Client < Remailer::AbstractConnection
|
|
216
216
|
# Switches to use the SMTP interpreter for all subsequent communication
|
217
217
|
def use_smtp_interpreter!
|
218
218
|
@interpreter = Interpreter.new(delegate: self)
|
219
|
+
|
220
|
+
# Trigger processing using the new interpreter as some SMTP data might
|
221
|
+
# already be buffered by this point.
|
222
|
+
receive_data
|
219
223
|
end
|
220
224
|
|
221
225
|
# Callback receiver for when the proxy connection has been completed.
|
data/remailer.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: remailer 0.7.1.
|
5
|
+
# stub: remailer 0.7.1.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "remailer"
|
9
|
-
s.version = "0.7.1.
|
9
|
+
s.version = "0.7.1.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Scott Tadman"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-04-14"
|
15
15
|
s.description = "EventMachine SMTP Mail User Agent"
|
16
16
|
s.email = "scott@twg.ca"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -71,15 +71,18 @@ Gem::Specification.new do |s|
|
|
71
71
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
72
72
|
s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
|
73
73
|
s.add_development_dependency(%q<minitest>, [">= 0"])
|
74
|
+
s.add_development_dependency(%q<minitest-reporters>, [">= 0"])
|
74
75
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
75
76
|
else
|
76
77
|
s.add_dependency(%q<eventmachine>, [">= 0"])
|
77
78
|
s.add_dependency(%q<minitest>, [">= 0"])
|
79
|
+
s.add_dependency(%q<minitest-reporters>, [">= 0"])
|
78
80
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
79
81
|
end
|
80
82
|
else
|
81
83
|
s.add_dependency(%q<eventmachine>, [">= 0"])
|
82
84
|
s.add_dependency(%q<minitest>, [">= 0"])
|
85
|
+
s.add_dependency(%q<minitest-reporters>, [">= 0"])
|
83
86
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
84
87
|
end
|
85
88
|
end
|
data/test/helper.rb
CHANGED
@@ -2,6 +2,9 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
gem 'minitest'
|
4
4
|
require 'minitest/autorun'
|
5
|
+
require 'minitest/reporters'
|
6
|
+
|
7
|
+
Minitest::Reporters.use!(Minitest::Reporters::SpecReporter.new)
|
5
8
|
|
6
9
|
$LOAD_PATH.unshift(File.expand_path('../lib', File.dirname(__FILE__)))
|
7
10
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remailer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.1.
|
4
|
+
version: 0.7.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Tadman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest-reporters
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: jeweler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|