tc211-termbase 0.2.4 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tc211/termbase/term.rb +19 -0
- data/lib/tc211/termbase/terminology_sheet.rb +6 -1
- data/lib/tc211/termbase/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1630d39e900123953d8991f43340dfd58c7609f6eb961aa294d0d29556065377
|
4
|
+
data.tar.gz: 115395605ed32c35aef6c9fda120897a6206da00dd13df6698da08a7a7a7b69c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 708998cd1ba122f2e5353921fd4bccb45abca9acf76ba339411ee2ce723dbc4fc5bffdedd66944231c3eabe257e1129dafaa2740e6a504c3b1c52d0bd94d8599
|
7
|
+
data.tar.gz: 86735b67de981d93e98a91e0712cf65352d4faf2f128512f42bd400694da05af5ef663f493f0ce435c0bb64d72bfc6992996feb18e60f76ac7234222e712dbe0
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: creek
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.3.
|
151
|
+
rubygems_version: 3.3.27
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Build scripts for the ISO/TC 211 Termbase
|