redshift-connector-data_file 7.1.0 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redshift_connector/url_data_file.rb +9 -5
- data/redshift-connector-data_file.gemspec +1 -1
- 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: 91e016376d610e321063bb5817e6daa926d484d6
|
4
|
+
data.tar.gz: 28e14ebda276c352d0764a599c40c64a88c0a9a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b410074824ee0309f3e560d8566970f802e9e1670270a2054ca7e45b585c949defe86ca025ed3760f318eccb923b06326b6128ae45ed6cc5ecc03e7e6359f3cf
|
7
|
+
data.tar.gz: 4982d0d113ed0aff3414d866bbda33ae793b85ced5c23eb405c7139b17aab699ae74908b3c2b44195555a53d534ebbca9f69ecae8f1568a5950d798f90578212
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'redshift_connector/abstract_data_file'
|
2
|
-
require '
|
2
|
+
require 'net/http'
|
3
|
+
require 'stringio'
|
3
4
|
|
4
5
|
module RedshiftConnector
|
5
6
|
class UrlDataFile < AbstractDataFile
|
@@ -15,10 +16,13 @@ module RedshiftConnector
|
|
15
16
|
end
|
16
17
|
|
17
18
|
def open
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
http = Net::HTTP.new(@url.host, @url.port)
|
20
|
+
http.use_ssl = (@url.scheme.downcase == 'https')
|
21
|
+
content = http.start {
|
22
|
+
res = http.get(@url.request_uri)
|
23
|
+
res.body
|
24
|
+
}
|
25
|
+
StringIO.new(content)
|
22
26
|
end
|
23
27
|
end
|
24
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redshift-connector-data_file
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.
|
4
|
+
version: 7.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hidekazu Kobayashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-09-
|
12
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|