cranium 0.4.3 → 0.5

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
  SHA256:
3
- metadata.gz: 786956ff56304307aecdf21cd490af6c1bb1c116a87beff9ce7c8afb3935b329
4
- data.tar.gz: 0aef7e4d5a467c7551f997a6f374448bf9cc2616afe1f20b929c0f6edc30e574
3
+ metadata.gz: 63bb4574d9b494202c0aff700e4263c1b14753b0b973b9dcb52148ed24a7a861
4
+ data.tar.gz: ee3238eee62a1c6ee3cd9d3c69ef7ab19a42133996b5fa6334d1a56a9f2f5ff0
5
5
  SHA512:
6
- metadata.gz: 2175a36fc29efb510af186af5791973781856720dd065308a7d891cdd6e005174f74ecd500e2c5dc81b14d15bca512ad7fb3fd5fe334640328b3d305b48bb10e
7
- data.tar.gz: 994c5aa959c1c32417814d68acf26b226949305a92297cdc20b90ef3be77efa7cfa77ec029c60843f5a1b223918df0c5508afa67d3843a0a537da065dcb89f3f
6
+ metadata.gz: 2351552d7be2849c5698df99b977c3c56d54ef376d351125bdb51526b6b826d2f4afecc79292479d0d8308af7edd086fd47213479e693c18ecfe9bc31d40549a
7
+ data.tar.gz: a091064e7f4fa3a56a741b4704012ab1e8a5ced7b6dcad0b6826d226dfd06c5520dddfc1a8e8eabbf04dcd7585d7f1bb97801b539f67a3fdb7fbdd063713be4d
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'cranium'
3
- spec.version = '0.4.3'
3
+ spec.version = '0.5'
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.}
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.add_runtime_dependency 'pg', '~> 0'
17
17
  spec.add_runtime_dependency 'progressbar', '~> 0'
18
- spec.add_runtime_dependency 'sequel', '~> 4'
18
+ spec.add_runtime_dependency 'sequel', '>= 4', '< 6'
19
19
  spec.add_runtime_dependency 'slop', '~> 3'
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1'
@@ -20,9 +20,9 @@ RSpec.describe Cranium::Archiver do
20
20
  end
21
21
 
22
22
  describe ".archive" do
23
- before { FileUtils.rm_rf configuration.archive_directory }
24
-
25
23
  context "when archive directory does not exist" do
24
+ before { FileUtils.rm_rf configuration.archive_directory }
25
+
26
26
  it "creates the archive directory" do
27
27
  archiver.archive file1, file2
28
28
 
@@ -43,6 +43,8 @@ RSpec.describe Cranium::Archiver do
43
43
  end
44
44
 
45
45
  describe ".remove" do
46
+ before { FileUtils.mkdir_p configuration.archive_directory }
47
+
46
48
  it "removes files from the upload directory" do
47
49
  archiver.remove file1, file2
48
50
 
@@ -38,11 +38,11 @@ describe Cranium::DSL::SourceDefinition do
38
38
 
39
39
  it "should return the fields and types that were set" do
40
40
  source.field :field1, String
41
- source.field :field2, Fixnum
41
+ source.field :field2, Integer
42
42
 
43
43
  expect(source.fields).to eq({
44
44
  field1: String,
45
- field2: Fixnum
45
+ field2: Integer
46
46
  })
47
47
  end
48
48
  end
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.4.3
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emarsys Technologies
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-09 00:00:00.000000000 Z
11
+ date: 2019-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: sequel
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '6'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
57
  version: '4'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '6'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: slop
57
63
  requirement: !ruby/object:Gem::Requirement