tc211-termbase 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e368538397b597d92173769f193389c8f8917aa228c84518777a5637e0e8474
4
- data.tar.gz: a397b469e62394c577da6fd2527264a79d72d2249cb72144be4e593951b14c9f
3
+ metadata.gz: f68f93b8b87b009b39bc7332df0a30083e25d25d9107fe964a9fc048c587d7fa
4
+ data.tar.gz: 5fbcd25491ac31ed2f729e85db945be245eb75cab528351b0d625312aee6a6bc
5
5
  SHA512:
6
- metadata.gz: 7694a9117a74cf937efde25496560a4d6c40a58f6d14aede4bcb78e3d0c16df39173680b7704d6824c13e66410d2244d68ff4685f3d893599c6f683e7a66d068
7
- data.tar.gz: 4151e3efee8bcc149bd5709b25668d75d757e4237ea6b605678ea240e274e3c170a672df72b34958ae5751468c6ecebbf9c1406d5564597e419f88e1671c9fdc
6
+ metadata.gz: afba8f8fc41d22fd6cbbd9bc9c40db3d7a3ef31011586a4fdb9e6d3d19f7531a066cb9deaf43abc603eee982d31fea60c172876ccc2fa496fe7c23b51c7433ab
7
+ data.tar.gz: fd1210037b404f703f951fc881681430e9022677650edd535999f43977a5e0a56b557e6e9df524a77ee545c95cb5c1aaea9e71ad41e0494d1fdafe51e7f43eb1
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Tc211
2
2
  module Termbase
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
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
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-04 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: creek