colincasey-activewarehouse-etl 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +198 -0
- data/LICENSE +7 -0
- data/README +85 -0
- data/Rakefile +75 -0
- data/TODO +28 -0
- data/VERSION.yml +4 -0
- data/bin/etl +28 -0
- data/bin/etl.cmd +8 -0
- data/lib/etl.rb +81 -0
- data/lib/etl/batch.rb +2 -0
- data/lib/etl/batch/batch.rb +111 -0
- data/lib/etl/batch/directives.rb +55 -0
- data/lib/etl/builder.rb +2 -0
- data/lib/etl/builder/date_dimension_builder.rb +96 -0
- data/lib/etl/builder/time_dimension_builder.rb +31 -0
- data/lib/etl/commands/etl.rb +89 -0
- data/lib/etl/control.rb +3 -0
- data/lib/etl/control/control.rb +414 -0
- data/lib/etl/control/destination.rb +420 -0
- data/lib/etl/control/destination/csv_destination.rb +84 -0
- data/lib/etl/control/destination/database_destination.rb +95 -0
- data/lib/etl/control/destination/file_destination.rb +124 -0
- data/lib/etl/control/destination/yaml_destination.rb +74 -0
- data/lib/etl/control/source.rb +109 -0
- data/lib/etl/control/source/database_source.rb +220 -0
- data/lib/etl/control/source/enumerable_source.rb +11 -0
- data/lib/etl/control/source/file_source.rb +90 -0
- data/lib/etl/control/source/model_source.rb +39 -0
- data/lib/etl/core_ext.rb +1 -0
- data/lib/etl/core_ext/time.rb +5 -0
- data/lib/etl/core_ext/time/calculations.rb +42 -0
- data/lib/etl/engine.rb +574 -0
- data/lib/etl/execution.rb +20 -0
- data/lib/etl/execution/base.rb +9 -0
- data/lib/etl/execution/batch.rb +8 -0
- data/lib/etl/execution/job.rb +8 -0
- data/lib/etl/execution/migration.rb +85 -0
- data/lib/etl/generator.rb +2 -0
- data/lib/etl/generator/generator.rb +20 -0
- data/lib/etl/generator/surrogate_key_generator.rb +39 -0
- data/lib/etl/http_tools.rb +139 -0
- data/lib/etl/parser.rb +11 -0
- data/lib/etl/parser/apache_combined_log_parser.rb +49 -0
- data/lib/etl/parser/delimited_parser.rb +74 -0
- data/lib/etl/parser/fixed_width_parser.rb +65 -0
- data/lib/etl/parser/parser.rb +41 -0
- data/lib/etl/parser/sax_parser.rb +218 -0
- data/lib/etl/parser/spreadsheet_parser.rb +114 -0
- data/lib/etl/parser/xml_parser.rb +65 -0
- data/lib/etl/processor.rb +11 -0
- data/lib/etl/processor/block_processor.rb +14 -0
- data/lib/etl/processor/bulk_import_processor.rb +81 -0
- data/lib/etl/processor/check_exist_processor.rb +80 -0
- data/lib/etl/processor/check_unique_processor.rb +35 -0
- data/lib/etl/processor/copy_field_processor.rb +26 -0
- data/lib/etl/processor/encode_processor.rb +55 -0
- data/lib/etl/processor/hierarchy_exploder_processor.rb +55 -0
- data/lib/etl/processor/print_row_processor.rb +12 -0
- data/lib/etl/processor/processor.rb +25 -0
- data/lib/etl/processor/rename_processor.rb +24 -0
- data/lib/etl/processor/require_non_blank_processor.rb +26 -0
- data/lib/etl/processor/row_processor.rb +17 -0
- data/lib/etl/processor/sequence_processor.rb +23 -0
- data/lib/etl/processor/surrogate_key_processor.rb +53 -0
- data/lib/etl/processor/truncate_processor.rb +35 -0
- data/lib/etl/row.rb +20 -0
- data/lib/etl/screen.rb +14 -0
- data/lib/etl/screen/row_count_screen.rb +20 -0
- data/lib/etl/transform.rb +2 -0
- data/lib/etl/transform/block_transform.rb +13 -0
- data/lib/etl/transform/date_to_string_transform.rb +20 -0
- data/lib/etl/transform/decode_transform.rb +51 -0
- data/lib/etl/transform/default_transform.rb +20 -0
- data/lib/etl/transform/foreign_key_lookup_transform.rb +151 -0
- data/lib/etl/transform/hierarchy_lookup_transform.rb +49 -0
- data/lib/etl/transform/ordinalize_transform.rb +12 -0
- data/lib/etl/transform/sha1_transform.rb +13 -0
- data/lib/etl/transform/string_to_date_transform.rb +16 -0
- data/lib/etl/transform/string_to_datetime_transform.rb +14 -0
- data/lib/etl/transform/string_to_time_transform.rb +11 -0
- data/lib/etl/transform/transform.rb +61 -0
- data/lib/etl/transform/trim_transform.rb +26 -0
- data/lib/etl/transform/type_transform.rb +35 -0
- data/lib/etl/util.rb +59 -0
- data/lib/etl/version.rb +10 -0
- metadata +224 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
module ETL #:nodoc:
|
2
|
+
module Transform #:nodoc:
|
3
|
+
# Transform which walks up the hierarchy tree to find a value of the current level's value
|
4
|
+
# is nil.
|
5
|
+
#
|
6
|
+
# TODO: Let the resolver be implemented in a class so different resolution methods are
|
7
|
+
# possible.
|
8
|
+
class HierarchyLookupTransform < ETL::Transform::Transform
|
9
|
+
# The name of the field to use for the parent ID
|
10
|
+
attr_accessor :parent_id_field
|
11
|
+
|
12
|
+
# The target connection name
|
13
|
+
attr_accessor :target
|
14
|
+
|
15
|
+
# Initialize the transform
|
16
|
+
#
|
17
|
+
# Configuration options:
|
18
|
+
# * <tt>:target</tt>: The target connection name (required)
|
19
|
+
# * <tt>:parent_id_field</tt>: The name of the field to use for the parent ID (defaults to :parent_id)
|
20
|
+
def initialize(control, name, configuration={})
|
21
|
+
super
|
22
|
+
@parent_id_field = configuration[:parent_id_field] || :parent_id
|
23
|
+
@target = configuration[:target]
|
24
|
+
end
|
25
|
+
|
26
|
+
# Transform the value.
|
27
|
+
def transform(name, value, row)
|
28
|
+
if parent_id = row[parent_id_field]
|
29
|
+
# TODO: should use more than just the first source out of the control
|
30
|
+
parent_id, value = lookup(name,
|
31
|
+
control.sources.first.configuration[:table], parent_id, parent_id_field)
|
32
|
+
until value || parent_id.nil?
|
33
|
+
# TODO: should use more than just the first source out of the control
|
34
|
+
parent_id, value = lookup(name,
|
35
|
+
control.sources.first.configuration[:table], parent_id, parent_id_field)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
value
|
39
|
+
end
|
40
|
+
|
41
|
+
# Lookup the parent value.
|
42
|
+
def lookup(field, table, parent_id, parent_id_field)
|
43
|
+
q = "SELECT #{parent_id_field}, #{field} FROM #{table} WHERE id = #{parent_id}"
|
44
|
+
row = ETL::Engine.connection(target).select_one(q)
|
45
|
+
return row[parent_id_field.to_s], row[field.to_s]
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module ETL #:nodoc:
|
2
|
+
module Transform #:nodoc:
|
3
|
+
# Transform a number to an ordinalized version using the ActiveSupport ordinalize
|
4
|
+
# core extension
|
5
|
+
class OrdinalizeTransform < ETL::Transform::Transform
|
6
|
+
# Transform the value from a number to an ordinalized number
|
7
|
+
def transform(name, value, row)
|
8
|
+
value.ordinalize
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'digest/sha1'
|
2
|
+
|
3
|
+
module ETL #:nodoc:
|
4
|
+
module Transform #:nodoc:
|
5
|
+
# Transform which hashes the original value with a SHA-1 hash algorithm
|
6
|
+
class Sha1Transform < ETL::Transform::Transform
|
7
|
+
# Transform the value with a SHA1 digest algorithm.
|
8
|
+
def transform(name, value, row)
|
9
|
+
Digest::SHA1.hexdigest(value)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module ETL #:nodoc:
|
2
|
+
module Transform #:nodoc:
|
3
|
+
# Transform a String representation of a date to a Date instance
|
4
|
+
class StringToDateTransform < ETL::Transform::Transform
|
5
|
+
# Transform the value using Date.parse
|
6
|
+
def transform(name, value, row)
|
7
|
+
return value if value.nil?
|
8
|
+
begin
|
9
|
+
Date.parse(value)
|
10
|
+
rescue => e
|
11
|
+
return value
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module ETL #:nodoc:
|
2
|
+
module Transform #:nodoc:
|
3
|
+
# Transform a String representation of a date to a DateTime instance
|
4
|
+
class StringToDateTimeTransform < ETL::Transform::Transform
|
5
|
+
# Transform the value using DateTime.parse.
|
6
|
+
#
|
7
|
+
# WARNING: This transform is slow (due to the Ruby implementation), but if you need to
|
8
|
+
# parse timestamps before or after the values supported by the Time.parse.
|
9
|
+
def transform(name, value, row)
|
10
|
+
DateTime.parse(value) unless value.nil?
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module ETL #:nodoc:
|
2
|
+
module Transform #:nodoc:
|
3
|
+
# Transform a String representation of a date to a Time instance
|
4
|
+
class StringToTimeTransform < ETL::Transform::Transform
|
5
|
+
# Transform the value using Time.parse
|
6
|
+
def transform(name, value, row)
|
7
|
+
Time.parse(value) unless value.nil?
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module ETL#:nodoc:
|
2
|
+
module Transform#:nodoc:
|
3
|
+
# Base class for transforms.
|
4
|
+
#
|
5
|
+
# A transform converts one value to another value using some sort of algorithm.
|
6
|
+
#
|
7
|
+
# A simple transform has two arguments, the field to transform and the name of the transform:
|
8
|
+
#
|
9
|
+
# transform :ssn, :sha1
|
10
|
+
#
|
11
|
+
# Transforms can also be blocks:
|
12
|
+
#
|
13
|
+
# transform(:ssn){ |v| v[0,24] }
|
14
|
+
#
|
15
|
+
# Finally, a transform can include a configuration hash:
|
16
|
+
#
|
17
|
+
# transform :sex, :decode, {:decode_table_path => 'delimited_decode.txt'}
|
18
|
+
class Transform
|
19
|
+
class << self
|
20
|
+
# Transform the specified value using the given transforms. The transforms can either be
|
21
|
+
# Proc objects or objects which extend from Transform and implement the method <tt>transform(value)</tt>.
|
22
|
+
# Any other object will result in a ControlError being raised.
|
23
|
+
def transform(name, value, row, transforms)
|
24
|
+
transforms.each do |transform|
|
25
|
+
benchmarks[transform.class] ||= 0
|
26
|
+
benchmarks[transform.class] += Benchmark.realtime do
|
27
|
+
Engine.logger.debug "Transforming field #{name} with #{transform.inspect}"
|
28
|
+
case transform
|
29
|
+
when Proc
|
30
|
+
value = transform.call([name, value, row])
|
31
|
+
when Transform
|
32
|
+
value = transform.transform(name, value, row)
|
33
|
+
else
|
34
|
+
raise ControlError, "Unsupported transform configuration type: #{transform}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
value
|
39
|
+
end
|
40
|
+
|
41
|
+
def benchmarks
|
42
|
+
@benchmarks ||= {}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
attr_reader :control, :name, :configuration
|
47
|
+
|
48
|
+
# Initialize the transform object with the given control object, field name and
|
49
|
+
# configuration hash
|
50
|
+
def initialize(control, name, configuration={})
|
51
|
+
@control = control
|
52
|
+
@name = name
|
53
|
+
@configuration = configuration
|
54
|
+
end
|
55
|
+
|
56
|
+
def transform(name, value, row)
|
57
|
+
raise "transform is an abstract method"
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module ETL #:nodoc:
|
2
|
+
module Transform #:nodoc:
|
3
|
+
# Transform to trim string
|
4
|
+
class TrimTransform < ETL::Transform::Transform
|
5
|
+
# Configuration options:
|
6
|
+
# * <tt>:type</tt>: :left, :right or :both. Default is :both
|
7
|
+
def initialize(control, name, configuration={})
|
8
|
+
super
|
9
|
+
@type = (configuration[:type] || :both).to_sym
|
10
|
+
end
|
11
|
+
# Transform the value
|
12
|
+
def transform(name, value, row)
|
13
|
+
case @type
|
14
|
+
when :left
|
15
|
+
value.lstrip
|
16
|
+
when :right
|
17
|
+
value.rstrip
|
18
|
+
when :both
|
19
|
+
value.strip
|
20
|
+
else
|
21
|
+
raise "Trim type, if specified, must be :left, :right or :both"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module ETL #:nodoc:
|
2
|
+
module Transform #:nodoc:
|
3
|
+
# Transform from one type to another
|
4
|
+
class TypeTransform < ETL::Transform::Transform
|
5
|
+
# Initialize the transformer.
|
6
|
+
#
|
7
|
+
# Configuration options:
|
8
|
+
# * <tt>:type</tt>: The type to convert to. Supported types:
|
9
|
+
# ** :string
|
10
|
+
# ** :number,:integer
|
11
|
+
# ** :float
|
12
|
+
# ** :decimal
|
13
|
+
def initialize(control, name, configuration={})
|
14
|
+
super
|
15
|
+
@type = configuration[:type]
|
16
|
+
@significant = configuration[:significant] ||= 0
|
17
|
+
end
|
18
|
+
# Transform the value
|
19
|
+
def transform(name, value, row)
|
20
|
+
case @type
|
21
|
+
when :string
|
22
|
+
value.to_s
|
23
|
+
when :number, :integer
|
24
|
+
value.to_i
|
25
|
+
when :float
|
26
|
+
value.to_f
|
27
|
+
when :decimal
|
28
|
+
BigDecimal.new(value.to_s, @significant)
|
29
|
+
else
|
30
|
+
raise "Unsupported type: #{@type}"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/etl/util.rb
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
module ETL
|
2
|
+
module Util
|
3
|
+
# Return the distance of time in words from the given from_time to the specified to_time. If to_time
|
4
|
+
# is not specified then Time.now is used. By default seconds are included...set the include_seconds
|
5
|
+
# argument to false to disable the seconds.
|
6
|
+
def distance_of_time_in_words(from_time, to_time=Time.now)
|
7
|
+
from_time = from_time.to_time if from_time.respond_to?(:to_time)
|
8
|
+
to_time = to_time.to_time if to_time.respond_to?(:to_time)
|
9
|
+
seconds = (to_time - from_time).round
|
10
|
+
distance_in_days = (seconds/(60*60*24)).round
|
11
|
+
seconds = seconds % (60*60*24)
|
12
|
+
distance_in_hours = (seconds/(60*60)).round
|
13
|
+
seconds = seconds % (60*60)
|
14
|
+
distance_in_minutes = (seconds/60).round
|
15
|
+
seconds = seconds % 60
|
16
|
+
distance_in_seconds = seconds
|
17
|
+
|
18
|
+
s = ''
|
19
|
+
s << "#{distance_in_days} days," if distance_in_days > 0
|
20
|
+
s << "#{distance_in_hours} hours, " if distance_in_hours > 0
|
21
|
+
s << "#{distance_in_minutes} minutes, " if distance_in_minutes > 0
|
22
|
+
s << "#{distance_in_seconds} seconds"
|
23
|
+
s
|
24
|
+
end
|
25
|
+
|
26
|
+
# Get the approximate disntance of time in words from the given from_time
|
27
|
+
# to the the given to_time. If to_time is not specified then it is set
|
28
|
+
# to Time.now. By default seconds are included...set the include_seconds
|
29
|
+
# argument to false to disable the seconds.
|
30
|
+
def approximate_distance_of_time_in_words(from_time, to_time=Time.now, include_seconds=true)
|
31
|
+
from_time = from_time.to_time if from_time.respond_to?(:to_time)
|
32
|
+
to_time = to_time.to_time if to_time.respond_to?(:to_time)
|
33
|
+
distance_in_minutes = (((to_time - from_time).abs)/60).round
|
34
|
+
distance_in_seconds = ((to_time - from_time).abs).round
|
35
|
+
|
36
|
+
case distance_in_minutes
|
37
|
+
when 0..1
|
38
|
+
return (distance_in_minutes == 0) ? 'less than a minute' : '1 minute' unless include_seconds
|
39
|
+
case distance_in_seconds
|
40
|
+
when 0..4 then 'less than 5 seconds'
|
41
|
+
when 5..9 then 'less than 10 seconds'
|
42
|
+
when 10..19 then 'less than 20 seconds'
|
43
|
+
when 20..39 then 'half a minute'
|
44
|
+
when 40..59 then 'less than a minute'
|
45
|
+
else '1 minute'
|
46
|
+
end
|
47
|
+
when 2..44 then "#{distance_in_minutes} minutes"
|
48
|
+
when 45..89 then 'about 1 hour'
|
49
|
+
when 90..1439 then "about #{(distance_in_minutes.to_f / 60.0).round} hours"
|
50
|
+
when 1440..2879 then '1 day'
|
51
|
+
when 2880..43199 then "#{(distance_in_minutes / 1440).round} days"
|
52
|
+
when 43200..86399 then 'about 1 month'
|
53
|
+
when 86400..525959 then "#{(distance_in_minutes / 43200).round} months"
|
54
|
+
when 525960..1051919 then 'about 1 year'
|
55
|
+
else "over #{(distance_in_minutes / 525960).round} years"
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/etl/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: colincasey-activewarehouse-etl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Anthony Eden
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-03-24 00:00:00 -07:00
|
13
|
+
default_executable: etl
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rake
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.8.3
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: activesupport
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.1.0
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: activerecord
|
37
|
+
type: :runtime
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.1.0
|
44
|
+
version:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: fastercsv
|
47
|
+
type: :runtime
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.2.0
|
54
|
+
version:
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: adapter_extensions
|
57
|
+
type: :runtime
|
58
|
+
version_requirement:
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 0.5.0
|
64
|
+
version:
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: roo
|
67
|
+
type: :runtime
|
68
|
+
version_requirement:
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 1.2.3
|
74
|
+
version:
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: colincasey-sequel
|
77
|
+
type: :runtime
|
78
|
+
version_requirement:
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 2.10.4
|
84
|
+
version:
|
85
|
+
description: ActiveWarehouse ETL is a pure Ruby Extract-Transform-Load application for loading data into a database.
|
86
|
+
email: casey.colin@gmail.com
|
87
|
+
executables:
|
88
|
+
- etl
|
89
|
+
extensions: []
|
90
|
+
|
91
|
+
extra_rdoc_files:
|
92
|
+
- README
|
93
|
+
- CHANGELOG
|
94
|
+
- LICENSE
|
95
|
+
files:
|
96
|
+
- CHANGELOG
|
97
|
+
- LICENSE
|
98
|
+
- README
|
99
|
+
- TODO
|
100
|
+
- Rakefile
|
101
|
+
- VERSION.yml
|
102
|
+
- bin/etl
|
103
|
+
- bin/etl.cmd
|
104
|
+
- lib/etl
|
105
|
+
- lib/etl/batch
|
106
|
+
- lib/etl/batch/batch.rb
|
107
|
+
- lib/etl/batch/directives.rb
|
108
|
+
- lib/etl/batch.rb
|
109
|
+
- lib/etl/builder
|
110
|
+
- lib/etl/builder/date_dimension_builder.rb
|
111
|
+
- lib/etl/builder/time_dimension_builder.rb
|
112
|
+
- lib/etl/builder.rb
|
113
|
+
- lib/etl/commands
|
114
|
+
- lib/etl/commands/etl.rb
|
115
|
+
- lib/etl/control
|
116
|
+
- lib/etl/control/control.rb
|
117
|
+
- lib/etl/control/destination
|
118
|
+
- lib/etl/control/destination/csv_destination.rb
|
119
|
+
- lib/etl/control/destination/database_destination.rb
|
120
|
+
- lib/etl/control/destination/file_destination.rb
|
121
|
+
- lib/etl/control/destination/yaml_destination.rb
|
122
|
+
- lib/etl/control/destination.rb
|
123
|
+
- lib/etl/control/source
|
124
|
+
- lib/etl/control/source/database_source.rb
|
125
|
+
- lib/etl/control/source/enumerable_source.rb
|
126
|
+
- lib/etl/control/source/file_source.rb
|
127
|
+
- lib/etl/control/source/model_source.rb
|
128
|
+
- lib/etl/control/source.rb
|
129
|
+
- lib/etl/control.rb
|
130
|
+
- lib/etl/core_ext
|
131
|
+
- lib/etl/core_ext/time
|
132
|
+
- lib/etl/core_ext/time/calculations.rb
|
133
|
+
- lib/etl/core_ext/time.rb
|
134
|
+
- lib/etl/core_ext.rb
|
135
|
+
- lib/etl/engine.rb
|
136
|
+
- lib/etl/execution
|
137
|
+
- lib/etl/execution/base.rb
|
138
|
+
- lib/etl/execution/batch.rb
|
139
|
+
- lib/etl/execution/job.rb
|
140
|
+
- lib/etl/execution/migration.rb
|
141
|
+
- lib/etl/execution.rb
|
142
|
+
- lib/etl/generator
|
143
|
+
- lib/etl/generator/generator.rb
|
144
|
+
- lib/etl/generator/surrogate_key_generator.rb
|
145
|
+
- lib/etl/generator.rb
|
146
|
+
- lib/etl/http_tools.rb
|
147
|
+
- lib/etl/parser
|
148
|
+
- lib/etl/parser/apache_combined_log_parser.rb
|
149
|
+
- lib/etl/parser/delimited_parser.rb
|
150
|
+
- lib/etl/parser/fixed_width_parser.rb
|
151
|
+
- lib/etl/parser/parser.rb
|
152
|
+
- lib/etl/parser/sax_parser.rb
|
153
|
+
- lib/etl/parser/spreadsheet_parser.rb
|
154
|
+
- lib/etl/parser/xml_parser.rb
|
155
|
+
- lib/etl/parser.rb
|
156
|
+
- lib/etl/processor
|
157
|
+
- lib/etl/processor/block_processor.rb
|
158
|
+
- lib/etl/processor/bulk_import_processor.rb
|
159
|
+
- lib/etl/processor/check_exist_processor.rb
|
160
|
+
- lib/etl/processor/check_unique_processor.rb
|
161
|
+
- lib/etl/processor/copy_field_processor.rb
|
162
|
+
- lib/etl/processor/encode_processor.rb
|
163
|
+
- lib/etl/processor/hierarchy_exploder_processor.rb
|
164
|
+
- lib/etl/processor/print_row_processor.rb
|
165
|
+
- lib/etl/processor/processor.rb
|
166
|
+
- lib/etl/processor/rename_processor.rb
|
167
|
+
- lib/etl/processor/require_non_blank_processor.rb
|
168
|
+
- lib/etl/processor/row_processor.rb
|
169
|
+
- lib/etl/processor/sequence_processor.rb
|
170
|
+
- lib/etl/processor/surrogate_key_processor.rb
|
171
|
+
- lib/etl/processor/truncate_processor.rb
|
172
|
+
- lib/etl/processor.rb
|
173
|
+
- lib/etl/row.rb
|
174
|
+
- lib/etl/screen
|
175
|
+
- lib/etl/screen/row_count_screen.rb
|
176
|
+
- lib/etl/screen.rb
|
177
|
+
- lib/etl/transform
|
178
|
+
- lib/etl/transform/block_transform.rb
|
179
|
+
- lib/etl/transform/date_to_string_transform.rb
|
180
|
+
- lib/etl/transform/decode_transform.rb
|
181
|
+
- lib/etl/transform/default_transform.rb
|
182
|
+
- lib/etl/transform/foreign_key_lookup_transform.rb
|
183
|
+
- lib/etl/transform/hierarchy_lookup_transform.rb
|
184
|
+
- lib/etl/transform/ordinalize_transform.rb
|
185
|
+
- lib/etl/transform/sha1_transform.rb
|
186
|
+
- lib/etl/transform/string_to_datetime_transform.rb
|
187
|
+
- lib/etl/transform/string_to_date_transform.rb
|
188
|
+
- lib/etl/transform/string_to_time_transform.rb
|
189
|
+
- lib/etl/transform/transform.rb
|
190
|
+
- lib/etl/transform/trim_transform.rb
|
191
|
+
- lib/etl/transform/type_transform.rb
|
192
|
+
- lib/etl/transform.rb
|
193
|
+
- lib/etl/util.rb
|
194
|
+
- lib/etl/version.rb
|
195
|
+
- lib/etl.rb
|
196
|
+
has_rdoc: true
|
197
|
+
homepage: http://github.com/colincasey/activewarehouse-etl
|
198
|
+
post_install_message:
|
199
|
+
rdoc_options:
|
200
|
+
- --inline-source
|
201
|
+
- --charset=UTF-8
|
202
|
+
require_paths:
|
203
|
+
- lib
|
204
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: "0"
|
209
|
+
version:
|
210
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: "0"
|
215
|
+
version:
|
216
|
+
requirements: []
|
217
|
+
|
218
|
+
rubyforge_project:
|
219
|
+
rubygems_version: 1.2.0
|
220
|
+
signing_key:
|
221
|
+
specification_version: 2
|
222
|
+
summary: Pure Ruby ETL package.
|
223
|
+
test_files: []
|
224
|
+
|