redshifter 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8760ba2ad72e5e668d9f3c4eb6b70d04d86b15e9
4
- data.tar.gz: 8eb1c3fa50e558f9cfac14ae1d4c606754d0bdf7
3
+ metadata.gz: 09710d63e1dafe18da8216b0d4de3662ca660e62
4
+ data.tar.gz: de3081992b84e55b39ae4c84b4d81fb18db40a4f
5
5
  SHA512:
6
- metadata.gz: d1e972e73eea10034797bf4713185a845e9f8f1c61227b1db480c355aeda7a232aa8c2caa50a2cdb3e95243ec94ece2a5acc35383cbb016f35bb6f63ba150099
7
- data.tar.gz: 6ed7ad01c948ee874b558e0f13a1009249feb95b7365330557e3d5a6bd754426c47092fa3ff53788f5b92af4c53a2cdea0792ba82586428d3f46b4a97d33a685
6
+ metadata.gz: fabe694521c2268d6b55cf634ca2ef62808695641a307eb60f12672e9e05049ccf0cdf3bf6a6ea1176e4e0a1b1d6d67a2e001465233ff025798c55d71553788f
7
+ data.tar.gz: 658c6ccf1c6dbcf9a21b14f658d4707f2af9f192d400050bc6d559d70064b787f8cef37b7cb4715b617b81e94376d702be9265fe6b7cff407029c20514c1ad4c
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  *.gem
3
3
  Gemfile.lock
4
4
  tmp
5
+ .idea/
data/README.md CHANGED
@@ -13,8 +13,9 @@ Feature Roadmap:
13
13
  * store last runtime locally instead of using potentially costly redshift query
14
14
 
15
15
  ## Versions
16
- 0.2.4 - New config format; update and replace rake tasks available
17
- 0.3.0 - Public version
16
+ - 0.2.4 - New config format; update and replace rake tasks available
17
+ - 0.3.0 - Public version
18
+ - 0.4.0 - Make S3 region configurable
18
19
 
19
20
  ## Installation
20
21
 
@@ -53,6 +54,7 @@ Redshifter.setup do |config|
53
54
  config.aws_access_key_id = '<AWS user access key ID>'
54
55
  config.aws_secret_access_key = '<AWS user secret access key>'
55
56
  config.s3_bucket = 'a_redshifter_bucket'
57
+ config.s3_bucket_region = 'us-east-1'
56
58
  # Heroku user must be a member of the app and have privileges to
57
59
  # start new dynos
58
60
  config.heroku_api_key = '<Heroku user api key>'
@@ -17,6 +17,7 @@ module Redshifter
17
17
  :aws_access_key_id,
18
18
  :aws_secret_access_key,
19
19
  :s3_bucket,
20
+ :s3_bucket_region,
20
21
  :heroku_api_key,
21
22
  :heroku_app_name,
22
23
  :temp_directory_path,
@@ -49,6 +49,7 @@ module Redshifter
49
49
  GZIP
50
50
  TIMEFORMAT 'YYYY-MM-DD HH:MI:SS'
51
51
  NULL AS '#{ExtractAndTransformUpdates::NULL_CHARACTER}'
52
+ REGION '#{Redshifter.config.s3_bucket_region}'
52
53
  MANIFEST;
53
54
  QUERY
54
55
  end
@@ -28,7 +28,8 @@ module Redshifter
28
28
  @conn ||= Fog::Storage.new(
29
29
  provider: 'AWS',
30
30
  aws_access_key_id: Redshifter.config.aws_access_key_id,
31
- aws_secret_access_key: Redshifter.config.aws_secret_access_key
31
+ aws_secret_access_key: Redshifter.config.aws_secret_access_key,
32
+ region: Redshifter.config.s3_bucket_region
32
33
  )
33
34
  end
34
35
 
@@ -55,6 +55,7 @@ module Redshifter
55
55
  TIMEFORMAT 'YYYY-MM-DD HH:MI:SS'
56
56
  NULL AS '#{ExtractAndTransformUpdates::NULL_CHARACTER}'
57
57
  MANIFEST
58
+ REGION '#{Redshifter.config.s3_bucket_region}'
58
59
  compupdate off
59
60
  statupdate off;
60
61
  QUERY
@@ -1,3 +1,3 @@
1
1
  module Redshifter
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redshifter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Richard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2016-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dynosaur
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.4.5
176
+ rubygems_version: 2.2.2
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: ETL processing jobs to exporting Rails model tables to Redshift