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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e368538397b597d92173769f193389c8f8917aa228c84518777a5637e0e8474
4
- data.tar.gz: a397b469e62394c577da6fd2527264a79d72d2249cb72144be4e593951b14c9f
3
+ metadata.gz: 1630d39e900123953d8991f43340dfd58c7609f6eb961aa294d0d29556065377
4
+ data.tar.gz: 115395605ed32c35aef6c9fda120897a6206da00dd13df6698da08a7a7a7b69c
5
5
  SHA512:
6
- metadata.gz: 7694a9117a74cf937efde25496560a4d6c40a58f6d14aede4bcb78e3d0c16df39173680b7704d6824c13e66410d2244d68ff4685f3d893599c6f683e7a66d068
7
- data.tar.gz: 4151e3efee8bcc149bd5709b25668d75d757e4237ea6b605678ea240e274e3c170a672df72b34958ae5751468c6ecebbf9c1406d5564597e419f88e1671c9fdc
6
+ metadata.gz: 708998cd1ba122f2e5353921fd4bccb45abca9acf76ba339411ee2ce723dbc4fc5bffdedd66944231c3eabe257e1129dafaa2740e6a504c3b1c52d0bd94d8599
7
+ data.tar.gz: 86735b67de981d93e98a91e0712cf65352d4faf2f128512f42bd400694da05af5ef663f493f0ce435c0bb64d72bfc6992996feb18e60f76ac7234222e712dbe0
@@ -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)
@@ -29,7 +29,12 @@ module Tc211::Termbase
29
29
 
30
30
  @language_code = case code
31
31
  when "dut/nld"
32
- "dut"
32
+ "nld"
33
+ when "chi"
34
+ "zho"
35
+ when "ger"
36
+ "deu"
37
+ # below for backwards compatibility
33
38
  when "工作语言代码"
34
39
  "chn"
35
40
  when "pl"
@@ -1,5 +1,5 @@
1
1
  module Tc211
2
2
  module Termbase
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.6"
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.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-03-04 00:00:00.000000000 Z
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.26
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