relaton-gb 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/lib/relaton_gb/gb_bibliographic_item.rb +0 -1
- data/lib/relaton_gb/scrapper.rb +2 -1
- data/lib/relaton_gb/t_scrapper.rb +1 -1
- data/lib/relaton_gb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e0abd3ddd075ddc49a6526f7f15b3c8739e3fc9
|
4
|
+
data.tar.gz: 3ab167194c8af992e0148e8214c9837ddbbfa3da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd00fe7a05537aa92148fb4b2ec402cc8227bdbf916ed10bcabb91068369162a50b359790c94ea4fede35c6694031c54211b45c1c186842dba7d0223f266e0ce
|
7
|
+
data.tar.gz: 5ee8ccb6404200dd2ae9e3e2868d505d204fde624bd0d483650489c264b9e93cb03e9efaf05124118d3659d4a780699193d43e5a24ab1eddd267cbdd244b9265
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relaton-gb (0.6.
|
4
|
+
relaton-gb (0.6.5)
|
5
5
|
cnccs (~> 0.1.1)
|
6
6
|
gb-agencies (~> 0.0.1)
|
7
7
|
relaton-iso-bib (~> 0.3.0)
|
@@ -12,7 +12,7 @@ GEM
|
|
12
12
|
addressable (2.7.0)
|
13
13
|
public_suffix (>= 2.0.2, < 5.0)
|
14
14
|
byebug (11.0.1)
|
15
|
-
cnccs (0.1.
|
15
|
+
cnccs (0.1.4)
|
16
16
|
coderay (1.1.2)
|
17
17
|
crack (0.4.3)
|
18
18
|
safe_yaml (~> 1.0.0)
|
@@ -23,9 +23,9 @@ GEM
|
|
23
23
|
docile (1.3.2)
|
24
24
|
equivalent-xml (0.6.0)
|
25
25
|
nokogiri (>= 1.4.3)
|
26
|
-
gb-agencies (0.0.
|
26
|
+
gb-agencies (0.0.6)
|
27
27
|
hashdiff (1.0.0)
|
28
|
-
isoics (0.1.
|
28
|
+
isoics (0.1.8)
|
29
29
|
json (2.2.0)
|
30
30
|
method_source (0.9.2)
|
31
31
|
mini_portile2 (2.4.0)
|
@@ -39,10 +39,10 @@ GEM
|
|
39
39
|
pry (~> 0.10)
|
40
40
|
public_suffix (4.0.1)
|
41
41
|
rake (10.5.0)
|
42
|
-
relaton-bib (0.3.
|
42
|
+
relaton-bib (0.3.9)
|
43
43
|
addressable
|
44
44
|
nokogiri
|
45
|
-
relaton-iso-bib (0.3.
|
45
|
+
relaton-iso-bib (0.3.9)
|
46
46
|
isoics (~> 0.1.6)
|
47
47
|
relaton-bib (~> 0.3.0)
|
48
48
|
ruby_deep_clone (~> 0.8.0)
|
@@ -34,7 +34,6 @@ module RelatonGb
|
|
34
34
|
args[:committee] && @committee = GbTechnicalCommittee.new(args[:committee])
|
35
35
|
@ccs = args[:ccs].map { |c| c.is_a?(Cnccs::Ccs) ? c : Cnccs.fetch(c) }
|
36
36
|
@gbtype = GbStandardType.new args[:gbtype]
|
37
|
-
@type = args[:type]
|
38
37
|
@gbplannumber = args[:gbplannumber] || structuredidentifier&.project_number
|
39
38
|
end
|
40
39
|
|
data/lib/relaton_gb/scrapper.rb
CHANGED
@@ -16,11 +16,12 @@ module RelatonGb
|
|
16
16
|
# @return [Hash]
|
17
17
|
def scrapped_data(doc, src, hit)
|
18
18
|
{
|
19
|
+
fetched: Date.today.to_s,
|
19
20
|
committee: get_committee(doc, hit.docref),
|
20
21
|
docid: get_docid(hit.docref),
|
21
22
|
title: get_titles(doc),
|
22
23
|
contributor: get_contributors(doc, hit.docref),
|
23
|
-
|
24
|
+
doctype: get_type,
|
24
25
|
docstatus: get_status(doc, hit.status),
|
25
26
|
gbtype: get_gbtype(doc, hit.docref),
|
26
27
|
ccs: get_ccs(doc),
|
data/lib/relaton_gb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-gb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
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-
|
11
|
+
date: 2019-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|