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 +4 -4
- data/lib/queuery_client/queuery_data_file_bundle.rb +11 -0
- data/lib/queuery_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 312f2cfd1168a1af9b581ca43dcaad9e46ac7377
|
4
|
+
data.tar.gz: e0e6c8247b14c92f9145a7155f18d619cdb8541d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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.
|
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
|