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 +4 -4
- data/lib/relaton/bsi/bibliography.rb +9 -2
- data/lib/relaton/core/request_error.rb +7 -2
- data/lib/relaton/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69f8e17f2c0ce9465b7cc3b648507007c8d0f1efd6d1005370aebcf7f6d10526
|
|
4
|
+
data.tar.gz: 9d020e7b59a8e08876262d9079df95dfa781954cd8583c32a19ea2c85c660b53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
7
|
-
|
|
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
|
-
|
|
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
|
data/lib/relaton/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-10-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|