dataduck 0.5.3 → 0.5.4

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: 3699a208eb034218604e769002f04ccf9abdb1cc
4
- data.tar.gz: e2be32191496db32f1102515ff139d00a00dc888
3
+ metadata.gz: f17a82d0867de39072929e5c32feb32a7ee3d9b2
4
+ data.tar.gz: b06b612bf51767f0fa9b4894fd62e031b16bf541
5
5
  SHA512:
6
- metadata.gz: 058285c16c15488abc3bc721fa8ed27c6a4b13330d0e6cfaf272a7912566690518ac4aafd8a22d3a44304795a073e80e40fd8d6a8f92811fd1a0d0b05f5c87d0
7
- data.tar.gz: 9cc2c2335d8c49b685b7825c00f4515139ee3fa46d266c825755f686df4fed43cb35aea63eb1102306bd7ce9cd964585e835bdcdf9b991ce9f10ec98d86ea0a8
6
+ metadata.gz: 2d8e3440252752f6b056aec6a452f8a36818915cf5b2162453dd499a18d476bb37b56a9f9ffeb961d873acc27a0dd4c89a2ec591ca8ffa28db32f8b06d8342d3
7
+ data.tar.gz: 4a570f4d5747f1b8767f8a068a6567bb52993e006bff5f81652aac636ec96ced8f34cec58faf3ca09c13e9f7e2de576cbf7d9eca6247a3cfdeceb1c0224afd85
data/dataduck.gemspec CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "rake", "~> 10.0"
22
22
  spec.add_development_dependency "rspec", "~> 3.3"
23
23
 
24
+ spec.add_runtime_dependency "dotenv", '~> 2.0'
24
25
  spec.add_runtime_dependency "sequel", '~> 4.19'
25
26
  spec.add_runtime_dependency "pg", '~> 0.16'
26
27
  spec.add_runtime_dependency "mysql", "~> 2.9"
data/lib/dataduck.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'dotenv'
2
+ Dotenv.load
3
+
1
4
  require 'yaml'
2
5
 
3
6
  Dir[File.dirname(__FILE__) + '/helpers/*.rb'].each do |file|
data/lib/dataduck/etl.rb CHANGED
@@ -34,7 +34,7 @@ module DataDuck
34
34
  end
35
35
 
36
36
  def process!
37
- DataDuck::Logs.info "Processing ETL..."
37
+ Logs.info("Processing ETL on pid #{ Process.pid }...")
38
38
 
39
39
  destinations_to_use = []
40
40
  destinations_to_use = destinations_to_use.concat(self.class.destinations)
@@ -48,7 +48,7 @@ module DataDuck
48
48
  end
49
49
 
50
50
  def process_table!(table)
51
- DataDuck::Logs.info "Processing ETL for table #{ table.name }..."
51
+ Logs.info("Processing ETL for table #{ table.name } on pid #{ Process.pid }...")
52
52
 
53
53
  destinations_to_use = []
54
54
  destinations_to_use = destinations_to_use.concat(self.class.destinations)
@@ -1,6 +1,6 @@
1
1
  module DataDuck
2
2
  VERSION_MAJOR = 0
3
3
  VERSION_MINOR = 5
4
- VERSION_PATCH = 3
4
+ VERSION_PATCH = 4
5
5
  VERSION = [VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH].join('.')
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dataduck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Pickhardt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-23 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: sequel
57
71
  requirement: !ruby/object:Gem::Requirement