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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8297996957eee431b92d060128af91c1a892cd79042727f72b47138de3a1a9b4
4
- data.tar.gz: 3df919fce76d487a55c19612806aebfc947ea4059984bda440012edf08befbfa
3
+ metadata.gz: 235f431a3a14b3aac13ed18c7648cc3428be29602bd0e1559785f03320f51bf1
4
+ data.tar.gz: 95c8f4a6a3236233082269e17563c8050d0dbe76ac0a3a09c4343be6bb9e16b4
5
5
  SHA512:
6
- metadata.gz: d050299d76d47bca48f8c30fa468e232529354df9ca828df0f1b032fb356f3252f9b08f247a1b12483628ecdee3b03c3a0c59ff1d7f9c6e1c7071d43858a7298
7
- data.tar.gz: 26d4f4376908965fb744c87f4a1f94bfddc986e875b9badf98577e714c4b9e3c84a58638501200147351ca24f55fe4702ca06e98b4805699da11e967c1e29a9b
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
- resp = Faraday.get "#{ENDPOINT}#{code.upcase.gsub(/[\s:.]/, '_')}.yaml"
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
 
@@ -1,3 +1,3 @@
1
1
  module RelatonOgc
2
- VERSION = "1.11.0".freeze
2
+ VERSION = "1.11.1".freeze
3
3
  end
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.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.0
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-10 00:00:00.000000000 Z
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.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.1'
138
+ version: '1.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: relaton-iso-bib
141
141
  requirement: !ruby/object:Gem::Requirement