exception_handling 1.0.2 → 1.0.3
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/exception_handling.rb +1 -1
- data/lib/exception_handling/version.rb +1 -1
- data/test/unit/exception_handling_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 455910720fe5a8b91de548665df5c639c97dcf22
|
|
4
|
+
data.tar.gz: 866669be2cb461553af17b502307e19a1af3b880
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9d3e9e02a983357bbec9211b096a6904447b1669ef12db296b1d9a277394b7d713e9fab8fa0fa9f21e4603c18e16a1b71b20fce64b7cf4335ba46fd0e7e19fe
|
|
7
|
+
data.tar.gz: e0cc1d06e1aa28ffe22b9add5ef2c0ce4dd48fa9fa7d9894460cd50a756b4661c48a3a1ab2a6bd09a9c118250e87f8cbfc9f72dd1b98ff7e01b8a226acbdfc7c
|
data/Gemfile.lock
CHANGED
data/lib/exception_handling.rb
CHANGED
|
@@ -399,7 +399,7 @@ EOF
|
|
|
399
399
|
:auth => {:type=>:plain, :username=>smtp_settings[:user_name], :password=>smtp_settings[:password]},
|
|
400
400
|
:from => mail_object['from'].to_s,
|
|
401
401
|
:to => mail_object['to'].to_s,
|
|
402
|
-
:content => "#{mail_object}.\r\n"
|
|
402
|
+
:content => "#{mail_object}\r\n.\r\n"
|
|
403
403
|
}
|
|
404
404
|
)
|
|
405
405
|
send_deferrable.errback { |err| ExceptionHandling.logger.fatal("Failed to email by SMTP: #{err.inspect}") }
|
|
@@ -528,7 +528,7 @@ class ExceptionHandlingTest < ActiveSupport::TestCase
|
|
|
528
528
|
EventMachineStub.block.call
|
|
529
529
|
assert content = SmtpClientStub.send_hash[:content]
|
|
530
530
|
assert_match(/Content-Transfer-Encoding: 7bit/, content)
|
|
531
|
-
assert_match(
|
|
531
|
+
assert_match(/\r\n\.\r\n\z/, content)
|
|
532
532
|
end
|
|
533
533
|
|
|
534
534
|
should "log fatal on EventMachine STMP errback" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: exception_handling
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Colin Kelley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-08-
|
|
11
|
+
date: 2014-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: eventmachine
|