workspace-net 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/workspace-net.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e7ad78798619c806f5c4a2a0a598e54e4c5b7ac
4
- data.tar.gz: 8d8710294d70ea2496cb94141e67eb291ea9d1d5
3
+ metadata.gz: '09841e07cf4d97a7992f1ecea1790a14339e826e'
4
+ data.tar.gz: e2a1f495e850ea3574afa60954ee8de84a352e71
5
5
  SHA512:
6
- metadata.gz: '08b4e8b762da30ac3f20ccb914e7b284caa106006fba61b13f969742634c831fa0a8c197bc3bda659dfbe7c756f119c556c7fb2d60ee850e78ebd423a2600ec3'
7
- data.tar.gz: 7990b11ce338660005b7743676e057a4f14ba7ea9f29efc8a711cb267c07b7b695a22780a984687e22f759471e811f67b2cf3f816cdf4ef42e8b0f6fe0f496e3
6
+ metadata.gz: f213147ce83898be89a4034ef93ceddf0e3c8e3bb94ea4c186e0c326d45995ddc921ed6c83181a683175e535980ed3c5f731d7370a15a4790bc3853fb57a7f67
7
+ data.tar.gz: da710e6b0f4a857dc63ca77d463a477b1e79662bfc78e7b48e30201cb3037d37a00f1b8b6ceee1294a41deb4843bd2465dc33ce56195cbf83263d370d0490cda
data/workspace-net.rb CHANGED
@@ -11,7 +11,7 @@ module Workspace
11
11
  def queue_download(url, followlocation: true, verify: false, &block)
12
12
  uri = URI(url)
13
13
  uri.scheme ||= "http"
14
- request = Typhoeus::Request.new(uri.to_s, followlocation: followlocation, verify: verify)
14
+ request = Typhoeus::Request.new(uri.to_s, followlocation: followlocation, ssl_verifypeer: verify, ssl_verifyhost: (verify ? 2 : 0))
15
15
  request.on_complete do |response|
16
16
  if response.success?
17
17
  write(response.body)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workspace-net
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer