metanorma-plugin-glossarist 0.5.0 → 0.5.1

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: 704ad16bc258aaa5af4a78ffdeac527254bf94ca24dfb26dac89e4233f4e625e
4
- data.tar.gz: f073009599c27404eb2a7c59d1988892ed954bc70d42e8e7e41990b20b430c1a
3
+ metadata.gz: 8ee23c99402fe5be916f845b08d2c696205b744f2ed76f7683c8672e404f08d9
4
+ data.tar.gz: 58cc33d1bbec6df215439a64b249c9cad03beebef66914878b08af3c07b63440
5
5
  SHA512:
6
- metadata.gz: 2b7c0b15020b2be901c61bd6d79df81aae2ac2f76f50ac9f6cf49ed4035bb2df7089ac7d70ccec4998023fcb46539f1c902836eb6d62f4f17e6f5bc4ce238513
7
- data.tar.gz: 2ac8b854afb2da6692690105c41a8b4a71c2cc69ce367b32a5ec199eaf2850223ade67dacf4b96e9b03512230409ae09772ee6f567e138ea91235d55559c90cc
6
+ metadata.gz: 783599cbb047e82b8c628305ad5ba6ac8325f0ba14c67e01637496f8b25935d9e7b0e3cdca869e34d0fe1407e74ac0c5accf8b7f163b55f48ead5d11dfb54ce4
7
+ data.tar.gz: 6724a7327a8048ac1080a2f059431cd2d4b692905db63b17dba79eaad45a8a5b234e31eb762ad27d143f526bc857d6808400e3d1dd91e887eb4dd22d0f1ac0a7
@@ -6,10 +6,11 @@ module Metanorma
6
6
  # Extracts bibliography-citable mention IDs from concept text using
7
7
  # +Glossarist::ReferenceExtractor+ as the single canonical parser.
8
8
  #
9
- # Bibliography relevance = +BibliographicReference+ (from +<<anchor>>+
10
- # xrefs) and +ConceptReference+ instances whose +#cite?+ is true (from
11
- # +{{cite:id}}+ mentions). Other mention kinds (fig/table/formula/urn)
12
- # reference assets or concepts, not bibliography entries.
9
+ # Bibliography relevance = +BibliographicReference+ (from +{{bib:id}}+
10
+ # mentions) and +ConceptReference+ instances whose +#cite?+ is true
11
+ # (from +{{cite:id}}+ mentions). Other mention kinds
12
+ # (fig/table/formula/urn) reference assets or concepts, not
13
+ # bibliography entries.
13
14
  class MentionExtractor
14
15
  def initialize(text)
15
16
  @text = text
@@ -78,7 +78,8 @@ module Metanorma
78
78
  end
79
79
 
80
80
  def find_parent_id(concept)
81
- concept.data.related&.find { |r| r.type == "broader" }&.ref&.id&.to_s
81
+ related = concept.data.related || concept.related
82
+ related&.find { |r| r.type == "broader" }&.ref&.id&.to_s
82
83
  end
83
84
 
84
85
  def build_anchor(id, prefix)
@@ -3,7 +3,7 @@
3
3
  module Metanorma
4
4
  module Plugin
5
5
  module Glossarist
6
- VERSION = "0.5.0"
6
+ VERSION = "0.5.1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-glossarist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-07-08 00:00:00.000000000 Z
11
+ date: 2026-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -82,7 +82,6 @@ files:
82
82
  - ".github/workflows/rake.yml"
83
83
  - ".github/workflows/release.yml"
84
84
  - ".gitignore"
85
- - ".hound.yml"
86
85
  - ".rspec"
87
86
  - ".rubocop.yml"
88
87
  - ".rubocop_todo.yml"
data/.hound.yml DELETED
@@ -1,5 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- ruby:
4
- enabled: true
5
- config_file: .rubocop.yml