tc211-termbase 0.2.4 → 0.2.5
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/tc211/termbase/term.rb +19 -0
- data/lib/tc211/termbase/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: f68f93b8b87b009b39bc7332df0a30083e25d25d9107fe964a9fc048c587d7fa
|
4
|
+
data.tar.gz: 5fbcd25491ac31ed2f729e85db945be245eb75cab528351b0d625312aee6a6bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afba8f8fc41d22fd6cbbd9bc9c40db3d7a3ef31011586a4fdb9e6d3d19f7531a066cb9deaf43abc603eee982d31fea60c172876ccc2fa496fe7c23b51c7433ab
|
7
|
+
data.tar.gz: fd1210037b404f703f951fc881681430e9022677650edd535999f43977a5e0a56b557e6e9df524a77ee545c95cb5c1aaea9e71ad41e0494d1fdafe51e7f43eb1
|
data/lib/tc211/termbase/term.rb
CHANGED
@@ -213,6 +213,11 @@ module Tc211::Termbase
|
|
213
213
|
@review_indicator = value
|
214
214
|
end
|
215
215
|
|
216
|
+
def authoritative_source=(source)
|
217
|
+
clean_source!(source)
|
218
|
+
@authoritative_source = source
|
219
|
+
end
|
220
|
+
|
216
221
|
# authoritative-source-similarity
|
217
222
|
# Must be one of the following codes:
|
218
223
|
# identical = 1
|
@@ -228,6 +233,11 @@ module Tc211::Termbase
|
|
228
233
|
@authoritative_source_similarity = value
|
229
234
|
end
|
230
235
|
|
236
|
+
def lineage_source=(source)
|
237
|
+
clean_source!(source)
|
238
|
+
@lineage_source = source
|
239
|
+
end
|
240
|
+
|
231
241
|
# lineage-source-similarity
|
232
242
|
# Must be one of the following codes:
|
233
243
|
# identical = 1
|
@@ -243,6 +253,15 @@ module Tc211::Termbase
|
|
243
253
|
@lineage_source_similarity = value
|
244
254
|
end
|
245
255
|
|
256
|
+
def clean_source!(source)
|
257
|
+
if source.is_a?(Hash)
|
258
|
+
source["ref"]&.gsub!(/\(E\),?\s*/, "")
|
259
|
+
source["clause"]&.gsub!(/\(E\),?\s*/, "")
|
260
|
+
else
|
261
|
+
source.gsub!(/\(E\),?\s*/, "")
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
246
265
|
## value Must be one of pending tentative final
|
247
266
|
def review_status=(value)
|
248
267
|
unless ["", "pending", "tentative", "final"].include?(value)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tc211-termbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03
|
11
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: creek
|