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 +4 -4
- data/lib/viaduct/archfile_remote_backend.rb +5 -4
- 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: 7a328d158b01e55dce8a9c038c5620e2cf757c4d
|
4
|
+
data.tar.gz: a85c5f2659324703db4089d70ba5779ee211a392
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
13
|
-
|
14
|
-
|
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.
|
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-
|
11
|
+
date: 2014-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: safe_yaml
|