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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa9ef8c17dc9fb8e504c05cf4450903d2a11c736908fd8fc52ba4a177e0889eb
4
- data.tar.gz: 070670fea5fd80f93d5a3f30e052f23530274148bbd9c7e9b0d6377aade62bfd
3
+ metadata.gz: '08a828482abe7ecd92b963be2f85a921d5d33c21386048c0de1dd5eddd7a0c5d'
4
+ data.tar.gz: afbe59a64dbf4e6a772aa045c6717694fc45c99f08818eb3892cfc3df3d24607
5
5
  SHA512:
6
- metadata.gz: 5efc110217acc460487147dd3763bfffa17f0c825fb8d52d6d7b40460506ae13ce87b1c5b2f13e776cebc02daddb6510be82e3e04a0313fdfb07d0dc63b916e4
7
- data.tar.gz: e3c0a8b6dd47e192f9dab7d2d5f0e1cf197bb289ab62d69bad0daf70791b83a3cfaa7c77f7b2bd70547fe274f1ea43f06687108cf6fad5e212fe1a96d97f0f9f
6
+ metadata.gz: ca154508dfeab839682d6cc9babd7d9ac3fd194ff318f0132fd05399aea04dcd155c9cf77b679ae91be6fef0971b2c13de0c14673b7f90beff77ca13d8bc2a42
7
+ data.tar.gz: e24477b6e9cc94aa1faa1c3b4e366d59b466df46c9abb4a914255316cd4a9b5eef192f70157df5c50c38422b738b6b384f692180cd415b7bfd19398d87b91fa3
@@ -27,7 +27,7 @@ module LHC
27
27
  private
28
28
 
29
29
  def parallel_requests(options)
30
- hydra = Typhoeus::Hydra.hydra
30
+ hydra = Typhoeus::Hydra.new # do not use memoization !
31
31
  requests = []
32
32
  options.each do |option|
33
33
  request = LHC::Request.new(option, false)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LHC
4
- VERSION ||= '11.0.1'
4
+ VERSION ||= '11.0.2'
5
5
  end
@@ -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.1
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: 2019-12-12 00:00:00.000000000 Z
11
+ date: 2020-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport