relaton-itu 0.2.3 → 0.3.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/itubib.gemspec +1 -1
- data/lib/relaton_itu/itu_bibliography.rb +1 -1
- data/lib/relaton_itu/scrapper.rb +5 -5
- data/lib/relaton_itu/version.rb +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: 103c32b6163973f664486f91981884bd8c98074e
|
4
|
+
data.tar.gz: 2fd3e490d31f85b483516cb3a3cd9cbfff93745b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 148c8b704230e3c6fe1e5d1ebadf8e7c1ee99c3729096e6a03848004e3a30a3a469b522ba82bc6be1318015308c3b53666e25a8c6d6a8582d6e678207fe6fe07
|
7
|
+
data.tar.gz: 257bec32aa5a84eab4674d6b75209bfd69acaaef4d84b4b6756ec390d83ebf037a7fbbdee583d21196722db550bb7bdf76ed82c07545856763d3b6dbc42931d7
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relaton-itu (0.
|
5
|
-
relaton-iso-bib (~> 0.
|
4
|
+
relaton-itu (0.3.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)
|
data/itubib.gemspec
CHANGED
@@ -95,7 +95,7 @@ module RelatonItu
|
|
95
95
|
fetch_pages(s, 3).each_with_index do |r, i|
|
96
96
|
return { ret: r } if !year
|
97
97
|
|
98
|
-
r.
|
98
|
+
r.date.select { |d| d.type == "published" }.each do |d|
|
99
99
|
return { ret: r } if year.to_i == d.on.year
|
100
100
|
|
101
101
|
missed_years << d.on.year
|
data/lib/relaton_itu/scrapper.rb
CHANGED
@@ -59,17 +59,17 @@ module RelatonItu
|
|
59
59
|
edition: edition,
|
60
60
|
language: ["en"],
|
61
61
|
script: ["Latn"],
|
62
|
-
|
62
|
+
title: fetch_titles(hit_data),
|
63
63
|
type: hit_data[:type],
|
64
64
|
docstatus: fetch_status(doc),
|
65
65
|
ics: [], # fetch_ics(doc),
|
66
|
-
|
67
|
-
|
66
|
+
date: fetch_dates(doc),
|
67
|
+
contributor: fetch_contributors(hit_data[:code]),
|
68
68
|
editorialgroup: fetch_workgroup(doc),
|
69
69
|
abstract: fetch_abstract(doc),
|
70
70
|
copyright: fetch_copyright(hit_data[:code], doc),
|
71
71
|
link: fetch_link(doc, hit_data[:url]),
|
72
|
-
|
72
|
+
relation: fetch_relations(doc),
|
73
73
|
)
|
74
74
|
end
|
75
75
|
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength
|
@@ -278,7 +278,7 @@ module RelatonItu
|
|
278
278
|
name = "International Telecommunication Union"
|
279
279
|
url = "www.itu.int"
|
280
280
|
end
|
281
|
-
[{ entity: { name: name, url: url, abbreviation: abbrev },
|
281
|
+
[{ entity: { name: name, url: url, abbreviation: abbrev }, role: ["publisher"] }]
|
282
282
|
end
|
283
283
|
|
284
284
|
# Fetch ICS.
|
data/lib/relaton_itu/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-itu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.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: 2019-07-
|
11
|
+
date: 2019-07-25 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: 'RelatonItu: retrieve ITU Standards for bibliographic use using the BibliographicItem
|
168
168
|
model'
|
169
169
|
email:
|