relaton-bipm 1.13.8 → 1.13.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +0 -1
- data/lib/relaton_bipm/data_fetcher.rb +11 -1
- data/lib/relaton_bipm/editorial_group.rb +9 -6
- 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: 25ba380a0a3c8be3a780f9ab4e5d9c07c73ba3b6e394718a46528ba731a05f8f
|
|
4
|
+
data.tar.gz: 1d42cf0d52fac70d663ee102935dc369e38e56c2cba1a95a6246c62297cc5de1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de73958097527e957388c3fe0c1f2d4e22be73cd2be0bd1489e4ed327b575b20ff8bfab86ec2d412af5a0e34dc820e71b1d13f08b2a4bc25b5e10d4f207abb47
|
|
7
|
+
data.tar.gz: a10dbfb2077646c9e35c3a910f16e94c1c3e0320e5dc321ffae055ccdf06fc798145df74f16c0b48b9a11fa382b3add39cae26ef676b36e33573f3884b1cf8b4
|
data/.github/workflows/rake.yml
CHANGED
|
@@ -121,13 +121,23 @@ module RelatonBipm
|
|
|
121
121
|
if oldval.is_a?(Hash) && newval.is_a?(Hash)
|
|
122
122
|
deep_merge(oldval, newval)
|
|
123
123
|
elsif oldval.is_a?(Array) && newval.is_a?(Array)
|
|
124
|
-
oldval |
|
|
124
|
+
oldval.concat(newval).uniq { |i| downcase_all i }
|
|
125
|
+
# oldval | newval
|
|
125
126
|
else
|
|
126
127
|
newval || oldval
|
|
127
128
|
end
|
|
128
129
|
end
|
|
129
130
|
end
|
|
130
131
|
|
|
132
|
+
def downcase_all(content)
|
|
133
|
+
case content
|
|
134
|
+
when Hash then content.transform_values { |v| downcase_all v }
|
|
135
|
+
when Array then content.map { |v| downcase_all v }
|
|
136
|
+
when String then content.downcase
|
|
137
|
+
else content
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
|
|
131
141
|
#
|
|
132
142
|
# Search for English meetings in the body directory
|
|
133
143
|
#
|
|
@@ -2,8 +2,11 @@ module RelatonBipm
|
|
|
2
2
|
class EditorialGroup
|
|
3
3
|
include RelatonBib
|
|
4
4
|
|
|
5
|
-
# @return [Array<
|
|
6
|
-
attr_reader :committee
|
|
5
|
+
# @return [Array<RelatonBipm::Committee>]
|
|
6
|
+
attr_reader :committee
|
|
7
|
+
|
|
8
|
+
# @return [Array<RelatonBipm::WorkGroup>]
|
|
9
|
+
attr_reader :workgroup
|
|
7
10
|
|
|
8
11
|
# @param committee [Array<RelatonBipm::Committee>]
|
|
9
12
|
# @param workgroup [Array<RelatonBipm::WorkGroup>]
|
|
@@ -33,10 +36,10 @@ module RelatonBipm
|
|
|
33
36
|
|
|
34
37
|
# @return [Hash]
|
|
35
38
|
def to_hash
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
hash = {}
|
|
40
|
+
hash["committee"] = single_element_array(committee) if committee.any?
|
|
41
|
+
hash["workgroup"] = single_element_array(workgroup) if workgroup.any?
|
|
42
|
+
hash
|
|
40
43
|
end
|
|
41
44
|
|
|
42
45
|
# @return [true]
|
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.13.
|
|
4
|
+
version: 1.13.9
|
|
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-09-
|
|
11
|
+
date: 2022-09-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: byebug
|