itiel 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +7 -0
  2. data/.autotest +17 -0
  3. data/.gitignore +13 -0
  4. data/.gitlab-ci.yml +36 -0
  5. data/.rspec +2 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +9 -0
  8. data/Gemfile +4 -0
  9. data/Gemfile.rails.4.0 +7 -0
  10. data/Gemfile.rails.4.1 +7 -0
  11. data/Gemfile.rails.4.2 +7 -0
  12. data/README.markdown +106 -0
  13. data/Rakefile +13 -0
  14. data/build.sh +10 -0
  15. data/features/extract/database_table.feature +16 -0
  16. data/features/extract/sql_script.feature +17 -0
  17. data/features/load/database_table_loader.feature +21 -0
  18. data/features/lookup/csv_file.feature +41 -0
  19. data/features/lookup/database_table.feature +43 -0
  20. data/features/script/ruby_script.feature +19 -0
  21. data/features/step_definitions/csv_steps.rb +15 -0
  22. data/features/step_definitions/extractor/csv_file_steps.rb +3 -0
  23. data/features/step_definitions/extractor/custom_sql_steps.rb +6 -0
  24. data/features/step_definitions/extractor/database_steps.rb +27 -0
  25. data/features/step_definitions/extractor/database_table_steps.rb +8 -0
  26. data/features/step_definitions/extractor/extraction_steps.rb +3 -0
  27. data/features/step_definitions/flow_steps.rb +9 -0
  28. data/features/step_definitions/loader/csv_file_steps.rb +4 -0
  29. data/features/step_definitions/loader/database_table_steps.rb +14 -0
  30. data/features/step_definitions/lookup/lookup_steps.rb +35 -0
  31. data/features/step_definitions/scripting/ruby_script_steps.rb +5 -0
  32. data/features/step_definitions/stream_steps.rb +8 -0
  33. data/features/step_definitions/transformation/calculated_column_steps.rb +5 -0
  34. data/features/step_definitions/transformation/calculated_columns_steps.rb +7 -0
  35. data/features/step_definitions/transformation/constant_column_steps.rb +3 -0
  36. data/features/step_definitions/transformation/map_values_step.rb +4 -0
  37. data/features/step_definitions/transformation/rename_column_steps.rb +3 -0
  38. data/features/step_definitions/transformation/select_column_steps.rb +3 -0
  39. data/features/step_definitions/transformation/single_column_sort_steps.rb +3 -0
  40. data/features/support/database.yml +1 -0
  41. data/features/support/env.rb +13 -0
  42. data/features/transform/transformations.feature +123 -0
  43. data/itiel.gemspec +34 -0
  44. data/lib/itiel.rb +45 -0
  45. data/lib/itiel/db/connection.rb +24 -0
  46. data/lib/itiel/db/sql_connectable.rb +33 -0
  47. data/lib/itiel/db/truncator.rb +30 -0
  48. data/lib/itiel/extract/chained_step.rb +22 -0
  49. data/lib/itiel/extract/csv_file.rb +31 -0
  50. data/lib/itiel/extract/custom_sql.rb +38 -0
  51. data/lib/itiel/extract/database_table.rb +23 -0
  52. data/lib/itiel/job.rb +116 -0
  53. data/lib/itiel/load/chained_step.rb +37 -0
  54. data/lib/itiel/load/csv_file.rb +45 -0
  55. data/lib/itiel/load/database_table.rb +34 -0
  56. data/lib/itiel/load/input_output_behavior.rb +36 -0
  57. data/lib/itiel/logger.rb +47 -0
  58. data/lib/itiel/lookup/chained_step.rb +35 -0
  59. data/lib/itiel/lookup/csv_file.rb +16 -0
  60. data/lib/itiel/lookup/database_table.rb +36 -0
  61. data/lib/itiel/lookup/hash_lookup.rb +35 -0
  62. data/lib/itiel/nameable.rb +6 -0
  63. data/lib/itiel/script/chained_step.rb +18 -0
  64. data/lib/itiel/script/ruby_script.rb +31 -0
  65. data/lib/itiel/script/sql_script.rb +29 -0
  66. data/lib/itiel/transform/calculated_columns.rb +47 -0
  67. data/lib/itiel/transform/chained_step.rb +27 -0
  68. data/lib/itiel/transform/constant_column.rb +35 -0
  69. data/lib/itiel/transform/input_output_behavior.rb +44 -0
  70. data/lib/itiel/transform/map_values.rb +43 -0
  71. data/lib/itiel/transform/remove_column.rb +33 -0
  72. data/lib/itiel/transform/rename_column.rb +43 -0
  73. data/lib/itiel/transform/select_column.rb +37 -0
  74. data/lib/itiel/version.rb +3 -0
  75. data/spec/db/sql_connectable_spec.rb +20 -0
  76. data/spec/extract/chained_step_spec.rb +31 -0
  77. data/spec/extract/csv_file_spec.rb +22 -0
  78. data/spec/extract/custom_sql_spec.rb +19 -0
  79. data/spec/extract/database_table_spec.rb +22 -0
  80. data/spec/job_spec.rb +80 -0
  81. data/spec/loader/chained_step_spec.rb +39 -0
  82. data/spec/loader/csv_file_spec.rb +69 -0
  83. data/spec/loader/database_table_spec.rb +29 -0
  84. data/spec/lookup/hash_lookup_spec.rb +108 -0
  85. data/spec/nameable_spec.rb +17 -0
  86. data/spec/script/chained_step_spec.rb +24 -0
  87. data/spec/script/ruby_script_spec.rb +18 -0
  88. data/spec/script/sql_script_spec.rb +41 -0
  89. data/spec/spec_helper.rb +24 -0
  90. data/spec/support/config/database.yml +1 -0
  91. data/spec/support/config/sources.yml +9 -0
  92. data/spec/transform/calculated_columns_spec.rb +36 -0
  93. data/spec/transform/chained_step_spec.rb +36 -0
  94. data/spec/transform/constant_column_spec.rb +22 -0
  95. data/spec/transform/map_values_spec.rb +26 -0
  96. data/spec/transform/rename_column_spec.rb +25 -0
  97. data/spec/transform/select_column_spec.rb +21 -0
  98. metadata +344 -0
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Nameable do
4
+ before :each do
5
+ step_class = Class.new do
6
+ include Itiel::Nameable
7
+ end
8
+
9
+ @step = step_class.new
10
+ end
11
+
12
+ it "responds to name= and name" do
13
+ expect(@step).to respond_to :step_name
14
+ expect(@step).to respond_to :step_name=
15
+ end
16
+ end
17
+
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Script::ChainedStep do
4
+ before :each do
5
+ klass = Class.new
6
+ klass.send :include, Itiel::Script::ChainedStep
7
+
8
+ @step = klass.new
9
+ end
10
+
11
+ describe :input= do
12
+ before :each do
13
+ @input_stream = double
14
+ allow(@step).to receive(:next_step).and_return double
15
+ end
16
+
17
+ it "executes with input stream, sets output as next_step input" do
18
+ allow(@step).to receive(:execute).with(@input_stream)
19
+ allow(@step.next_step).to receive(:input=).with(@input_stream)
20
+ @step.input = @input_stream
21
+ end
22
+ end
23
+ end
24
+
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Script::RubyScript do
4
+ before :each do
5
+ @step = Itiel::Script::RubyScript.new do |row|
6
+ row["data"] = "bar"
7
+ end
8
+ end
9
+
10
+ describe "#execute" do
11
+ it "iterates through the input_stream and yields to given block" do
12
+ stream = [ { "data" => "foo" } ]
13
+ @step.execute(stream)
14
+ expect(stream).to eq [ { "data" => "bar" } ]
15
+ end
16
+ end
17
+ end
18
+
@@ -0,0 +1,41 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Script::SQLScript do
4
+ before :each do
5
+ @sql_script = Itiel::Script::SQLScript.new("DELETE FROM orders")
6
+ @data_stream = { "c" => "v" }
7
+ end
8
+
9
+ describe :sanity_check do
10
+ describe "no connection specified" do
11
+ it "raises Itiel::MissingConnection" do
12
+ expect { @sql_script.sanity_check }.to raise_error Itiel::MissingConnection
13
+ end
14
+ end
15
+
16
+ describe "No SQL sentence is given" do
17
+ before :each do
18
+ @sql_script.connection = Itiel::DB::Connection.new
19
+ @sql_script.sql = nil
20
+ end
21
+
22
+ it "raises Itiel::SQLSentenceNotProvided" do
23
+ expect { @sql_script.sanity_check }.to raise_error Itiel::SQLSentenceNotProvided
24
+ end
25
+ end
26
+ end
27
+
28
+ describe :execute do
29
+ before :each do
30
+ @connection = double
31
+ @sql_script.connection = :test
32
+ allow(Itiel::Script::SQLScript).to receive(:sequel_connection).with(:test).and_return @connection
33
+ end
34
+
35
+ it "Executes the specified SQL script with the given connection" do
36
+ expect(@connection).to receive(:<<).with(@sql_script.sql)
37
+ @sql_script.execute
38
+ end
39
+ end
40
+ end
41
+
@@ -0,0 +1,24 @@
1
+ require 'simplecov'
2
+ require 'itiel'
3
+
4
+ SimpleCov.start
5
+
6
+ TMP_DIR = File.expand_path("#{File.dirname(__FILE__)}/../tmp")
7
+ Dir.mkdir(TMP_DIR) unless File.exist?(TMP_DIR)
8
+
9
+ log = Logger.new("#{File.dirname(__FILE__)}/../tmp/test.log")
10
+ log.level = Logger::INFO
11
+ Itiel::Logger.logger = log
12
+
13
+ RSpec.configure do |config|
14
+ config.expect_with :rspec do |expectations|
15
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
16
+ end
17
+
18
+ config.mock_with :rspec do |mocks|
19
+ mocks.verify_partial_doubles = true
20
+ end
21
+
22
+ config.order = :random
23
+ # config.warnings = true
24
+ end
@@ -0,0 +1 @@
1
+ test: 'sqlite://test.db'
@@ -0,0 +1,9 @@
1
+ legacy:
2
+ adapter: sqlite3
3
+ database: tmp/source.sqlite3
4
+ pool: 5
5
+
6
+ destination:
7
+ adapter: sqlite3
8
+ database: tmp/destination.sqlite3
9
+ pool: 5
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Transform::CalculatedColumns do
4
+ before(:each) do
5
+ @transformer = Itiel::Transform::CalculatedColumns.new do |row|
6
+ total = row['price'] * row['quantity']
7
+ tax = total * 0.2
8
+ { 'total' => total, 'tax' => tax }
9
+ end
10
+
11
+ @transformer.next_step = double
12
+
13
+ @input = [
14
+ { "id" => 1 , "price" => 1.5 , "quantity" => 5 },
15
+ { "id" => 2 , "price" => 3 , "quantity" => 9 },
16
+ { "id" => 3 , "price" => 4.5 , "quantity" => 3 }
17
+ ]
18
+ end
19
+
20
+ it "raises an exception when it's not defined" do
21
+ @transformer.next_step = nil
22
+
23
+ expect { @transformer.transform!(@input) }.to raise_error Itiel::UndefinedNextStepException
24
+ end
25
+
26
+ it "creates new columns and calculate to fill it" do
27
+ expected_result = [
28
+ { "id" => 1 , "price" => 1.5 , "quantity" => 5 , "total" => 7.5, "tax" => 1.5 },
29
+ { "id" => 2 , "price" => 3 , "quantity" => 9 , "total" => 27, "tax" => 5.4 },
30
+ { "id" => 3 , "price" => 4.5 , "quantity" => 3 , "total" => 13.5, "tax" => 2.7 }
31
+ ]
32
+
33
+ expect(@transformer.transform!(@input)).to eq expected_result
34
+ end
35
+ end
36
+
@@ -0,0 +1,36 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Transform::ChainedStep do
4
+ before :each do
5
+ class Step
6
+ include Itiel::Transform::ChainedStep
7
+ end
8
+
9
+ @step = Step.new
10
+ end
11
+
12
+ it "defines input=" do
13
+ expect(@step).to respond_to :input=
14
+ end
15
+
16
+ it "defines setters and getters for next_step" do
17
+ expect(@step).to respond_to :next_step
18
+ expect(@step).to respond_to :next_step=
19
+ end
20
+
21
+ it "sets next_step.input as the result of transform!" do
22
+ stream = double
23
+ next_step = double
24
+
25
+ expect(@step).to receive(:transform!).with(stream).and_return stream
26
+ expect(next_step).to receive(:input=).with(stream)
27
+
28
+ @step.next_step = next_step
29
+ @step.input = stream
30
+ end
31
+
32
+ it "raises an error if transform! is not defined" do
33
+ expect { @step.transform!(double) }.to raise_error Itiel::MethodNotImplementedException
34
+ end
35
+ end
36
+
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Transform::ConstantColumn do
4
+ before :each do
5
+ @input = [
6
+ { "id" => "1" },
7
+ { "id" => "2" }
8
+ ]
9
+
10
+ @expected_output = [
11
+ { "id" => "1", "append" => "value" },
12
+ { "id" => "2", "append" => "value" }
13
+ ]
14
+
15
+ @transformation = Itiel::Transform::ConstantColumn.new("append" => "value")
16
+ end
17
+
18
+ it "appends a field with a constant value to the stream" do
19
+ expect(@transformation.transform!(@input)).to eq @expected_output
20
+ end
21
+ end
22
+
@@ -0,0 +1,26 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Transform::MapValues do
4
+ before :each do
5
+ @input = [
6
+ { "id" => 1 , "active" => true } ,
7
+ { "id" => 2 , "active" => false }
8
+ ]
9
+
10
+ @output = [
11
+ { "id" => 1 , "active" => "yes" } ,
12
+ { "id" => 2 , "active" => "no" }
13
+ ]
14
+
15
+ @transformation = Itiel::Transform::MapValues.new(
16
+ {
17
+ "active" => { true => "yes", false => "no" }
18
+ }
19
+ )
20
+ end
21
+
22
+ it "maps a column depending on it's value" do
23
+ expect(@output).to eq @transformation.transform!(@input)
24
+ end
25
+ end
26
+
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Transform::RenameColumn do
4
+ before :each do
5
+ @transformer = Itiel::Transform::RenameColumn.new(
6
+ "order_id" => "id",
7
+ "name" => "client_name"
8
+ )
9
+
10
+ @input = [
11
+ { "order_id" => 1 , "name" => "bucket" , "price" => 1.5 },
12
+ { "order_id" => 2 , "name" => "second bucket" , "price" => 3 }
13
+ ]
14
+ end
15
+
16
+ it "renames the elements in the input hash" do
17
+ expected_result = [
18
+ { "id" => 1 , "client_name" => "bucket" , "price" => 1.5 },
19
+ { "id" => 2 , "client_name" => "second bucket" , "price" => 3 }
20
+ ]
21
+
22
+ expect(@transformer.transform!(@input)).to eq expected_result
23
+ end
24
+ end
25
+
@@ -0,0 +1,21 @@
1
+ require 'spec_helper'
2
+
3
+ describe Itiel::Transform::SelectColumn do
4
+ before :each do
5
+ @transformer = Itiel::Transform::SelectColumn.new("order_id", "name")
6
+ @input = [
7
+ { "order_id" => 1 , "name" => "bucket" , "price" => 1.5 },
8
+ { "order_id" => 2 , "name" => "second bucket" , "price" => 3 }
9
+ ]
10
+ end
11
+
12
+ it "returns only specified fields" do
13
+ expected_result = [
14
+ {"order_id" => 1, "name" => "bucket" } ,
15
+ {"order_id" => 2, "name" => "second bucket" }
16
+ ]
17
+
18
+ expect(@transformer.transform!(@input)).to eq expected_result
19
+ end
20
+ end
21
+
metadata ADDED
@@ -0,0 +1,344 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: itiel
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - David Padilla
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sequel
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: cucumber
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.5.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.5.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rr
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sqlite3
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: simplecov
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: turn
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ description: DSL for ETL in Ruby
168
+ email:
169
+ - david@padilla.cc
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - ".autotest"
175
+ - ".gitignore"
176
+ - ".gitlab-ci.yml"
177
+ - ".rspec"
178
+ - ".ruby-version"
179
+ - ".travis.yml"
180
+ - Gemfile
181
+ - Gemfile.rails.4.0
182
+ - Gemfile.rails.4.1
183
+ - Gemfile.rails.4.2
184
+ - README.markdown
185
+ - Rakefile
186
+ - build.sh
187
+ - features/extract/database_table.feature
188
+ - features/extract/sql_script.feature
189
+ - features/load/database_table_loader.feature
190
+ - features/lookup/csv_file.feature
191
+ - features/lookup/database_table.feature
192
+ - features/script/ruby_script.feature
193
+ - features/step_definitions/csv_steps.rb
194
+ - features/step_definitions/extractor/csv_file_steps.rb
195
+ - features/step_definitions/extractor/custom_sql_steps.rb
196
+ - features/step_definitions/extractor/database_steps.rb
197
+ - features/step_definitions/extractor/database_table_steps.rb
198
+ - features/step_definitions/extractor/extraction_steps.rb
199
+ - features/step_definitions/flow_steps.rb
200
+ - features/step_definitions/loader/csv_file_steps.rb
201
+ - features/step_definitions/loader/database_table_steps.rb
202
+ - features/step_definitions/lookup/lookup_steps.rb
203
+ - features/step_definitions/scripting/ruby_script_steps.rb
204
+ - features/step_definitions/stream_steps.rb
205
+ - features/step_definitions/transformation/calculated_column_steps.rb
206
+ - features/step_definitions/transformation/calculated_columns_steps.rb
207
+ - features/step_definitions/transformation/constant_column_steps.rb
208
+ - features/step_definitions/transformation/map_values_step.rb
209
+ - features/step_definitions/transformation/rename_column_steps.rb
210
+ - features/step_definitions/transformation/select_column_steps.rb
211
+ - features/step_definitions/transformation/single_column_sort_steps.rb
212
+ - features/support/database.yml
213
+ - features/support/env.rb
214
+ - features/transform/transformations.feature
215
+ - itiel.gemspec
216
+ - lib/itiel.rb
217
+ - lib/itiel/db/connection.rb
218
+ - lib/itiel/db/sql_connectable.rb
219
+ - lib/itiel/db/truncator.rb
220
+ - lib/itiel/extract/chained_step.rb
221
+ - lib/itiel/extract/csv_file.rb
222
+ - lib/itiel/extract/custom_sql.rb
223
+ - lib/itiel/extract/database_table.rb
224
+ - lib/itiel/job.rb
225
+ - lib/itiel/load/chained_step.rb
226
+ - lib/itiel/load/csv_file.rb
227
+ - lib/itiel/load/database_table.rb
228
+ - lib/itiel/load/input_output_behavior.rb
229
+ - lib/itiel/logger.rb
230
+ - lib/itiel/lookup/chained_step.rb
231
+ - lib/itiel/lookup/csv_file.rb
232
+ - lib/itiel/lookup/database_table.rb
233
+ - lib/itiel/lookup/hash_lookup.rb
234
+ - lib/itiel/nameable.rb
235
+ - lib/itiel/script/chained_step.rb
236
+ - lib/itiel/script/ruby_script.rb
237
+ - lib/itiel/script/sql_script.rb
238
+ - lib/itiel/transform/calculated_columns.rb
239
+ - lib/itiel/transform/chained_step.rb
240
+ - lib/itiel/transform/constant_column.rb
241
+ - lib/itiel/transform/input_output_behavior.rb
242
+ - lib/itiel/transform/map_values.rb
243
+ - lib/itiel/transform/remove_column.rb
244
+ - lib/itiel/transform/rename_column.rb
245
+ - lib/itiel/transform/select_column.rb
246
+ - lib/itiel/version.rb
247
+ - spec/db/sql_connectable_spec.rb
248
+ - spec/extract/chained_step_spec.rb
249
+ - spec/extract/csv_file_spec.rb
250
+ - spec/extract/custom_sql_spec.rb
251
+ - spec/extract/database_table_spec.rb
252
+ - spec/job_spec.rb
253
+ - spec/loader/chained_step_spec.rb
254
+ - spec/loader/csv_file_spec.rb
255
+ - spec/loader/database_table_spec.rb
256
+ - spec/lookup/hash_lookup_spec.rb
257
+ - spec/nameable_spec.rb
258
+ - spec/script/chained_step_spec.rb
259
+ - spec/script/ruby_script_spec.rb
260
+ - spec/script/sql_script_spec.rb
261
+ - spec/spec_helper.rb
262
+ - spec/support/config/database.yml
263
+ - spec/support/config/sources.yml
264
+ - spec/transform/calculated_columns_spec.rb
265
+ - spec/transform/chained_step_spec.rb
266
+ - spec/transform/constant_column_spec.rb
267
+ - spec/transform/map_values_spec.rb
268
+ - spec/transform/rename_column_spec.rb
269
+ - spec/transform/select_column_spec.rb
270
+ homepage: https://gitlab.com/dabit/itiel
271
+ licenses: []
272
+ metadata: {}
273
+ post_install_message:
274
+ rdoc_options: []
275
+ require_paths:
276
+ - lib
277
+ required_ruby_version: !ruby/object:Gem::Requirement
278
+ requirements:
279
+ - - ">="
280
+ - !ruby/object:Gem::Version
281
+ version: '0'
282
+ required_rubygems_version: !ruby/object:Gem::Requirement
283
+ requirements:
284
+ - - ">="
285
+ - !ruby/object:Gem::Version
286
+ version: '0'
287
+ requirements: []
288
+ rubyforge_project: itiel
289
+ rubygems_version: 2.5.2
290
+ signing_key:
291
+ specification_version: 4
292
+ summary: DSL for ETL in Ruby
293
+ test_files:
294
+ - features/extract/database_table.feature
295
+ - features/extract/sql_script.feature
296
+ - features/load/database_table_loader.feature
297
+ - features/lookup/csv_file.feature
298
+ - features/lookup/database_table.feature
299
+ - features/script/ruby_script.feature
300
+ - features/step_definitions/csv_steps.rb
301
+ - features/step_definitions/extractor/csv_file_steps.rb
302
+ - features/step_definitions/extractor/custom_sql_steps.rb
303
+ - features/step_definitions/extractor/database_steps.rb
304
+ - features/step_definitions/extractor/database_table_steps.rb
305
+ - features/step_definitions/extractor/extraction_steps.rb
306
+ - features/step_definitions/flow_steps.rb
307
+ - features/step_definitions/loader/csv_file_steps.rb
308
+ - features/step_definitions/loader/database_table_steps.rb
309
+ - features/step_definitions/lookup/lookup_steps.rb
310
+ - features/step_definitions/scripting/ruby_script_steps.rb
311
+ - features/step_definitions/stream_steps.rb
312
+ - features/step_definitions/transformation/calculated_column_steps.rb
313
+ - features/step_definitions/transformation/calculated_columns_steps.rb
314
+ - features/step_definitions/transformation/constant_column_steps.rb
315
+ - features/step_definitions/transformation/map_values_step.rb
316
+ - features/step_definitions/transformation/rename_column_steps.rb
317
+ - features/step_definitions/transformation/select_column_steps.rb
318
+ - features/step_definitions/transformation/single_column_sort_steps.rb
319
+ - features/support/database.yml
320
+ - features/support/env.rb
321
+ - features/transform/transformations.feature
322
+ - spec/db/sql_connectable_spec.rb
323
+ - spec/extract/chained_step_spec.rb
324
+ - spec/extract/csv_file_spec.rb
325
+ - spec/extract/custom_sql_spec.rb
326
+ - spec/extract/database_table_spec.rb
327
+ - spec/job_spec.rb
328
+ - spec/loader/chained_step_spec.rb
329
+ - spec/loader/csv_file_spec.rb
330
+ - spec/loader/database_table_spec.rb
331
+ - spec/lookup/hash_lookup_spec.rb
332
+ - spec/nameable_spec.rb
333
+ - spec/script/chained_step_spec.rb
334
+ - spec/script/ruby_script_spec.rb
335
+ - spec/script/sql_script_spec.rb
336
+ - spec/spec_helper.rb
337
+ - spec/support/config/database.yml
338
+ - spec/support/config/sources.yml
339
+ - spec/transform/calculated_columns_spec.rb
340
+ - spec/transform/chained_step_spec.rb
341
+ - spec/transform/constant_column_spec.rb
342
+ - spec/transform/map_values_spec.rb
343
+ - spec/transform/rename_column_spec.rb
344
+ - spec/transform/select_column_spec.rb