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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f096d54900f68674fa72b7b6f78043fc2c1259352702044bc87c1faf2cde6078
4
- data.tar.gz: f099e3a3e44269e00d178962ef0f9d3282776a329ddae54f736733ea357eaa69
3
+ metadata.gz: 43328cfd681560472f10e83a3821b4efba780ba8222bde87ef6a429ea0b92c11
4
+ data.tar.gz: 595131baa10a7dbea7dbb511603e6edcbcb8e237b36e9c57e011bb7910520e7c
5
5
  SHA512:
6
- metadata.gz: 1e9f1634721ed0addca88dca279266b4d8f17a0e12c1a4357d5e8063656ce1b04ce1dc066b5bf7c2648f1ca052cc3d00d9ee778e736d2542aefe55f40f5cdb66
7
- data.tar.gz: 6069dd9fca22c4ef4cf7b53b3c80b1bc50af4c9187ab9f1a500f32f37a4b47d351bf474611f51bfa91f8ad60305600dfb44664a2cdce7d4c0aee80f73fa14481
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]
@@ -1,7 +1,7 @@
1
1
  module Tuktuk
2
2
  MAJOR = 0
3
- MINOR = 7
4
- PATCH = 1
3
+ MINOR = 9
4
+ PATCH = 0
5
5
 
6
6
  VERSION = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
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.7.1
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: 2019-08-07 00:00:00.000000000 Z
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