purl_fetcher-client 0.4.0 → 0.4.1

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: 97df63e9b1a234a5c89c948ca110180d6d9a620042e5280b036c15259a79d8ea
4
- data.tar.gz: 50fd0e88ef00cc1da27d75c71fedffaac1a8beaf5d930280255bc878321e4c7e
3
+ metadata.gz: 3b158de0a0c55f35eda9d832c34969edda80ce26bc5802e56217beae5309c9a4
4
+ data.tar.gz: c26835ca9f955e74e5dd07d6807b66754e3ce69d7f1f4174e483955fedbb9233
5
5
  SHA512:
6
- metadata.gz: c72ac95809823377fa72cbb2f5b52fb11a4c3f69de2a17c250491a54b2b74549ddc1563cc0d5aa7170b07824a57c53afb348c4d29c03f771442dab64a7a87443
7
- data.tar.gz: 41b9ef57041248734ff4f31e0bdd262e01018a618a4231f9f0b3c6b11dd65e8caa443a54b0ba48458b44fc7d17fba128d726f0d7e85935067021303ee85d4509
6
+ metadata.gz: 86b9b87edbcf9505316a6d3674c04710376ef974c4d6a09fb869befb8147935ff4849cd71a09d8e7f15d0619f5338f0393cb587316948777a2c942e7fe170467
7
+ data.tar.gz: 65d148438df919cc085ee88e966182ec5d42581266dda51e415c1e47737d4dac8f23541bf4f7984eea464f0f18c2f1f3565578187dc6370900ac41156f04a6ac
@@ -75,7 +75,14 @@ module PurlFetcher::Client
75
75
  @mods ||= if public_xml_doc.xpath('/publicObject/mods:mods', mods: 'http://www.loc.gov/mods/v3').any?
76
76
  public_xml_doc.xpath('/publicObject/mods:mods', mods: 'http://www.loc.gov/mods/v3').first
77
77
  else
78
- self.class.fetch(purl_base_url + "/#{druid}.mods")
78
+ if defined?(Honeybadger)
79
+ Honeybadger.notify(
80
+ 'Unable to find MODS in the public xml; falling back to stand-along mods document',
81
+ context: { druid: druid }
82
+ )
83
+ end
84
+
85
+ Nokogiri::XML(self.class.fetch(purl_base_url + "/#{druid}.mods"))
79
86
  end
80
87
  end
81
88
 
@@ -1,5 +1,5 @@
1
1
  module PurlFetcher
2
2
  module Client
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
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: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-04 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http