relaton-iec 0.3.2 → 0.4.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_iec/iec_bibliography.rb +1 -1
- data/lib/relaton_iec/scrapper.rb +5 -5
- data/lib/relaton_iec/version.rb +1 -1
- data/relaton_iec.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: 23eafbff8adc2eeb681a3294dcd33ee9bbba5e46
|
4
|
+
data.tar.gz: 6073ba90262a12ab5c2584424754b5a657705084
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f1fcb49417d2baa88219296f5c31db8333b3c360e477fa56217e190d1992506ec3b15a059ac9e5e47c3e922a2c6bfabda28f2b502458f2e1fade6cede058577
|
7
|
+
data.tar.gz: 42fe6b9fac32553cedf6b7b5d8eef34f0f1c023cd99d63fd40fe72ca65d7ef3c1f588bb2bc2df2a11fb5cd3a86dd5d1880ac79f3322a5654ce39ae5d99434d36
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relaton-iec (0.
|
4
|
+
relaton-iec (0.4.0)
|
5
5
|
addressable
|
6
|
-
relaton-iso-bib (~> 0.
|
6
|
+
relaton-iso-bib (~> 0.3.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
@@ -36,12 +36,12 @@ GEM
|
|
36
36
|
pry (~> 0.10)
|
37
37
|
public_suffix (3.1.1)
|
38
38
|
rake (10.5.0)
|
39
|
-
relaton-bib (0.
|
39
|
+
relaton-bib (0.3.0)
|
40
40
|
addressable
|
41
41
|
nokogiri (~> 1.10)
|
42
|
-
relaton-iso-bib (0.
|
42
|
+
relaton-iso-bib (0.3.0)
|
43
43
|
isoics (~> 0.1.6)
|
44
|
-
relaton-bib (~> 0.
|
44
|
+
relaton-bib (~> 0.3.0)
|
45
45
|
ruby_deep_clone (~> 0.8.0)
|
46
46
|
rspec (3.8.0)
|
47
47
|
rspec-core (~> 3.8.0)
|
@@ -131,7 +131,7 @@ module RelatonIec
|
|
131
131
|
fetch_pages(s, 3).each_with_index do |r, _i|
|
132
132
|
return { ret: r } if !year
|
133
133
|
|
134
|
-
r.
|
134
|
+
r.date.select { |d| d.type == "published" }.each do |d|
|
135
135
|
return { ret: r } if year.to_i == d.on.year
|
136
136
|
|
137
137
|
missed_years << d.on.year
|
data/lib/relaton_iec/scrapper.rb
CHANGED
@@ -62,17 +62,17 @@ module RelatonIec
|
|
62
62
|
edition: edition,
|
63
63
|
language: ["en"],
|
64
64
|
script: ["Latn"],
|
65
|
-
|
65
|
+
title: fetch_titles(hit_data),
|
66
66
|
type: fetch_type(doc),
|
67
67
|
docstatus: status,
|
68
68
|
ics: fetch_ics(doc),
|
69
|
-
|
70
|
-
|
69
|
+
date: fetch_dates(doc),
|
70
|
+
contributor: fetch_contributors(hit_data[:code]),
|
71
71
|
editorialgroup: fetch_workgroup(doc),
|
72
72
|
abstract: fetch_abstract(doc),
|
73
73
|
copyright: fetch_copyright(hit_data[:code], doc),
|
74
74
|
link: fetch_link(doc, hit_data[:url]),
|
75
|
-
|
75
|
+
relation: relations,
|
76
76
|
)
|
77
77
|
end
|
78
78
|
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength
|
@@ -371,7 +371,7 @@ module RelatonIec
|
|
371
371
|
url = "www.iec.ch"
|
372
372
|
end
|
373
373
|
{ entity: { name: name, url: url, abbreviation: abbrev },
|
374
|
-
|
374
|
+
role: ["publisher"] }
|
375
375
|
end
|
376
376
|
end
|
377
377
|
|
data/lib/relaton_iec/version.rb
CHANGED
data/relaton_iec.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
173
|
+
version: 0.3.0
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
180
|
+
version: 0.3.0
|
181
181
|
description: 'RelatonIec: retrieve IEC Standards for bibliographic use using the IsoBibliographicItem
|
182
182
|
model'
|
183
183
|
email:
|