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 +4 -4
- data/README.adoc +3 -3
- data/lib/relaton_bipm/id_parser.rb +1 -1
- data/lib/relaton_bipm/processor.rb +1 -1
- data/lib/relaton_bipm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1d91960ac9f8357a2ced7209b3dcb7c3ff4637b899639c09a622c2715fe7d36
|
4
|
+
data.tar.gz: 56536641e820e1d14336f8d40efce9a1be829c9356d362761740fc09a39d5b6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
67
|
+
- `{JOURNAL}` - journal number, optional
|
68
68
|
- `{VOLUME}` - volume number, optional
|
69
69
|
- `{ISSUE}` - issue number, optional
|
70
70
|
|
71
|
-
==== Reference structures for
|
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-
|
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
|
data/lib/relaton_bipm/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|