relaton-bipm 1.16.3 → 1.16.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: 3d8e6a865105cdcf8855183ef3e9a643f7b5927a45e7fb323933b35e6c785c5b
4
- data.tar.gz: 7d0e021593a5b8e0da95ff90aaf7f62a769d2d96bff362779025b01cfc6f950a
3
+ metadata.gz: b1d91960ac9f8357a2ced7209b3dcb7c3ff4637b899639c09a622c2715fe7d36
4
+ data.tar.gz: 56536641e820e1d14336f8d40efce9a1be829c9356d362761740fc09a39d5b6f
5
5
  SHA512:
6
- metadata.gz: 87020ee215e5bdd22faef4628a2dee2745e18a946da0fed498e374d1acc80bede9a4e3ea21afee2fd9375a0ef29ece739f5466cd45a32e73d991eead21272232
7
- data.tar.gz: 0a009e46923cbfb67361f2edb48198a1a1f82022c4925fa3780bb5d6137ca3585fcf5de376aca5f743db11855db034a68acdc56b72f921351a9d2ebe7a4ce03c
6
+ metadata.gz: 57a28e5cc70fd280b02caa1d267fa79d8aff4e7b120847bae458e283977e631190d622b727c1830fa442c0507a46227548cee50666bf0010fe50fa242b62edc6
7
+ data.tar.gz: cf74e9ff7b2ad3d2db08b17f8c4139b42d43cfe8bba98d7bd81bf154ea51341ecd821e596780b9415e839f47b664adf6d085b8e678fa3497f773211beb64d015
data/README.adoc CHANGED
@@ -64,11 +64,11 @@ Allowed document names are:
64
64
 
65
65
  `BIPM Metrologia {JOURNAL} {VOLUME} {ISSUE}`
66
66
 
67
- - `{JOURNAL}` - journal number, required
67
+ - `{JOURNAL}` - journal number, optional
68
68
  - `{VOLUME}` - volume number, optional
69
69
  - `{ISSUE}` - issue number, optional
70
70
 
71
- ==== Reference structures for CCTF (CCDS), CGPM, CIPM documents
71
+ ==== Reference structures for Outcomes documents
72
72
 
73
73
  ===== Basic pattern
74
74
 
@@ -83,7 +83,7 @@ Short:
83
83
  {group name} {type-abbrev} {number} ({year}, {lang})
84
84
  ----
85
85
 
86
- - `group name` - a name of the group, required. A full list of group names is available https://github.com/metanorma/bipm-editor-guides/blob/main/sources/bipm-outcomes-en.adoc#appendix-a-bipm-groups-and-codes[here].
86
+ - `group name` - a name of the group, required. A full list of group names is available https://github.com/metanorma/bipm-editor-guides/blob/main/sources/bipm-references-en.adoc#appendix-a-bipm-groups-and-codes[here].
87
87
  - `type` - a type of document, required. A list of types is: Resolution (Résolution), Recommendation (Recommandation), Decision (Décision), Meeting (Réunion), Declaration (Déclaration).
88
88
  - `type-abbrev` - an abbreviation of the type, required. A list of abbreviations: RES (Resolution), REC (Recommendation), DECN (Decision).
89
89
  - `number` - a number of the document, optional. Can be with part, e.g. `1-2`.
@@ -91,7 +91,7 @@ module RelatonBipm
91
91
  def ==(other) # rubocop:disable Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity,Metrics/AbcSize
92
92
  other_hash = other.is_a?(Id) ? other.to_hash : normalize_hash(other)
93
93
  hash = to_hash
94
- hash.delete(:number) if other_hash[:number].nil? && hash[:number] == "1"
94
+ hash.delete(:number) if other_hash[:number].nil? && hash[:number] == "1" and hash[:year]
95
95
  other_hash.delete(:number) if hash[:number].nil? && other_hash[:number] == "1"
96
96
  hash.delete(:year) unless other_hash[:year]
97
97
  other_hash.delete(:year) unless hash[:year]
@@ -7,7 +7,7 @@ module RelatonBipm
7
7
  def initialize
8
8
  @short = :relaton_bipm
9
9
  @prefix = "BIPM"
10
- @defaultprefix = %r{^(?:BIPM|CCTF|CCDS|CGPM|CIPM|JCRB)(?!\w)}
10
+ @defaultprefix = %r{^(?:BIPM|CCTF|CCDS|CGPM|CIPM|JCRB|JCGM)(?!\w)}
11
11
  @idtype = "BIPM"
12
12
  @datasets = %w[bipm-data-outcomes bipm-si-brochure rawdata-bipm-metrologia]
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.16.3".freeze
2
+ VERSION = "1.16.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.16.3
4
+ version: 1.16.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: 2023-10-07 00:00:00.000000000 Z
11
+ date: 2023-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday