relaton-bipm 1.13.8 → 1.13.9

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: a0aef7cda16066af969c5c5fd6d329c603d5f3d023d89c1b5c01e8301e820921
4
- data.tar.gz: 884092e2963a67f72902352ba2016aa267397937836dc1ea2275f43a667ca7c1
3
+ metadata.gz: 25ba380a0a3c8be3a780f9ab4e5d9c07c73ba3b6e394718a46528ba731a05f8f
4
+ data.tar.gz: 1d42cf0d52fac70d663ee102935dc369e38e56c2cba1a95a6246c62297cc5de1
5
5
  SHA512:
6
- metadata.gz: 953db4dc18160ea1a74bfbf9cb90be9171487a96e2f7ca9c438653b979753209d2c52ab278fc5a3c4c81bfcec07fb625b783fb2e04696b305e13ee5ce6628d48
7
- data.tar.gz: 5d5d0dd12160d75ceed58fe60a659405827e39944732bc3369385c0d2912be16eae6ae39c0c1e0e8a6e937b46a0fb11f6abcdb4c99f46b581987f266444892cd
6
+ metadata.gz: de73958097527e957388c3fe0c1f2d4e22be73cd2be0bd1489e4ed327b575b20ff8bfab86ec2d412af5a0e34dc820e71b1d13f08b2a4bc25b5e10d4f207abb47
7
+ data.tar.gz: a10dbfb2077646c9e35c3a910f16e94c1c3e0320e5dc321ffae055ccdf06fc798145df74f16c0b48b9a11fa382b3add39cae26ef676b36e33573f3884b1cf8b4
@@ -5,7 +5,6 @@ name: rake
5
5
  on:
6
6
  push:
7
7
  branches: [ master, main ]
8
- tags: [ v* ]
9
8
  pull_request:
10
9
 
11
10
  jobs:
@@ -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 | newval
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<String>]
6
- attr_reader :committee, :workgroup
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
- "committee" => single_element_array(committee),
38
- "workgroup" => single_element_array(workgroup),
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]
@@ -1,3 +1,3 @@
1
1
  module RelatonBipm
2
- VERSION = "1.13.8".freeze
2
+ VERSION = "1.13.9".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.13.8
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-21 00:00:00.000000000 Z
11
+ date: 2022-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug