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 +4 -4
- data/lib/relaton_iho/editorial_group.rb +11 -6
- data/lib/relaton_iho/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: 9de8a40ba30cb75e63c79bd94336fb3a912966d96e5c9effa06de4449b2d1b42
|
4
|
+
data.tar.gz: 30a0fa02802686ffd10cb798ba1024c2ee30a5d0cf8a3de1839162042375adc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
59
|
+
hash = { "committee" => committee }
|
60
|
+
hash["workgroup"] = workgroup if workgroup
|
61
|
+
hash
|
57
62
|
end
|
58
63
|
end
|
59
64
|
end
|
data/lib/relaton_iho/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|