relaton-ieee 1.10.1 → 1.10.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_ieee/scrapper.rb +12 -2
- data/lib/relaton_ieee/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: a35522930cd851601adc284248bf03db8ad66d9eaee8683ae2fbd2539340cc1f
|
4
|
+
data.tar.gz: ada9379a255bfcceaa3fb92c1a3d2f36a3ab45f98b785d4dc44be8488fc5c146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64add1f8b7621229905e0ef258e7d3d39f96d3e343f5ea5cd3f136d7902bef2fbd89b6861c2f846568d323216f2459ab749d619645d272eb71f41fe391e973d1
|
7
|
+
data.tar.gz: 6465731a9e67433a501b851dbc75203841eb6661852ecb80001c18a59f38a192b9142056d85f8eaee9964e9e9852e2410dd76a0286f3888fd54f61bd69ced886
|
@@ -19,6 +19,7 @@ module RelatonIeee
|
|
19
19
|
script: ["Latn"],
|
20
20
|
date: fetch_date(doc),
|
21
21
|
committee: fetch_committee(doc),
|
22
|
+
place: ["Piscataway, NJ, USA"],
|
22
23
|
)
|
23
24
|
end
|
24
25
|
# rubocop:enable Metrics/MethodLength, Metrics/AbcSize
|
@@ -75,10 +76,19 @@ module RelatonIeee
|
|
75
76
|
|
76
77
|
# @param doc [Nokogiri::HTML::Document]
|
77
78
|
# @return [Array<RelatonBib::ContributionInfo>]
|
78
|
-
def fetch_contributor(doc)
|
79
|
+
def fetch_contributor(doc) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
80
|
+
address = RelatonBib::Address.new(
|
81
|
+
street: ["445 Hoes Lane"], postcode: "08854-4141", city: "Piscataway",
|
82
|
+
state: "NJ", country: "USA"
|
83
|
+
)
|
84
|
+
org = RelatonBib::Organization.new(
|
85
|
+
name: "Institute of Electrical and Electronics Engineers",
|
86
|
+
abbreviation: "IEEE", contact: [address]
|
87
|
+
)
|
88
|
+
contrib = RelatonBib::ContributionInfo.new(entity: org, role: [type: "publisher"])
|
79
89
|
doc.xpath("//dd[@id='stnd-staff-liaison']/text()").map do |name|
|
80
90
|
person_contrib(name.text.strip)
|
81
|
-
end
|
91
|
+
end << contrib
|
82
92
|
end
|
83
93
|
|
84
94
|
# @param name [String]
|
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.10.
|
4
|
+
version: 1.10.2
|
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-02-
|
11
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|