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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f242fc490379db815a588378910c758a3aa2d84
4
- data.tar.gz: 2a315d9407eb66562b32d83993ba577a5b5063ac
3
+ metadata.gz: 91e016376d610e321063bb5817e6daa926d484d6
4
+ data.tar.gz: 28e14ebda276c352d0764a599c40c64a88c0a9a5
5
5
  SHA512:
6
- metadata.gz: 141660793595766a703b5bd798ee4a61c8f9dab6db02ea3084d7b9f5eb92305bf2ad7c6d3164a55eb9dfa5797593675ef161d4789509d1b35928bda840825bc4
7
- data.tar.gz: dcfebdb474cd2f78be55f47d4afb2e2488bd3e43f72f88fc3806bcff80ab24619eb0afc4b054845d3f57d4961897b753b32b62aca0c9b99a1d883c3b4387cc08
6
+ metadata.gz: b410074824ee0309f3e560d8566970f802e9e1670270a2054ca7e45b585c949defe86ca025ed3760f318eccb923b06326b6128ae45ed6cc5ecc03e7e6359f3cf
7
+ data.tar.gz: 4982d0d113ed0aff3414d866bbda33ae793b85ced5c23eb405c7139b17aab699ae74908b3c2b44195555a53d534ebbca9f69ecae8f1568a5950d798f90578212
@@ -1,5 +1,6 @@
1
1
  require 'redshift_connector/abstract_data_file'
2
- require 'open3'
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
- stdin, stdout, stderr, wait_th = Open3.popen3('curl', @url.to_s)
19
- stdin.close
20
- stderr.close
21
- stdout
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "redshift-connector-data_file"
3
- spec.version = "7.1.0"
3
+ spec.version = "7.1.1"
4
4
  spec.authors = ["Hidekazu Kobayashi", "Minero Aoki"]
5
5
  spec.email = ["kobahide789@gmail.com", "aamine@loveruby.net"]
6
6
 
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.0
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-19 00:00:00.000000000 Z
12
+ date: 2017-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk