relaton-ieee 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -2
- data/lib/relaton_ieee/committee.rb +13 -0
- data/lib/relaton_ieee/ieee_bibliographic_item.rb +8 -1
- data/lib/relaton_ieee/version.rb +1 -1
- data/lib/relaton_ieee/xml_parser.rb +1 -1
- data/relaton_ieee.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e0e03b2f85ee56f80bbd4ad30a72d425529341e03f249b3333a4f336d1e920b
|
4
|
+
data.tar.gz: 772e49ae0ddc4a603cab2ba60d89e6f7ad8cff104cf01e3a0631afd5e9ca26d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a110efa667c5dc009675b1ba87171621aa317ecd649259077fd2d56e79bdfa2c67c8c8874cfb3d7ccb0376f02b007994cbd2afe9cf363ebc38c5acd0041622f4
|
7
|
+
data.tar.gz: e55165748b2625663efefabfc8ecb572c1122137b96525b472430cae40fe017e9376814e3d162d646aacfc63a17f9d02c5626a3a2a2a991a183341f45ed2d6ca
|
data/.rubocop.yml
CHANGED
@@ -29,5 +29,18 @@ module RelatonIeee
|
|
29
29
|
hash["chair"] = chair if chair
|
30
30
|
hash
|
31
31
|
end
|
32
|
+
|
33
|
+
# @param prefix [String]
|
34
|
+
# @param count [Integer]
|
35
|
+
# @return [String]
|
36
|
+
def to_asciibib(prefix, count)
|
37
|
+
pref = prefix.empty? ? prefix : prefix + "."
|
38
|
+
pref += "committee"
|
39
|
+
out = count > 1 ? "#{pref}::\n" : ""
|
40
|
+
out += "#{pref}.type:: #{type}\n"
|
41
|
+
out += "#{pref}.name:: #{name}\n"
|
42
|
+
out += "#{pref}.chair:: #{chair}\n" if chair
|
43
|
+
out
|
44
|
+
end
|
32
45
|
end
|
33
46
|
end
|
@@ -7,7 +7,6 @@ module RelatonIeee
|
|
7
7
|
def initialize(**args)
|
8
8
|
@committee = args.delete :committee
|
9
9
|
super
|
10
|
-
# @doctype = args[:doctyp]
|
11
10
|
end
|
12
11
|
|
13
12
|
# @param builder [Nokogiri::XML::Bilder]
|
@@ -28,5 +27,13 @@ module RelatonIeee
|
|
28
27
|
hash["committee"] = committee.map &:to_hash
|
29
28
|
hash
|
30
29
|
end
|
30
|
+
|
31
|
+
# @param prefix [String]
|
32
|
+
# @return [String]
|
33
|
+
def to_asciibib(prefix = "")
|
34
|
+
out = super
|
35
|
+
committee.each { |c| out += c.to_asciibib prefix, committee.size }
|
36
|
+
out
|
37
|
+
end
|
31
38
|
end
|
32
39
|
end
|
data/lib/relaton_ieee/version.rb
CHANGED
@@ -13,7 +13,7 @@ module RelatonIeee
|
|
13
13
|
|
14
14
|
data[:committee] = ext.xpath("./committee").map do |c|
|
15
15
|
Committee.new(
|
16
|
-
type: c[:type], name: c.at("name").text, chair: c.at("chair")&.text
|
16
|
+
type: c[:type], name: c.at("name").text, chair: c.at("chair")&.text
|
17
17
|
)
|
18
18
|
end
|
19
19
|
data
|
data/relaton_ieee.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ieee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.
|
145
|
+
version: 1.3.0
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.
|
152
|
+
version: 1.3.0
|
153
153
|
description: 'RelatonIeee: retrieve IEEE Standards for bibliographic use using the
|
154
154
|
IeeeBibliographicItem model'
|
155
155
|
email:
|