relaton-bipm 1.20.1 → 1.20.3

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: 3f82a59533864cf6f80702a221409634b40078c86a3089b8f0578cca757052f6
4
- data.tar.gz: 6b34ad48868eb793e6d34b4e049ff688144efde7e8431020e618e4f77b7d0185
3
+ metadata.gz: 3d1539848f18eda46cb7357eb8861594434a26b7248878477b9430ae09aabcac
4
+ data.tar.gz: f06a0572b5a70a5fd1d4457d731fac35458372f728f14ec2794bcaf6d73ab6c7
5
5
  SHA512:
6
- metadata.gz: 5894ea600bac7d43358e31dfdfc4114a83e29962850c07b258424dbb208d7c8087b27bfe927ea82546266ee3babdfeabf7228b81b43bb5889beadba4759ab537
7
- data.tar.gz: dd53039d5050bce849c4bed6a6df73046c0ef2c578cd85134ed561a85d27b60367dbc47fbd3e179a0773ba8de98d88b8ee23da44ce196745890ca371f7ab221c
6
+ metadata.gz: 2e42be1fbbc4f9971c688b83a9f3e9de80a4a529be73699c11efb9c095471072cd73f07aaf39b0f94964446e2dbd1a76d16f530cc72d6ee5f45c4ba53c083477
7
+ data.tar.gz: 9565d9d1069aee7a2029af710d60d39c8c0f0ddfd9b0b2f4bda900f7befb4c5b5580d8acafb1d45bd15776db922026451c7b32e5f42f47d4f73900e6fce4097e
@@ -54,4 +54,6 @@ JCRB:
54
54
  JCTLM:
55
55
  en: Joint Committee for Traceability in Laboratory Medicine
56
56
  INetQI:
57
- en: International Network on Quality Infrastructure
57
+ en: International Network on Quality Infrastructure
58
+ CCL-CCTF-WGFS:
59
+ en: CCL-CCTF Frequency Standards Working Group
@@ -171,7 +171,7 @@ module RelatonBipm
171
171
  type: "proceedings", title: [],
172
172
  doctype: DocumentType.new(type: r["type"]), place: [RelatonBib::Place.new(city: "Paris")]
173
173
  }
174
- fr_r = args[:fr]["resolutions"].fetch(i, nil)
174
+ fr_r = args.dig(:fr, "resolutions", i) # @TODO: create a GH issue when fr is missing
175
175
  hash[:title] = resolution_title r, fr_r
176
176
  hash[:link] = resolution_link r, fr_r, args[:src]
177
177
  date = r["dates"].first.to_s
@@ -345,7 +345,7 @@ module RelatonBipm
345
345
  def cipm_org
346
346
  names = [
347
347
  { content: "International Committee for Weights and Measures", language: "en" },
348
- { content: "Comité International des Poids et Mesures", language: "fr" },
348
+ { content: "Comité international des poids et mesures", language: "fr" },
349
349
  ]
350
350
  organization names, "CIPM"
351
351
  end
@@ -91,7 +91,7 @@ module RelatonBipm
91
91
  #
92
92
  def parse(id)
93
93
  # str = StringScanner.new id
94
- match = parse_outcome(id) || parse_brochure(id) || parse_metrologia(id) || parse_jcgm(id)
94
+ match = parse_outcome(id) || parse_brochure(id) || parse_brochure_other(id) || parse_metrologia(id) || parse_jcgm(id)
95
95
  @id = match.named_captures.compact.transform_keys(&:to_sym)
96
96
  self
97
97
  rescue StandardError => e
@@ -133,6 +133,10 @@ module RelatonBipm
133
133
  $}x.match(id)
134
134
  end
135
135
 
136
+ def parse_brochure_other(id)
137
+ %r{^(?<group>CCEM|CCL|CCM|SI|Rapport)[-\s](?<type>GD-RSI|GD-MeP|MEP|BIPM)[-\s](?<number>\w+|\d{4}\/\d{2})$}.match(id)
138
+ end
139
+
136
140
  def parse_metrologia(id)
137
141
  %r{^(?<group>Metrologia)(?:\s(?<number>[a-zA-Z0-9\s]+))?$}.match(id)
138
142
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.20.1".freeze
2
+ VERSION = "1.20.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bipm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.1
4
+ version: 1.20.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-13 00:00:00.000000000 Z
11
+ date: 2024-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday