relaton-ogc 1.14.0 → 1.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_ogc/hit_collection.rb +3 -1
- data/lib/relaton_ogc/ogc_bibliography.rb +4 -4
- data/lib/relaton_ogc/scrapper.rb +0 -1
- data/lib/relaton_ogc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba3481b2cd4c2edba451a0b126d48305d7b86864f8a373976767b4fed48532e9
|
4
|
+
data.tar.gz: 9f574bfe182a4886cbb063dd2e8bb700777641ffeb3fe3368419bd5073b48b02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 143a7bc6a666ee1e1ec0b4f573aa67a94ba095b4d3adda52f35921a891ed06dea3e2c7cf8ce934101493890ab2de92ae1e5fd4138fd73b6989685b7ad84cbb5d
|
7
|
+
data.tar.gz: cf59738eb30e67134f2c60e704f95bb6bb9cf8958f49494e8cbb0ae0fa54602c8b09a575aa49e619d01b707608100ab71f848bcd1aceb318019c960be0002ca2
|
@@ -31,7 +31,9 @@ module RelatonOgc
|
|
31
31
|
end
|
32
32
|
@array = case resp.status
|
33
33
|
when 200
|
34
|
-
|
34
|
+
hash = YAML.safe_load(resp.body)
|
35
|
+
hash["fetched"] = Date.today.to_s
|
36
|
+
bib = OgcBibliographicItem.from_hash hash
|
35
37
|
[Hit.new(bib, self)]
|
36
38
|
else []
|
37
39
|
end
|
@@ -68,11 +68,11 @@ module RelatonOgc
|
|
68
68
|
# @param missed_years [Array<Strig>]
|
69
69
|
def fetch_ref_err(code, year, missed_years)
|
70
70
|
id = year ? "#{code} year #{year}" : code
|
71
|
-
warn "[relaton-ogc] WARNING: no match found online for #{id}. "\
|
72
|
-
|
71
|
+
warn "[relaton-ogc] WARNING: no match found online for #{id}. " \
|
72
|
+
"The code must be exactly like it is on the standards website."
|
73
73
|
unless missed_years.empty?
|
74
|
-
warn "[relaton-ogc] (There was no match for #{year}, though there
|
75
|
-
|
74
|
+
warn "[relaton-ogc] (There was no match for #{year}, though there " \
|
75
|
+
"were matches found for #{missed_years.join(', ')}.)"
|
76
76
|
end
|
77
77
|
nil
|
78
78
|
end
|
data/lib/relaton_ogc/scrapper.rb
CHANGED
@@ -37,7 +37,6 @@ module RelatonOgc
|
|
37
37
|
def parse_page(hit) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
38
38
|
type = fetch_type(hit["type"])
|
39
39
|
OgcBibliographicItem.new(
|
40
|
-
fetched: Date.today.to_s,
|
41
40
|
type: "standard",
|
42
41
|
title: fetch_title(hit["title"]),
|
43
42
|
docid: fetch_docid(hit["identifier"]),
|
data/lib/relaton_ogc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ogc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|