relaton-ieee 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecd6d92c4f49a3d402a3017e8ead935cdec59b22f7128271197ad5de76e1e696
|
4
|
+
data.tar.gz: 6207e47442ff412f346f9e66dedf1392fec101ffa769b4d12fcacdd24ac26237
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d924147453cfda65ac27b54776ba87f1be72ec829fee2d23f02fea8f437073c5fb35b431f86aee3fc632f7395000ee34eabd22970faef5958c7a1c98f25684ef
|
7
|
+
data.tar.gz: 86fdff381a43369391442b99959a5281f1b988cbfa48db37b2d277c2333888d76e533d1a6fccc6d31c9b839680be6e6047dc7338bffca957688a577ab6794c67
|
@@ -157,12 +157,12 @@ module RelatonIeee
|
|
157
157
|
def parse_contributor # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
158
158
|
doc.xpath("./publicationinfo/publisher").map do |contrib|
|
159
159
|
n = contrib.at("./publishername").text
|
160
|
-
addr = contrib.xpath("./address").
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
160
|
+
addr = contrib.xpath("./address").each_with_object([]) do |adr, ob|
|
161
|
+
city = adr.at("./city")
|
162
|
+
next unless city
|
163
|
+
|
164
|
+
ob << RelatonBib::Address.new(street: [], city: city.text,
|
165
|
+
country: adr.at("./country").text)
|
166
166
|
end
|
167
167
|
e = create_org n, addr
|
168
168
|
RelatonBib::ContributionInfo.new entity: e, role: [type: "publisher"]
|
@@ -66,8 +66,14 @@ module RelatonIeee
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
+
#
|
70
|
+
# Rnder as Hash
|
71
|
+
#
|
72
|
+
# @param embedded [Boolean] emmbedded in other document
|
73
|
+
#
|
69
74
|
# @return [Hash]
|
70
|
-
|
75
|
+
#
|
76
|
+
def to_hash(embedded: false)
|
71
77
|
hash = super
|
72
78
|
hash["trialuse"] = trialuse unless trialuse.nil?
|
73
79
|
hash
|
data/lib/relaton_ieee/version.rb
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.14.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -211,7 +211,7 @@ licenses:
|
|
211
211
|
metadata:
|
212
212
|
homepage_uri: https://github.com/relaton/relaton-ieee
|
213
213
|
source_code_uri: https://github.com/relaton/relaton-ieee
|
214
|
-
post_install_message:
|
214
|
+
post_install_message:
|
215
215
|
rdoc_options: []
|
216
216
|
require_paths:
|
217
217
|
- lib
|
@@ -226,8 +226,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
- !ruby/object:Gem::Version
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
|
-
rubygems_version: 3.
|
230
|
-
signing_key:
|
229
|
+
rubygems_version: 3.1.6
|
230
|
+
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: 'RelatonIeee: retrieve IEEE Standards for bibliographic use using the IeeeBibliographicItem
|
233
233
|
model'
|