relaton-ietf 0.5.5 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/lib/relaton_ietf/scrapper.rb +8 -14
- data/lib/relaton_ietf/version.rb +1 -1
- data/relaton_ietf.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1a02321969acca073a48c62ae75a320b3c522e7
|
4
|
+
data.tar.gz: 275620cf52c41de79ef4cfc5e7757e510320c52e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 104dad9c9bb3990c68d6a49391f623f99e1e8f20d173f6bbd914b9cff0767e3d91c4b9622f61e2504698d4501daf2c53c610a43fea76ca39c9cddae9c66aa4a8
|
7
|
+
data.tar.gz: 00d29c43e3320f587518408c040e90158477ff5cc3fbc719debe01f50f1d0d51e8af8d716b8c686627ace940e15a458b96353602c07ed8b494f16028197034d2
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relaton-ietf (0.
|
5
|
-
relaton-iso-bib (~> 0.
|
4
|
+
relaton-ietf (0.6.0)
|
5
|
+
relaton-iso-bib (~> 0.3.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
@@ -35,12 +35,12 @@ GEM
|
|
35
35
|
pry (~> 0.10)
|
36
36
|
public_suffix (3.1.1)
|
37
37
|
rake (10.5.0)
|
38
|
-
relaton-bib (0.
|
38
|
+
relaton-bib (0.3.0)
|
39
39
|
addressable
|
40
40
|
nokogiri (~> 1.10)
|
41
|
-
relaton-iso-bib (0.
|
41
|
+
relaton-iso-bib (0.3.0)
|
42
42
|
isoics (~> 0.1.6)
|
43
|
-
relaton-bib (~> 0.
|
43
|
+
relaton-bib (~> 0.3.0)
|
44
44
|
ruby_deep_clone (~> 0.8.0)
|
45
45
|
rspec (3.8.0)
|
46
46
|
rspec-core (~> 3.8.0)
|
@@ -49,10 +49,10 @@ module RelatonIetf
|
|
49
49
|
status: status(reference),
|
50
50
|
language: [language(reference)],
|
51
51
|
link: [{ type: "src", content: reference[:target] }],
|
52
|
-
|
52
|
+
title: titles(reference),
|
53
53
|
abstract: abstracts(reference),
|
54
|
-
|
55
|
-
|
54
|
+
contributor: contributors(reference),
|
55
|
+
date: dates(reference),
|
56
56
|
series: series(reference),
|
57
57
|
keywords: reference.xpath("front/keyword").map(&:text),
|
58
58
|
)
|
@@ -90,13 +90,7 @@ module RelatonIetf
|
|
90
90
|
docid: [RelatonBib::DocumentIdentifier.new(type: "IETF", id: reference)],
|
91
91
|
language: ["en"],
|
92
92
|
link: [{ type: "src", content: uri }],
|
93
|
-
|
94
|
-
# titles: titles(reference),
|
95
|
-
# abstract: abstracts(reference),
|
96
|
-
# contributors: contributors(reference),
|
97
|
-
# dates: dates(reference),
|
98
|
-
# series: series(reference),
|
99
|
-
# keywords: reference.xpath("front/keyword").map(&:text),
|
93
|
+
relation: fetch_relations(doc),
|
100
94
|
)
|
101
95
|
end
|
102
96
|
|
@@ -154,9 +148,9 @@ module RelatonIetf
|
|
154
148
|
entity = RelatonBib::Person.new(
|
155
149
|
name: full_name(author, reference),
|
156
150
|
affiliation: [affiliation(author)],
|
157
|
-
|
151
|
+
contact: contacts(author.at("./address")),
|
158
152
|
)
|
159
|
-
{ entity: entity,
|
153
|
+
{ entity: entity, role: [contributor_role(author)] }
|
160
154
|
end
|
161
155
|
end
|
162
156
|
|
@@ -166,7 +160,7 @@ module RelatonIetf
|
|
166
160
|
next unless si[:stream]
|
167
161
|
|
168
162
|
entity = RelatonBib::Organization.new name: si[:stream]
|
169
|
-
{ entity: entity,
|
163
|
+
{ entity: entity, role: ["author"] }
|
170
164
|
end.compact
|
171
165
|
end
|
172
166
|
|
@@ -176,7 +170,7 @@ module RelatonIetf
|
|
176
170
|
def full_name(author, ref)
|
177
171
|
RelatonBib::FullName.new(
|
178
172
|
completename: localized_string(author[:fullname], ref),
|
179
|
-
|
173
|
+
initial: [localized_string(author[:initials], ref)],
|
180
174
|
surname: [localized_string(author[:surname], ref)],
|
181
175
|
)
|
182
176
|
end
|
data/lib/relaton_ietf/version.rb
CHANGED
data/relaton_ietf.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ietf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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: 2019-07-
|
11
|
+
date: 2019-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
159
|
+
version: 0.3.0
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
166
|
+
version: 0.3.0
|
167
167
|
description: "RelatonIetf: retrieve IETF Standards for bibliographic use \nusing the
|
168
168
|
BibliographicItem model.\n\nFormerly known as rfcbib.\n"
|
169
169
|
email:
|