relaton-bipm 1.13.7 → 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: e0515bfe2447d7a6881937d4b4d30d88143c5c15928f0f7698731b5cbd49435d
4
- data.tar.gz: 48cb0ea748808d446b24147f7e4c1c5882e955800c1f38e4301e327d0f45bc7f
3
+ metadata.gz: 25ba380a0a3c8be3a780f9ab4e5d9c07c73ba3b6e394718a46528ba731a05f8f
4
+ data.tar.gz: 1d42cf0d52fac70d663ee102935dc369e38e56c2cba1a95a6246c62297cc5de1
5
5
  SHA512:
6
- metadata.gz: b09363f8f4df906223cd9a6cfbf22e39df66ce88979962e026cd209b0150aa882d63a48d3599c88357e1ad3f0ed78b44f763b256fbb123deecbad60d35ecb602
7
- data.tar.gz: 725f0cacf5b4ab8afb59bf063f1953d7b19267253d4fe6ccf644102f2c31fca3f08cb59bde263956bfe283b09539c9dbd40f93ba8cc9e1c1eb1867afd4e3c066
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:
@@ -244,8 +244,8 @@ module RelatonBipm
244
244
  def get_article(path, vol, ish, agent) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
245
245
  agent.agent.allowed_error_codes = [403]
246
246
  rsp = agent.get path
247
- title = rsp.at("//h1[@itemprop='headline']").children.to_xml
248
247
  check_response rsp
248
+ title = rsp.at("//h1[@itemprop='headline']").children.to_xml
249
249
  url = rsp.uri
250
250
  bib = rsp.link_with(text: "BibTeX").href
251
251
  rsp = agent.get bib
@@ -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.7".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.7
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