cranium 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +17 -3
- data/cranium.gemspec +1 -1
- data/db/start.sh +9 -0
- data/docker-compose.yml +2 -1
- data/features/restore_database_connection.feature +1 -2
- data/features/support/env.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ded6526a7ab3b7875f8561df207318f256eda9ee
|
4
|
+
data.tar.gz: 13d3b0f04ed8d2a69f2ff21250ab48abf226368d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e7e5574b8a0f51ebcd8bd2b3fcfdf6c9d2b8ece9fbc361022cc90bf7183fb00f9bc4c2a5eca3ca6c390763d429c0bf5b358a8fc58368efb49ce3f4965c0d795
|
7
|
+
data.tar.gz: 4f7a839e74dc68656d2b1754ca20ffa936241b1954f38fc841928fec471ea065ca83e00d2c5069bb313d00eaed4080a8c78e4cf350f410bc9bafa964fc2c6778
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Cranium
|
2
2
|
|
3
|
-
|
3
|
+
An awesome ETL tool.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -16,9 +16,23 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install cranium
|
18
18
|
|
19
|
-
##
|
19
|
+
## Development
|
20
|
+
|
21
|
+
start up the db
|
22
|
+
|
23
|
+
docker-compose create && docker-compose start
|
24
|
+
|
25
|
+
find out what's the ip is (in case you're using native docker)
|
26
|
+
|
27
|
+
docker-compose ps
|
28
|
+
|
29
|
+
(if using docker-machine use the machine's ip)
|
30
|
+
setup the DATABASE_HOST enviroment variable to this IP (192.168.64.4 in my case)
|
31
|
+
|
32
|
+
export DATABASE_HOST=192.168.64.4
|
33
|
+
|
34
|
+
Now, your ready to run the integration tests :)
|
20
35
|
|
21
|
-
TODO: Write usage instructions here
|
22
36
|
|
23
37
|
## Contributing
|
24
38
|
|
data/cranium.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'cranium'
|
3
|
-
spec.version = '0.2.
|
3
|
+
spec.version = '0.2.1'
|
4
4
|
spec.authors = ['Emarsys Technologies']
|
5
5
|
spec.email = ['smart-insight-dev@emarsys.com']
|
6
6
|
spec.description = %q{Provides Extract, Transform and Load functionality for loading data from CSV files to a Greenplum database.}
|
data/db/start.sh
ADDED
data/docker-compose.yml
CHANGED
@@ -16,8 +16,7 @@ Feature: Sequel database connections are fault tolerant
|
|
16
16
|
require 'sequel'
|
17
17
|
|
18
18
|
def terminate_connections
|
19
|
-
|
20
|
-
connection = Sequel.connect connection_string, loggers: Cranium.configuration.loggers
|
19
|
+
connection = Sequel.connect "postgres://database_administrator:emarsys@#{ENV['DATABASE_HOST'] || '192.168.56.43'}:5432/cranium", loggers: Cranium.configuration.loggers
|
21
20
|
connection.run("SELECT pg_terminate_backend(procpid) FROM pg_stat_activity WHERE procpid <> pg_backend_pid() AND datname = 'cranium'")
|
22
21
|
end
|
23
22
|
|
data/features/support/env.rb
CHANGED
@@ -4,8 +4,8 @@ require_relative "../../lib/cranium"
|
|
4
4
|
FileUtils.mkdir_p("log") unless Dir.exists?("log")
|
5
5
|
|
6
6
|
Cranium.configure do |config|
|
7
|
-
config.greenplum_connection_string = ENV['
|
8
|
-
config.gpfdist_url = ENV['
|
7
|
+
config.greenplum_connection_string = "postgres://cranium:cranium@#{ENV['DATABASE_HOST'] || '192.168.56.43'}:5432/cranium"
|
8
|
+
config.gpfdist_url = "#{ENV['DATABASE_HOST'] || '192.168.56.43'}:8123"
|
9
9
|
config.gpfdist_home_directory = "tmp/custdata"
|
10
10
|
config.upload_directory = "cranium_build"
|
11
11
|
config.loggers << Logger.new("log/cucumber.log")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cranium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emarsys Technologies
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- config/cucumber.yml
|
157
157
|
- cranium.gemspec
|
158
158
|
- db/setup.sql
|
159
|
+
- db/start.sh
|
159
160
|
- docker-compose.yml
|
160
161
|
- examples/config.rb
|
161
162
|
- examples/deduplication.rb
|