glossarist 2.3.7 → 2.3.9
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/glossarist/citation.rb +11 -4
- data/lib/glossarist/concept_manager.rb +0 -2
- data/lib/glossarist/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: e1a2370a728052eaf2f1b44c2638205376ed4ebbeb660143df6f670b856a4c75
|
4
|
+
data.tar.gz: e2d40630c63ccb27bb6baf3adc08d59559e811b99bde9db5f231fe18d711d439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6176ca960354381a58d04499b086223f5a8aae399df0f2f5df5024a9c83f8623b17ef5434ad7a878f187fb69f648ae222feee524a4e10defff940ae29be21c17
|
7
|
+
data.tar.gz: 86dfa3924693967b7d40486777036afae5100e606673fbf2e8d0a542a8039180b18f059f0228406cb97ff8772a3386aa93aeda42c1b5263cff5e58c1dbae9daf
|
data/lib/glossarist/citation.rb
CHANGED
@@ -118,10 +118,17 @@ module Glossarist
|
|
118
118
|
# or new format like
|
119
119
|
# locality: { type: "clause", reference_from: "11", reference_to: "12" }
|
120
120
|
locality = Locality.new
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
121
|
+
|
122
|
+
if value.is_a?(Hash)
|
123
|
+
locality.type = value["type"] || "clause"
|
124
|
+
locality.reference_from = value["reference_from"] || value
|
125
|
+
locality.reference_to = value["reference_to"] if value["reference_to"]
|
126
|
+
locality.validate!
|
127
|
+
else
|
128
|
+
locality.type = "clause"
|
129
|
+
locality.reference_from = value
|
130
|
+
locality.validate!
|
131
|
+
end
|
125
132
|
|
126
133
|
model.locality = locality
|
127
134
|
end
|
data/lib/glossarist/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glossarist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lutaml-model
|