heroku_hatchet 8.0.3 → 8.0.4

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: 55e330ebf3f600cecc72f6d26e2b213548af020bf5865d073a52445198d15ab8
4
- data.tar.gz: b77b96b88f4601c5fc419f0e3418373a162e6037ad63bad1b969a1169bfc58f6
3
+ metadata.gz: e8d54466a86a51ed1f418e8786e18aa62c97439dbdc1836f74e3455ea1e0542f
4
+ data.tar.gz: 938be3cf7fe5b3c985c430350cca348c3390b80d3eb19544f2249b7c9b2cdc9a
5
5
  SHA512:
6
- metadata.gz: 48530f31d678cea882ba4e383bee510daccdd048632c8fc900f6633ff88feef46c12c676a8dca41bc2cbf641dc27854cafbfd09e6ace0ece1efc9bb55cc7db1c
7
- data.tar.gz: aaaf6b0ababd386ed3f27f9679714bc53859d76da5ec902da16d026fa2e41c04621e61d5233f622f04a5c8e67bdcada1b4c4e3394012af3ad510105dc9801533
6
+ metadata.gz: 5117cc22b180827b704ddb83dfb16a160706a8f27132ab85660066785574c0bb20d1fcffbffc83acbad1ee01f646bb200832b547d29fa8b0c7aa148be15809e9
7
+ data.tar.gz: c25a47e3778c54ab8f17a79b97e6567ae577e0ec1e09a1eabef72606047bd2e1e14a11354987401a9d270e74609437a6e01b26c9be7625bf521c471c0c75b294
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## HEAD
2
2
 
3
+ ## 8.0.4
4
+
5
+ - Any 404 when trying to delete an application will be considered duplicate (https://github.com/heroku/hatchet/pull/210)
6
+
3
7
  ## 8.0.3
4
8
 
5
9
  - Add support for Ruby 3.2 and 3.3 (https://github.com/heroku/hatchet/pull/203 and https://github.com/heroku/hatchet/pull/208)
@@ -187,18 +187,10 @@ module Hatchet
187
187
  @api_rate_limit.call.app.delete(id)
188
188
 
189
189
  io.puts message
190
- rescue Excon::Error::NotFound => e
191
- body = e.response.body
190
+ rescue Excon::Error::NotFound, Excon::Error::Forbidden => e
191
+ status = e.response.status
192
192
  request_id = e.response.headers["Request-Id"]
193
- if body =~ /Couldn\'t find that app./
194
- message = "Duplicate destroy attempted #{name.inspect}: #{id}, status: 404, request_id: #{request_id}"
195
- raise AlreadyDeletedError.new(message)
196
- else
197
- raise e
198
- end
199
- rescue Excon::Error::Forbidden => e
200
- request_id = e.response.headers["Request-Id"]
201
- message = "Duplicate destroy attempted #{name.inspect}: #{id}, status: 403, request_id: #{request_id}"
193
+ message = "Possible duplicate destroy attempted #{name.inspect}: #{id}, status: #{status}, request_id: #{request_id}"
202
194
  raise AlreadyDeletedError.new(message)
203
195
  end
204
196
  end
@@ -1,3 +1,3 @@
1
1
  module Hatchet
2
- VERSION = "8.0.3"
2
+ VERSION = "8.0.4"
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: 8.0.3
4
+ version: 8.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-05 00:00:00.000000000 Z
11
+ date: 2024-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: platform-api
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  - !ruby/object:Gem::Version
235
235
  version: '0'
236
236
  requirements: []
237
- rubygems_version: 3.5.6
237
+ rubygems_version: 3.5.9
238
238
  signing_key:
239
239
  specification_version: 4
240
240
  summary: Hatchet is a an integration testing library for developing Heroku buildpacks.