relaton-ietf 0.11.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_ietf/ietf_bibliography.rb +6 -2
- data/lib/relaton_ietf/scrapper.rb +2 -2
- data/lib/relaton_ietf/version.rb +1 -1
- data/relaton_ietf.gemspec +2 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3651e6424d875521f5460fcfe63b3de8607b7e20a97af92a13ecab7594557965
|
4
|
+
data.tar.gz: 986bbf087fa8e7b4c9fc1fa2ca44867093f54a5c7e181f8ed0bf72719ef2a58b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b1de5bfa3d2922e36246b700ef5d8c8ba3897cb313c53c4023e4e3647c2407c18566e0c284b5967c476737270a49f3f8489fbe9fe6caf669cd2fc16c5e208cc
|
7
|
+
data.tar.gz: f0aef9420cf1dc1d24f309ecd9265f85b021361516df0a37827a0c7a5f7dd5fd91df715ed49105d80f133e1cd305980a886c2b8b9f65b7abf0c118c75c46344f
|
@@ -14,10 +14,14 @@ module RelatonIetf
|
|
14
14
|
|
15
15
|
# @param code [String] the ISO standard Code to look up (e..g "ISO 9000")
|
16
16
|
# @param year [String] the year the standard was published (optional)
|
17
|
-
# @param opts [Hash] options; restricted to :all_parts if all-parts
|
17
|
+
# @param opts [Hash] options; restricted to :all_parts if all-parts
|
18
|
+
# reference is required
|
18
19
|
# @return [RelatonIetf::IetfBibliographicItem] Relaton of reference
|
19
20
|
def get(code, _year = nil, _opts = {})
|
20
|
-
|
21
|
+
warn "[relaton-ietf] (\"#{code}\") fetching..."
|
22
|
+
result = search code
|
23
|
+
warn "[relaton-ietf] (\"#{code}\") found #{result.docidentifier.first.id}"
|
24
|
+
result
|
21
25
|
end
|
22
26
|
end
|
23
27
|
end
|
@@ -264,14 +264,14 @@ module RelatonIetf
|
|
264
264
|
end
|
265
265
|
|
266
266
|
# @param author [Nokogiri::XML::Document]
|
267
|
-
# @return [RelatonBib::
|
267
|
+
# @return [RelatonBib::Affiliation]
|
268
268
|
def affiliation(author)
|
269
269
|
organization = author.at("./organization")
|
270
270
|
org = RelatonBib::Organization.new(
|
271
271
|
name: organization.text.empty? ? "IETF" : organization.text,
|
272
272
|
abbreviation: organization[:abbrev] || "IETF",
|
273
273
|
)
|
274
|
-
RelatonBib::
|
274
|
+
RelatonBib::Affiliation.new organization: org
|
275
275
|
end
|
276
276
|
|
277
277
|
# @param author [Nokogiri::XML::Document]
|
data/lib/relaton_ietf/version.rb
CHANGED
data/relaton_ietf.gemspec
CHANGED
@@ -35,10 +35,10 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_development_dependency "rake", "~> 10.0"
|
36
36
|
spec.add_development_dependency "rspec", "~> 3.0"
|
37
37
|
spec.add_development_dependency "ruby-debug-ide"
|
38
|
+
spec.add_development_dependency "ruby-jing"
|
38
39
|
spec.add_development_dependency "simplecov"
|
39
40
|
spec.add_development_dependency "vcr"
|
40
41
|
spec.add_development_dependency "webmock"
|
41
|
-
spec.add_development_dependency "ruby-jing"
|
42
42
|
|
43
|
-
spec.add_dependency "relaton-bib", "~> 0.
|
43
|
+
spec.add_dependency "relaton-bib", "~> 0.9.0"
|
44
44
|
end
|
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.12.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-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: ruby-jing
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: vcr
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: webmock
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
159
|
+
version: 0.9.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.9.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:
|