queuery_client 0.8.0 → 0.9.0

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: d9bdfe61f21a506cef4c09057e13510305826234
4
- data.tar.gz: '068d8a19aea9e7a13dd1c2b997848363e5a66217'
3
+ metadata.gz: 312f2cfd1168a1af9b581ca43dcaad9e46ac7377
4
+ data.tar.gz: e0e6c8247b14c92f9145a7155f18d619cdb8541d
5
5
  SHA512:
6
- metadata.gz: 6cdc5d84c7ce94b3ed1c835b00f20d7893b0f08776eac198bb58951bf2def275692a3fd87f4324bbb033150c26984c50f9918bce201f4aa9c7137a33926b66ea
7
- data.tar.gz: 50bc3ebad07bd41bed5c1a4c554155478d554a93c2a2887eb7693c319d0ab9d7cb7d52266121285d81139f4a30be9079144aed9d47debb92e2805439065fc086
6
+ metadata.gz: 5e20bbf161970e050375276242206cc1206d733c83691c8f86a66d45a78a0fd475f351134f9a1f8ddeadcfa88222b67a148e3ebbd6de80daa52eb3209208fdc7
7
+ data.tar.gz: 73306d35879474ba8d92ad077f4d6f47279041332979abe4d28302ae2d2e964795b69d22d2f44b9ca005021dce7c1ba53fdd34681dc3ac77024102c686b7dd20
@@ -1,4 +1,7 @@
1
1
  require 'redshift_connector/url_data_file_bundle'
2
+ require 'redshift_connector/s3_bucket'
3
+ require 'redshift_connector/s3_data_file_bundle'
4
+ require 'uri'
2
5
 
3
6
  module QueueryClient
4
7
  class QueueryDataFileBundle < RedshiftConnector::UrlDataFileBundle
@@ -15,5 +18,13 @@ module QueueryClient
15
18
  uri.path = File.dirname(uri.path)
16
19
  uri.to_s
17
20
  end
21
+
22
+ def direct(bucket_opts = {}, bundle_opts = {})
23
+ s3_uri = URI.parse(s3_prefix)
24
+ bucket_name = s3_uri.host
25
+ prefix = s3_uri.path[1..-1] # trim heading slash
26
+ bucket = RedshiftConnector::S3Bucket.new(bucket: bucket_name, prefix: prefix)
27
+ RedshiftConnector::S3DataFileBundle.new(bucket, prefix, format: :redshift_csv)
28
+ end
18
29
  end
19
30
  end
@@ -1,3 +1,3 @@
1
1
  module QueueryClient
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queuery_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hidekazu Kobayashi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-22 00:00:00.000000000 Z
11
+ date: 2018-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: garage_client
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.6.14
126
+ rubygems_version: 2.6.13
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Client library for Queuery Redshift HTTP API