relaton-bipm 1.11.4 → 1.11.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: 48b49b85ee677df9306a704d0b33a2b90460435ae807c03020e5d101f19cd429
4
- data.tar.gz: 9d20d295e87eefc521522d45ffa0ae91a47afabba05c976572240cbaa07c362a
3
+ metadata.gz: 9822a21eb0d3947f49b05a86cf1df7052ea0ff0b5647b1deff72a8c1a0baa615
4
+ data.tar.gz: aaac7bd97c5b86e084badcb0e3428c3cb8f3b72570e80f0a26f5499e5f6be6c0
5
5
  SHA512:
6
- metadata.gz: 37cfcbf1cc3bb77c6fd162fed2580e7844308a8baf1f172ab10c041b6576bedbcb902baf763da699de9b5f32359fbcd5a390a1d482d9793d6e7fd089698c682c
7
- data.tar.gz: e00b2c77e4fe20599959e855423d3775d3e8992d74240cabb4e01a6e0a0dde7386ff02b5e61a57c6181733fbb11efc40d0cc1a02b578fccdf5ced7d8aa8d9a59
6
+ metadata.gz: '039efcd3fff34694d66b65ec2183fefa2bccd0e7730d1de17ff090c78c0819faf17a26942df134d9b31c2faf02f5bd17d102c5166168ea47c34ed3dbd45111d9'
7
+ data.tar.gz: aa6cf69ed87904d7775ad614c6392ca2b5d56f7b4db579fdec4d82d88752a015adbc509626b4db0967de360d5a172750b280e7f814d2800016302cadacef48a4
@@ -4,6 +4,13 @@ module RelatonBipm
4
4
  class BipmBibliography
5
5
  GH_ENDPOINT = "https://raw.githubusercontent.com/relaton/relaton-data-bipm/master/data/".freeze
6
6
  IOP_DOMAIN = "https://iopscience.iop.org".freeze
7
+ TYPES = {
8
+ "Déclaration" => "Declaration",
9
+ "Réunions" => "Meetings",
10
+ "Recommandation" => "Recommandation",
11
+ "Résolution" => "Resolution",
12
+ "Décision" => "Decision",
13
+ }.freeze
7
14
 
8
15
  class << self
9
16
  # @param text [String]
@@ -43,6 +50,7 @@ module RelatonBipm
43
50
  rf = ref.sub(/(?:(\d{1,2})\s)?\(?(\d{4})(?!-)\)?/) do
44
51
  "#{$2}-#{$1.to_s.rjust(2, '0')}"
45
52
  end
53
+ TYPES.each { |fr, en| rf.sub! fr, en }
46
54
  path_parts = rf.split.map &:downcase
47
55
  path_parts.insert(1, "meetings") unless path_parts[1] == "meetings"
48
56
  url = "#{GH_ENDPOINT}#{path_parts.join '/'}.yaml"
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.11.4".freeze
2
+ VERSION = "1.11.5".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.11.4
4
+ version: 1.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2022-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug