relaton-cli 3.0.0.pre.alpha.4 → 3.0.0.pre.alpha.6

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: 40a33fcc5e9cb123ea61e9d73105524c896a8e79601431980b52589edb6123fd
4
- data.tar.gz: 72cee8178b5ea4ba8a628f77ed04a9efa05f7d1890d6c0028a72d18eeb8939b6
3
+ metadata.gz: 5b3fa56cc243aa53f70bbd68a09576f94df9438ddfe754bfc002d745d193cedd
4
+ data.tar.gz: be0ccc7f31236ee3ad2b7e70614aa1e4c53a6e68dd9cf148705191f81f046dcf
5
5
  SHA512:
6
- metadata.gz: 046773f651afaf06a182b5217c8054b32bc2d34f4d4aedc68283741791347fc41b29603cad1d45fae318c0a961a7bc72cd3242b93785241c3cb56ead3436d0aa
7
- data.tar.gz: 4fe86cad3ad78c8f317c26686f20bcb75780cac66ecac56cd0547a31b0aa3084a8e33d6fb129d9f9f1ddb47708bc27ed8962792addd900ca2eac6b194bd499f3
6
+ metadata.gz: eaaba69002eee047a1f60bcf60e4a2924ff50f24ce2181d06b1f06494493858a60a3e3d58d70e6e43f9ec49bb97904a1fa9108268c16430799670ade3e745208
7
+ data.tar.gz: f078da005ae7223f0cece14e7975ca6bf3a2468221074ad56809f54e3fa2ce698552209ea8ad69db8a7bd04dab401f22edc1bb5a30da254cb0bbee9339267e55
data/CLAUDE.md CHANGED
@@ -75,6 +75,13 @@ constant resolves even when an unrelated exception (e.g. an `ArgumentError` from
75
75
  first shipped in pubid `2.0.0.pre.alpha.11`, which is why `relaton.gemspec`
76
76
  pins `~> 2.0.0.pre.alpha.11`.
77
77
 
78
+ A reference that **no flavor recognizes** is a different error:
79
+ `Relaton::Db` raises `Relaton::UnknownReferenceError` (a `Relaton::Error`, not
80
+ a `Pubid::Errors::Error`) when routing finds no flavor (relaton#205).
81
+ `fetch_document` and `SubcommandCollection#fetch` rescue it, log its message
82
+ (`` `<code>` is not a recognized standards identifier``) with `Util.warn`, and
83
+ return no document, so `relaton fetch` prints the supported types.
84
+
78
85
  ### Core Data Classes
79
86
 
80
87
  - `lib/relaton/bibdata.rb` — `Relaton::Bibdata` wraps `RelatonBib::BibliographicItem`, adding URL type handling and serialization to XML/YAML/Hash. Uses `method_missing` to delegate to the underlying bibitem.
@@ -340,6 +340,11 @@ module Relaton
340
340
  return "No matching bibliographic entry found" unless doc
341
341
 
342
342
  serialize doc, options[:format]
343
+ rescue Relaton::UnknownReferenceError => e
344
+ # No flavor recognizes the reference: log it, return no document (the
345
+ # command then prints the supported types).
346
+ Util.warn e.message
347
+ nil
343
348
  rescue Pubid::Errors::Error
344
349
  %("#{code}" is not a recognized standards identifier)
345
350
  rescue Relaton::RequestError => e
@@ -131,6 +131,8 @@ module Relaton
131
131
  File.write colfile, coll.to_yaml, encoding: "UTF-8"
132
132
  else Util.info "No matching bibliographic entry found"
133
133
  end
134
+ rescue Relaton::UnknownReferenceError => e
135
+ Util.warn e.message
134
136
  rescue Pubid::Errors::Error
135
137
  Util.error %("#{code}" is not a recognized standards identifier)
136
138
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.alpha.4
4
+ version: 3.0.0.pre.alpha.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-10-02 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: liquid
@@ -43,14 +44,14 @@ dependencies:
43
44
  requirements:
44
45
  - - '='
45
46
  - !ruby/object:Gem::Version
46
- version: 3.0.0.pre.alpha.4
47
+ version: 3.0.0.pre.alpha.6
47
48
  type: :runtime
48
49
  prerelease: false
49
50
  version_requirements: !ruby/object:Gem::Requirement
50
51
  requirements:
51
52
  - - '='
52
53
  - !ruby/object:Gem::Version
53
- version: 3.0.0.pre.alpha.4
54
+ version: 3.0.0.pre.alpha.6
54
55
  - !ruby/object:Gem::Dependency
55
56
  name: thor
56
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,8 +87,8 @@ executables:
86
87
  - relaton
87
88
  extensions: []
88
89
  extra_rdoc_files:
89
- - LICENSE
90
90
  - docs/README.adoc
91
+ - LICENSE
91
92
  files:
92
93
  - ".gitignore"
93
94
  - ".hound.yml"
@@ -135,6 +136,7 @@ homepage: https://github.com/metanorma/relaton-cli
135
136
  licenses:
136
137
  - BSD-2-Clause
137
138
  metadata: {}
139
+ post_install_message:
138
140
  rdoc_options: []
139
141
  require_paths:
140
142
  - lib
@@ -149,7 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
151
  - !ruby/object:Gem::Version
150
152
  version: '0'
151
153
  requirements: []
152
- rubygems_version: 4.0.17
154
+ rubygems_version: 3.5.22
155
+ signing_key:
153
156
  specification_version: 4
154
157
  summary: Relaton Command-line Interface
155
158
  test_files: []