fair_champion_harvester 0.1.11 → 0.1.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd0c455e1fd407ab2dc6b3432c42feea74fa6beccf13eb4f0aaee54be1ff0f59
4
- data.tar.gz: 916a04e52444b526d0acd692fbe42a23de3750061d7479fdb67b527468da0236
3
+ metadata.gz: 6fa689e4da4938f714f1b3635db3b5a2065c14dcb8836cc10237528af84a045d
4
+ data.tar.gz: e2e45e0a23b5c31eaab37bbdaef962ce90bc4e92e8fc6996decd7c4d34c6a506
5
5
  SHA512:
6
- metadata.gz: 00707e4eb4ca196e58aa2883beb27e93f1841311069dbd5bf67664a10d4aede2a18c84a2c544470913b4996d7673a43933c9b6038ac2bf6d66cb9a5e3e6d8410
7
- data.tar.gz: 9bab85d0441581c21422e00d53963590e859fc549f1b15bc829844f8a3681120f051356c3e948617cc79397b8b4708384f37c08b4a8d47883b9a54979e94a6de
6
+ metadata.gz: e1664661b38f7d460a72cab769bf32039a6026119d1f4156d6e049f680feb17e1884e39e194f1b02f582869e888c68b53c390c9d374f4fb8d67e3fc4c26bab1a
7
+ data.tar.gz: 7d2a6cdbd9b1f81de505f7064f8092db09b0d31a28c087435ebc3c874f2950ce57d42c31426a4e177f8541cafacd9bb274e4dd1686cc33247bfcc083cb2993a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.12] - 2026-05-27
4
+
5
+ ### Fixed
6
+ - 0.1.11 regression: `FAIRChampionHarvester::Uri` was missing from the gem because `uri_resolver.rb` was not tracked by git and the gemspec uses `git ls-files` to determine packaged files; merged the class back into `lib/uri.rb` so a single tracked file handles both stdlib forwarding and the class definition
7
+
3
8
  ## [0.1.11] - 2026-05-26
4
9
 
5
10
  ### Fixed
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FairChampionHarvester
4
- VERSION = "0.1.11"
4
+ VERSION = "0.1.12"
5
5
  end
data/lib/uri.rb CHANGED
@@ -1,5 +1,28 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # This file is named uri.rb, which means Ruby's load path resolves
4
- # 'require "uri"' here instead of the stdlib. We forward to the real one.
3
+ # This file is named uri.rb, which means 'require "uri"' resolves here instead
4
+ # of the stdlib when lib/ is on the load path. We load the real stdlib first.
5
5
  require File.join(RbConfig::CONFIG["rubylibdir"], "uri")
6
+
7
+ module FAIRChampionHarvester
8
+ class Uri
9
+ def self.resolve_uri(guid, meta)
10
+ type, url = Core.convertToURL(guid)
11
+ meta.guidtype = type if meta.guidtype.nil?
12
+
13
+ meta.comments << "INFO: Found a URI.\n"
14
+ meta.comments << "INFO: Attempting to resolve #{url} using HTTP Headers #{FAIRChampionHarvester::Utils::AcceptHeader}.\n"
15
+ FAIRChampionHarvester::URL.resolve_url(guid: url, meta: meta, nolinkheaders: false)
16
+ meta.comments << "INFO: Attempting to resolve #{url} using HTTP Headers #{FAIRChampionHarvester::Utils::XML_FORMATS["xml"].join(",")}.\n"
17
+ FAIRChampionHarvester::URL.resolve_url(guid: url, meta: meta, nolinkheaders: false,
18
+ headers: { "Accept" => "#{FAIRChampionHarvester::Utils::XML_FORMATS["xml"].join(",")}" })
19
+ meta.comments << "INFO: Attempting to resolve #{url} using HTTP Headers #{FAIRChampionHarvester::Utils::JSON_FORMATS["json"].join(",")}.\n"
20
+ FAIRChampionHarvester::URL.resolve_url(guid: url, meta: meta, nolinkheaders: false,
21
+ headers: { "Accept" => "#{FAIRChampionHarvester::Utils::JSON_FORMATS["json"].join(",")}" })
22
+ meta.comments << "INFO: Attempting to resolve #{url} using HTTP Headers 'Accept: */*'.\n"
23
+ FAIRChampionHarvester::URL.resolve_url(guid: url, meta: meta, nolinkheaders: false,
24
+ headers: { "Accept" => "*/*" })
25
+ meta
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ # FAIRChampionHarvester::Uri is defined in uri.rb.
4
+ # This file exists only as a leftover and is intentionally empty.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fair_champion_harvester
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - markwilkinson
@@ -311,6 +311,7 @@ files:
311
311
  - lib/openalex.rb
312
312
  - lib/tika.rb
313
313
  - lib/uri.rb
314
+ - lib/uri_resolver.rb
314
315
  - lib/url.rb
315
316
  - lib/utils.rb
316
317
  - sig/fair_champion_harvester.rbs