heroku_hatchet 3.0.5 → 3.0.6

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: 3d60d8aec8c3064cf09e129d4a1385f59fa55475f110d6dac0b3a54a83e3764f
4
- data.tar.gz: e916e971a21f2bc2d6d77a4c5cd56245864323e32d2e51c48b7fc0707084088e
3
+ metadata.gz: d13cac9a330ace0d1cf9f4cc3994b32d56f35e91ba5aa5fd0a6262bd1f49fe38
4
+ data.tar.gz: b1b8809b146182aca8173146ab7bcf703aaf929311d69ef0b45219d6088da078
5
5
  SHA512:
6
- metadata.gz: 85592d1f925ef06d535261359f8641c92b48c72203a894c602615d898b4d9f054135cc6f76f4bf7bfc693516dc9a4eb99601ab6029c70397592f7967b7a8c495
7
- data.tar.gz: 577b8e4b95e6655d16d9e96611a7e014489108574cc13983bc1090e78560ad913ef2904b7662cd77e628660d55f5d8591f877893fac981be4fda7ac886696e92
6
+ metadata.gz: 20a9d41e88f5bdab3e41671cce20cc14947e8e3dc13fb1997c3dd5dda5d7cb55ab224543257dbcf5205696bedfa2d0f2d47fc162f1c1d408d2696121d8cf172d
7
+ data.tar.gz: 9e138c6c8cdce9b773560540153777d6e8c12cc3c13b7969a0b6261e99a02e542865a9f4945d175998dbd09885c018ed9474ffd9219d57febe775ea51bde31c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## HEAD
2
2
 
3
+ ## 3.0.6
4
+
5
+ - Fix double delete error #41
6
+
3
7
  ## 3.0.5
4
8
 
5
9
  - Require `mktmpdir` in the right place.
@@ -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
- puts "Destroying #{name.inspect}: #{id}. #{details}"
64
+ @message = "Destroying #{name.inspect}: #{id}. #{details}"
65
+ puts @message
54
66
  @platform_api.app.delete(id)
55
67
  end
56
68
 
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "3.0.5"
2
+ VERSION = "3.0.6"
3
3
  end
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.5
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: 2017-11-20 00:00:00.000000000 Z
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.14
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.