viaduct-archfile 1.3.0 → 1.3.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
  SHA1:
3
- metadata.gz: bc97a7d2f369b34916c8262d0b95f1c6af677f8d
4
- data.tar.gz: 77d43e3533f938f6356fee5e87bf886a881174d8
3
+ metadata.gz: 7a328d158b01e55dce8a9c038c5620e2cf757c4d
4
+ data.tar.gz: a85c5f2659324703db4089d70ba5779ee211a392
5
5
  SHA512:
6
- metadata.gz: 8319b1c833c40c2030c393316556539829dd407445d8e8a844139f486f43cb70bb050b387d56084db50075fbbcb03887e60be24a832c07b32103a6088a21b111
7
- data.tar.gz: 2e4c54bc28908a3d03edd39f0ba3c3af8f8baf0815e7566ab73af084614ceaa2b5a2ce18f2bf9dbc2be50cec376894f3ff5317a05118967030dfe9ab5680fe7a
6
+ metadata.gz: d8d5bdaf655e08d2e886590cbf885a6050df88dfc58d4032a4dc4299a1901df5402b698d03203854f158c0dd0aa11054d978c1c26eeff003aea37bd71869718d
7
+ data.tar.gz: f800ae80de2898efc0d60cd2383d8b95b97e1f3ed9f946cfc3f270213de4fc304069b2db564ad1edb1a8ac822e1ee1d2e3b9e86a9b141fa5e605c723d765e124
@@ -9,9 +9,9 @@ module Viaduct
9
9
  def self.properties
10
10
  req = Net::HTTP::Get.new('/archfile/properties')
11
11
  http = Net::HTTP.new(ENV['VDT_HOST'] || 'my.viaduct.io', ENV['VDT_PORT'] || 443)
12
- if ENV['VDT_PORT'] == 443
13
- res.use_ssl = true
14
- res.verify_mode = OpenSSL::SSL::VERIFY_NONE
12
+ if http.port == 443
13
+ http.use_ssl = true
14
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
15
15
  end
16
16
 
17
17
  result = http.request(req)
@@ -20,7 +20,8 @@ module Viaduct
20
20
  else
21
21
  raise Error, "Unable to download data from Viaduct host. Please try again later."
22
22
  end
23
- rescue
23
+ rescue => e
24
+ puts e
24
25
  raise Error, "Unable to download data from Viaduct host. Please try again later."
25
26
  end
26
27
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viaduct-archfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-12 00:00:00.000000000 Z
11
+ date: 2014-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: safe_yaml