tuktuk 0.7.1 → 0.8.0
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/.github/workflows/ruby.yml +19 -0
- data/lib/tuktuk/tuktuk.rb +11 -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: 94130469fa773ef26742e1811c40e3dcf6898acf537439470c72c1341cf555c8
         | 
| 4 | 
            +
              data.tar.gz: 215936b8fe1b176a642f1c77f04f282f6df1f31e66381b62db09963c81a16044
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 7f8907098711e0e7447165913bf300f956cf72b192f9458f7d6e4b7a2560f2aef12bbe784c9b27cd017d294cb4d4e005a61e595f816148012ee48ce015e51639
         | 
| 7 | 
            +
              data.tar.gz: 9f08addb37fd31f1dd1226377746053e424c3386f6a51fcd1e2eff28beb4e786fb603a259877112bd3e23474395780a1a5ec394dc27650058183ac97bce7369d
         | 
| @@ -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
         | 
    
        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.8.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: 2020-08-18 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
         |