relaton-ogc 1.11.0 → 1.11.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 +4 -1
- data/lib/relaton_ogc/ogc_bibliography.rb +1 -1
- data/lib/relaton_ogc/version.rb +1 -1
- data/relaton_ogc.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 235f431a3a14b3aac13ed18c7648cc3428be29602bd0e1559785f03320f51bf1
|
4
|
+
data.tar.gz: 95c8f4a6a3236233082269e17563c8050d0dbe76ac0a3a09c4343be6bb9e16b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16d3f39c0d21ef26423d4799b792ba791ff4e62a9e780ca7fa367e592bce50b466ab87ddf50b6b70c3aed2b3e261ec48458a72c0496503a960e3b6192ed704e9
|
7
|
+
data.tar.gz: 24b051eca76f708a31b9253b68ce101535c6f46dc2749de0789b567e26d718159e1c35fd7475e8205569936ef39979a29f5729dad5fa166d75be0b405124b001
|
@@ -25,7 +25,10 @@ module RelatonOgc
|
|
25
25
|
# rescue ArgumentError
|
26
26
|
# Date.parse "0000-01-01"
|
27
27
|
# end.reverse
|
28
|
-
|
28
|
+
url = "#{ENDPOINT}#{code.upcase.gsub(/[\s:.]/, '_')}.yaml"
|
29
|
+
resp = Faraday.get url do |req|
|
30
|
+
req.options.timeout = 10
|
31
|
+
end
|
29
32
|
@array = case resp.status
|
30
33
|
when 200
|
31
34
|
bib = OgcBibliographicItem.from_hash YAML.safe_load(resp.body)
|
@@ -6,7 +6,7 @@ module RelatonOgc
|
|
6
6
|
def search(text, year = nil, _opts = {})
|
7
7
|
code = text.sub(/^OGC\s/, "")
|
8
8
|
HitCollection.new code, year
|
9
|
-
rescue Faraday::ConnectionFailed
|
9
|
+
rescue Faraday::ConnectionFailed, Faraday::SSLError
|
10
10
|
raise RelatonBib::RequestError, HitCollection::ENDPOINT
|
11
11
|
end
|
12
12
|
|
data/lib/relaton_ogc/version.rb
CHANGED
data/relaton_ogc.gemspec
CHANGED
@@ -34,6 +34,6 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.add_development_dependency "vcr"
|
35
35
|
spec.add_development_dependency "webmock"
|
36
36
|
|
37
|
-
spec.add_dependency "faraday", "~> 1.
|
37
|
+
spec.add_dependency "faraday", "~> 1.0"
|
38
38
|
spec.add_dependency "relaton-iso-bib", "~> 1.11.0"
|
39
39
|
end
|
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.11.
|
4
|
+
version: 1.11.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-04-
|
11
|
+
date: 2022-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '1.
|
131
|
+
version: '1.0'
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '1.
|
138
|
+
version: '1.0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: relaton-iso-bib
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|