relaton 3.0.0.pre.alpha.11 → 3.0.0.pre.alpha.13

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: 7364dc37a276ca9af4698a8c2dfccca8a38c4b8fe02718d0a48938ae0c50e68e
4
- data.tar.gz: 5129ad6ec6692247d87022f7774edc9b8f0bac4cc2668309ffc87302e75af3eb
3
+ metadata.gz: 69f8e17f2c0ce9465b7cc3b648507007c8d0f1efd6d1005370aebcf7f6d10526
4
+ data.tar.gz: 9d020e7b59a8e08876262d9079df95dfa781954cd8583c32a19ea2c85c660b53
5
5
  SHA512:
6
- metadata.gz: 7ac0f564a402d64872ac1261ae71c733e3bffc6b5f0755e846358df24c27ec6cbc1b9b2a7fe4090d7d57d65f384a85d5fffd7a07865307a3bcbb6905070df778
7
- data.tar.gz: f2c3876e14d876d5b172e7ecd1b65d3b1a100c2716fce4ee5628984f23ce5c4b5203b847f3a56cc6b222bd0866dca2f87483c92ad2538488781c48fed778d1f6
6
+ metadata.gz: 1d4121f0ec164ba41a1ff23dfa51dc7c995bf8a90852ad8ca27ac6221fa5547172997561c9e2790996cb9405c89b7662cfdabf88de07bcf3a43011213b9f7de3
7
+ data.tar.gz: f2bad59aaae815eca687007cbc34d6920c9ca4706e67b50e912bf40579f27f17b4e658fce81923a2899ae74c127e85788fd28518cb12d4233bd4053364ae6ca5
@@ -3,8 +3,15 @@
3
3
  module Relaton::Bsi
4
4
  # Class methods for search ISO standards.
5
5
  class Bibliography
6
- # pubid identifier types referenced when navigating the parsed object graph.
7
- Ids = ::Pubid::Bsi::Identifiers
6
+ # pubid identifier types referenced when navigating the parsed
7
+ # object graph. The unified pubid namespaces them under the plural
8
+ # Identifiers; released pubid-bsi 1.15 renamed that to the module
9
+ # Pubid::Bsi::Identifier — resolve whichever the bundle carries
10
+ Ids = if Pubid::Bsi.const_defined?(:Identifiers)
11
+ ::Pubid::Bsi::Identifiers
12
+ else
13
+ ::Pubid::Bsi::Identifier
14
+ end
8
15
 
9
16
  class << self
10
17
  # @param ref [String] the printed reference
@@ -9,8 +9,13 @@ module Relaton
9
9
  #
10
10
  # The class is named `Relaton::RequestError`, not `Relaton::Core::...`: an
11
11
  # error raised without a message uses the class name as its message, and
12
- # relaton-cli prints that message.
13
- class RequestError < Error; end
12
+ # relaton-cli prints that message. relaton-bib also declares this name
13
+ # (< StandardError) and may load first: reopen instead of redefining,
14
+ # or the coexisting require of both gems dies on a superclass mismatch.
15
+ # relaton-bib also declares this name (< StandardError) and may load
16
+ # first; redefining it (< Error) dies on a superclass mismatch, so
17
+ # declare only when absent — both forms rescue as StandardError
18
+ class RequestError < Error; end unless defined?(Relaton::RequestError)
14
19
 
15
20
  # `Relaton::Db` found no flavor for a reference: no flavor's pubid grammar
16
21
  # reads it exactly, and no flavor's prefix matches it. relaton-cli rescues
@@ -1,3 +1,3 @@
1
1
  module Relaton
2
- VERSION = "3.0.0.pre.alpha.11".freeze
2
+ VERSION = "3.0.0.pre.alpha.13".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.alpha.11
4
+ version: 3.0.0.pre.alpha.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-05 00:00:00.000000000 Z
11
+ date: 2026-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable