schiphol 0.9.5 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/schiphol.rb +6 -4
- data/lib/schiphol/version.rb +1 -1
- metadata +2 -2
data/lib/schiphol.rb
CHANGED
@@ -68,12 +68,14 @@ module Schiphol
|
|
68
68
|
file = nil
|
69
69
|
|
70
70
|
begin
|
71
|
+
|
72
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
73
|
+
|
74
|
+
# Use SSL if appropriate based on the scheme.
|
75
|
+
http.use_ssl = true if uri.scheme == 'https'
|
71
76
|
|
72
77
|
# Start an HTTP server to download.
|
73
|
-
|
74
|
-
|
75
|
-
# Use SSL if appropriate based on the scheme.
|
76
|
-
http.use_ssl = true if uri.scheme == 'https'
|
78
|
+
http.start(uri.host) do |http|
|
77
79
|
|
78
80
|
# Start a GET request to the server.
|
79
81
|
http.request_get(uri.path) do |response|
|
data/lib/schiphol/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: schiphol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubyzip
|