tuktuk 0.7.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +19 -0
- data/lib/tuktuk/tuktuk.rb +12 -1
- data/lib/tuktuk/version.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43328cfd681560472f10e83a3821b4efba780ba8222bde87ef6a429ea0b92c11
|
4
|
+
data.tar.gz: 595131baa10a7dbea7dbb511603e6edcbcb8e237b36e9c57e011bb7910520e7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 122e7631e797d4d4ded99d95335fec427d7f74a6384b81f9fcb50b1d684fd51622d9a066ef34b8cc589e916981ba4bdb995767824914eb36be460189660207b2
|
7
|
+
data.tar.gz: 812a22fe4d901292dfdc5c55ea3d9bb2d011e1b5d4662133c91d25f4074c9c37694aee88871300be5c438a5f6a0b8dba1d177202d9133bc558de6408684138be
|
@@ -0,0 +1,19 @@
|
|
1
|
+
name: Ruby
|
2
|
+
on: [push]
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
build:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@v1
|
10
|
+
- name: Set up Ruby 2.6
|
11
|
+
uses: actions/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
ruby-version: 2.6.x
|
14
|
+
- name: Build and test with Rake
|
15
|
+
run: |
|
16
|
+
gem install bundler
|
17
|
+
gem install rspec
|
18
|
+
bundle install --jobs 4 --retry 3
|
19
|
+
rspec
|
data/lib/tuktuk/tuktuk.rb
CHANGED
@@ -20,6 +20,16 @@ DEFAULTS = {
|
|
20
20
|
:log_to => nil # $stdout,
|
21
21
|
}
|
22
22
|
|
23
|
+
# overwrite Net::SMTP#quit since the connection might have been closed
|
24
|
+
# before we got a chance to say goodbye. swallow the error in that case.
|
25
|
+
class Net::SMTP
|
26
|
+
def quit
|
27
|
+
getok('QUIT')
|
28
|
+
rescue EOFError => e
|
29
|
+
# nil
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
23
33
|
module Tuktuk
|
24
34
|
|
25
35
|
class << self
|
@@ -250,7 +260,7 @@ module Tuktuk
|
|
250
260
|
end
|
251
261
|
|
252
262
|
responses
|
253
|
-
rescue => e # SMTPServerBusy, SMTPSyntaxError, SMTPUnsupportedCommand, SMTPUnknownError (unexpected reply code)
|
263
|
+
rescue Exception => e # SMTPServerBusy, SMTPSyntaxError, SMTPUnsupportedCommand, SMTPUnknownError (unexpected reply code)
|
254
264
|
logger.error "[SERVER ERROR: #{server}] #{e.class} -> #{e.message}"
|
255
265
|
@last_error = e
|
256
266
|
responses
|
@@ -272,6 +282,7 @@ module Tuktuk
|
|
272
282
|
context = OpenSSL::SSL::SSLContext.new
|
273
283
|
context.verify_mode = config[:verify_ssl] ?
|
274
284
|
OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE
|
285
|
+
context.set_params # Configures default certificate store
|
275
286
|
|
276
287
|
port = nil
|
277
288
|
if config[:debug]
|
data/lib/tuktuk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tuktuk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomás Pollak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -88,6 +88,7 @@ executables:
|
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
|
+
- ".github/workflows/ruby.yml"
|
91
92
|
- ".gitignore"
|
92
93
|
- Gemfile
|
93
94
|
- README.md
|