relaton-iho 1.2.1 → 1.2.2

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: 3ead4d494771fa9db6e1c1fdc7130120fe8444bdfdf4bc4d48fc138b0a68dafb
4
- data.tar.gz: ae68930aa4a8cdbb35e9e9589420685f2082faf0d2434515d4286a3c76543636
3
+ metadata.gz: 9de8a40ba30cb75e63c79bd94336fb3a912966d96e5c9effa06de4449b2d1b42
4
+ data.tar.gz: 30a0fa02802686ffd10cb798ba1024c2ee30a5d0cf8a3de1839162042375adc1
5
5
  SHA512:
6
- metadata.gz: d6cbbe001f24e842601993979537ac70ebdf410a0372ecd3b1df2402af32a65be48d5d0c99400f5dba8a44943e8c7aa3ab88723e63050765ad37d3caae180616
7
- data.tar.gz: 45325be612e4b5062d8957ce7a9fdde0106b10528fcedb1addd354283aeb57ecb49f8d89d86797b9fe6ec51c365ece24cb69a9039ae87f555de2163f4bc79c2f
6
+ metadata.gz: 493afaeb6f957ddff07dc00136b7ded51bca12d404ef82d9089bee4009dbb04e8ee9da620bf429fc2a969e60b5d89917adc496c379544d21d42bf20df8ba0cb9
7
+ data.tar.gz: dfebf7a00a38d031b1556223cf88136783cccde0a37b1ecee93bb17c3bb0ca6de48c69a66c39c983c692b3734aa6f40aa57bf7bb42c73a01342bb86b7eba8f3c
@@ -31,12 +31,15 @@ module RelatonIho
31
31
 
32
32
  class EditorialGroup
33
33
  # @return [String]
34
- attr_reader :committee, :workgroup
34
+ attr_reader :committee
35
+
36
+ # @return [String, nil]
37
+ attr_reader :workgroup
35
38
 
36
39
  # @parma committee [String]
37
- # @param workgroup [String]
38
- def initialize(committee:, workgroup:)
39
- unless %[hssc ircc].include? committee.downcase
40
+ # @param workgroup [String, nil]
41
+ def initialize(committee:, workgroup: nil)
42
+ unless %[hssc ircc council ihr bureau imo msc dcdb].include? committee.downcase
40
43
  warn "[relaton-iho] WARNING: invalid committee: #{committee}"
41
44
  end
42
45
  @committee = committee
@@ -47,13 +50,15 @@ module RelatonIho
47
50
  def to_xml(builder)
48
51
  builder.editorialgroup do
49
52
  builder.committee committee
50
- builder.workgroup workgroup
53
+ builder.workgroup workgroup if workgroup
51
54
  end
52
55
  end
53
56
 
54
57
  # @return [Hash]
55
58
  def to_hash
56
- { "committee" => committee, "workgroup" => workgroup }
59
+ hash = { "committee" => committee }
60
+ hash["workgroup"] = workgroup if workgroup
61
+ hash
57
62
  end
58
63
  end
59
64
  end
@@ -1,3 +1,3 @@
1
1
  module RelatonIho
2
- VERSION = "1.2.1".freeze
2
+ VERSION = "1.2.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-iho
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-01 00:00:00.000000000 Z
11
+ date: 2020-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug