purl_fetcher-client 1.5.1 → 1.5.2

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: 123f98e808fb6578e4f194d380d4d1d651735dbe8c5114b40b4d2348eb729a8c
4
- data.tar.gz: 66996f257ec6210d4bd822335b3511e9877122e6203f6818e7ed4b9284a53c6a
3
+ metadata.gz: 6d52e033a93ce8e113f1d74cc9f30e78e3ba8b1dfb97014ac37b47d713bc3dcf
4
+ data.tar.gz: 6f7efec5ab930e23572d9f2eed03c45ec620ddc93271f4358b2a423641abbeda
5
5
  SHA512:
6
- metadata.gz: 0a51f4a44b7b7b1bb070a7aa7f9dbe4faf8281eb5d4dd1448990104659f3ecce3ac7ce30d81aa6144579b1a801fd73a6b55bd9a7f075377e6070b2f5aa5c274b
7
- data.tar.gz: 919bb94098bdec558dfec580bce657af55879eee46abdbedb441520f27f29557f4f583d1da8ac2446ee346f2937df80e2d980f934566bcaee973a792622f0386
6
+ metadata.gz: bec42596a113ca16234082c0655800ab610e97974342be1ea714ce2937dd3f51e2d5597632a38f51b5b1efa8ddc3bce6cb5be0cd6e2d5d2215665518e698b5b4
7
+ data.tar.gz: d11740e467d917e3fddafaf746d0810abece79cd735a8e07db1f235284b804a54b935165d3e2064fb43089dbdbd993d8f9243bad8afc8b5cf071cce565fca666
@@ -37,10 +37,10 @@ class PurlFetcher::Client::Reader
37
37
  response = conn.get(path, params: params)
38
38
 
39
39
  unless response.success?
40
+ raise PurlFetcher::Client::NotFoundResponseError, "Item not found" if response.status == 404
40
41
  if defined?(Honeybadger)
41
- Honeybadger.context({ path:, params:, response_code: response.code, body: response.body })
42
+ Honeybadger.context({ path:, params:, response_code: response.status, body: response.body })
42
43
  end
43
- raise PurlFetcher::Client::NotFoundResponseError, "Item not found" if response.status == 404
44
44
  raise PurlFetcher::Client::ResponseError, "Unsuccessful response from purl-fetcher"
45
45
  end
46
46
 
@@ -1,5 +1,5 @@
1
1
  module PurlFetcher
2
2
  class Client
3
- VERSION = "1.5.1"
3
+ VERSION = "1.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purl_fetcher-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-28 00:00:00.000000000 Z
11
+ date: 2024-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport