lhc 11.0.1 → 11.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lhc/concerns/lhc/basic_methods_concern.rb +1 -1
- data/lib/lhc/version.rb +1 -1
- data/spec/request/parallel_requests_spec.rb +19 -0
- 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: '08a828482abe7ecd92b963be2f85a921d5d33c21386048c0de1dd5eddd7a0c5d'
|
4
|
+
data.tar.gz: afbe59a64dbf4e6a772aa045c6717694fc45c99f08818eb3892cfc3df3d24607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca154508dfeab839682d6cc9babd7d9ac3fd194ff318f0132fd05399aea04dcd155c9cf77b679ae91be6fef0971b2c13de0c14673b7f90beff77ca13d8bc2a42
|
7
|
+
data.tar.gz: e24477b6e9cc94aa1faa1c3b4e366d59b466df46c9abb4a914255316cd4a9b5eef192f70157df5c50c38422b738b6b384f692180cd415b7bfd19398d87b91fa3
|
data/lib/lhc/version.rb
CHANGED
@@ -37,4 +37,23 @@ describe LHC::Request do
|
|
37
37
|
expect(@called).to eq 2
|
38
38
|
end
|
39
39
|
end
|
40
|
+
|
41
|
+
context 'webmock disabled' do
|
42
|
+
before do
|
43
|
+
WebMock.disable!
|
44
|
+
end
|
45
|
+
|
46
|
+
after do
|
47
|
+
WebMock.enable!
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'does not memorize parallelization handlers in typhoeus (hydra) in case one request of the parallization fails' do
|
51
|
+
begin
|
52
|
+
LHC.request([{ url: 'https://www.google.com/' }, { url: 'https://nonexisting123' }, { url: 'https://www.google.com/' }, { url: 'https://nonexisting123' }])
|
53
|
+
rescue LHC::UnknownError
|
54
|
+
end
|
55
|
+
|
56
|
+
LHC.request([{ url: 'https://www.google.com' }])
|
57
|
+
end
|
58
|
+
end
|
40
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lhc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.0.
|
4
|
+
version: 11.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://github.com/local-ch/lhc/contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|