heroku_hatchet 3.0.5 → 3.0.6
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/CHANGELOG.md +4 -0
- data/lib/hatchet/reaper.rb +13 -1
- data/lib/hatchet/version.rb +1 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: d13cac9a330ace0d1cf9f4cc3994b32d56f35e91ba5aa5fd0a6262bd1f49fe38
         | 
| 4 | 
            +
              data.tar.gz: b1b8809b146182aca8173146ab7bcf703aaf929311d69ef0b45219d6088da078
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 20a9d41e88f5bdab3e41671cce20cc14947e8e3dc13fb1997c3dd5dda5d7cb55ab224543257dbcf5205696bedfa2d0f2d47fc162f1c1d408d2696121d8cf172d
         | 
| 7 | 
            +
              data.tar.gz: 9e138c6c8cdce9b773560540153777d6e8c12cc3c13b7969a0b6261e99a02e542865a9f4945d175998dbd09885c018ed9474ffd9219d57febe775ea51bde31c9
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/lib/hatchet/reaper.rb
    CHANGED
    
    | @@ -35,6 +35,17 @@ module Hatchet | |
| 35 35 | 
             
                  else
         | 
| 36 36 | 
             
                    # do nothing
         | 
| 37 37 | 
             
                  end
         | 
| 38 | 
            +
             | 
| 39 | 
            +
                # If the app is already deleted an exception
         | 
| 40 | 
            +
                # will be raised, if the app cannot be found
         | 
| 41 | 
            +
                # assume it is already deleted and try again
         | 
| 42 | 
            +
                rescue Excon::Error::NotFound => e
         | 
| 43 | 
            +
                  body = e.response.body
         | 
| 44 | 
            +
                  if body =~ /Couldn\'t find that app./
         | 
| 45 | 
            +
                    puts "#{@message}, but looks like it was already deleted"
         | 
| 46 | 
            +
                    retry
         | 
| 47 | 
            +
                  end
         | 
| 48 | 
            +
                  raise e
         | 
| 38 49 | 
             
                end
         | 
| 39 50 |  | 
| 40 51 | 
             
                def destroy_oldest
         | 
| @@ -50,7 +61,8 @@ module Hatchet | |
| 50 61 | 
             
                end
         | 
| 51 62 |  | 
| 52 63 | 
             
                def destroy_by_id(name:, id:, details: "")
         | 
| 53 | 
            -
                   | 
| 64 | 
            +
                  @message = "Destroying #{name.inspect}: #{id}. #{details}"
         | 
| 65 | 
            +
                  puts @message
         | 
| 54 66 | 
             
                  @platform_api.app.delete(id)
         | 
| 55 67 | 
             
                end
         | 
| 56 68 |  | 
    
        data/lib/hatchet/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: heroku_hatchet
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 3.0. | 
| 4 | 
            +
              version: 3.0.6
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Richard Schneeman
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2018-03-19 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: platform-api
         | 
| @@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 240 240 | 
             
                  version: '0'
         | 
| 241 241 | 
             
            requirements: []
         | 
| 242 242 | 
             
            rubyforge_project: 
         | 
| 243 | 
            -
            rubygems_version: 2.6 | 
| 243 | 
            +
            rubygems_version: 2.7.6
         | 
| 244 244 | 
             
            signing_key: 
         | 
| 245 245 | 
             
            specification_version: 4
         | 
| 246 246 | 
             
            summary: Hatchet is a an integration testing library for developing Heroku buildpacks.
         |