relaton-iec 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/relaton_iec/iec_bibliography.rb +1 -1
- data/lib/relaton_iec/scrapper.rb +2 -1
- data/lib/relaton_iec/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: 7e32eec9580b2ce05bb78db4265203cb98c06a08
|
4
|
+
data.tar.gz: 06c30a2a49f3f501084f5050b1c15f8ebc9b01c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37df6854d11d3541fb485923c5ad59936b20eeb54055a2a92a4224309e8e113691bc4efe739bc3ab9fbb19ca92cbc86b50276db671a2a2f0df9d5f47ab9a1f60
|
7
|
+
data.tar.gz: f29b3bc18fb7aac91e5aa1447a959aad4cb992b37dc9925d804aec687dd529a15c3e2ec3b992df06dcd04ad67af922bad0ba3b9d9a85f91331f735e142f5fceb
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relaton-iec (0.4.
|
4
|
+
relaton-iec (0.4.3)
|
5
5
|
addressable
|
6
6
|
relaton-iso-bib (~> 0.3.0)
|
7
7
|
|
@@ -26,7 +26,7 @@ GEM
|
|
26
26
|
json (2.2.0)
|
27
27
|
method_source (0.9.2)
|
28
28
|
mini_portile2 (2.4.0)
|
29
|
-
nokogiri (1.10.
|
29
|
+
nokogiri (1.10.4)
|
30
30
|
mini_portile2 (~> 2.4.0)
|
31
31
|
pry (0.12.2)
|
32
32
|
coderay (~> 1.1.0)
|
@@ -36,10 +36,10 @@ GEM
|
|
36
36
|
pry (~> 0.10)
|
37
37
|
public_suffix (3.1.1)
|
38
38
|
rake (10.5.0)
|
39
|
-
relaton-bib (0.3.
|
39
|
+
relaton-bib (0.3.5)
|
40
40
|
addressable
|
41
41
|
nokogiri (~> 1.10)
|
42
|
-
relaton-iso-bib (0.3.
|
42
|
+
relaton-iso-bib (0.3.4)
|
43
43
|
isoics (~> 0.1.6)
|
44
44
|
relaton-bib (~> 0.3.0)
|
45
45
|
ruby_deep_clone (~> 0.8.0)
|
@@ -13,7 +13,7 @@ module RelatonIec
|
|
13
13
|
# @return [RelatonIec::HitCollection]
|
14
14
|
def search(text, year = nil)
|
15
15
|
HitCollection.new text, year
|
16
|
-
rescue SocketError, OpenURI::HTTPError
|
16
|
+
rescue SocketError, OpenURI::HTTPError, OpenSSL::SSL::SSLError
|
17
17
|
raise RelatonBib::RequestError, "Could not access http://www.iec.ch"
|
18
18
|
end
|
19
19
|
|
data/lib/relaton_iec/scrapper.rb
CHANGED
@@ -169,7 +169,8 @@ module RelatonIec
|
|
169
169
|
# end
|
170
170
|
Nokogiri::HTML(resp.body)
|
171
171
|
rescue SocketError, Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError,
|
172
|
-
Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError
|
172
|
+
Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError,
|
173
|
+
OpenSSL::SSL::SSLError
|
173
174
|
raise RelatonBib::RequestError, "Could not access #{url}"
|
174
175
|
end
|
175
176
|
# rubocop:enable Metrics/AbcSize
|
data/lib/relaton_iec/version.rb
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.
|
4
|
+
version: 0.4.3
|
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-08-
|
11
|
+
date: 2019-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|