aw_datapipe 0.2.1 → 0.2.2
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/CHANGELOG.md +3 -0
- data/aw_datapipe.gemspec +2 -1
- data/lib/aw_datapipe/pipeline_object.rb +11 -6
- data/lib/aw_datapipe/pipeline_serializer.rb +1 -1
- data/lib/aw_datapipe/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8069a2387ce46fbc70da4ac48c1222f278788987
|
|
4
|
+
data.tar.gz: 98edd2f4a1a69c54b011c1c29de1ac544a051455
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 961913134170db5c22785dc6c3fc675a173c7a4546b8b5abffa8091e3958edda9604d0e5699befc751fbf71831c02b9ea255548db76cc8b46ef027c672c0e9b8
|
|
7
|
+
data.tar.gz: 8e7a93d3ff7a1aa56de918af699d57ec458bd5bb60d47f1783bff202f8f5c0a413e0819bd0c91942e8652e62b996eefae5ae606f4cc8767bb3b041b5372e0e97
|
data/CHANGELOG.md
CHANGED
data/aw_datapipe.gemspec
CHANGED
|
@@ -15,12 +15,13 @@ Gem::Specification.new do |spec|
|
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
18
|
-
f.match(%r{^(test
|
|
18
|
+
f.match(%r{^(test)/})
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
spec.bindir = "exe"
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
23
23
|
spec.require_paths = ["lib"]
|
|
24
|
+
spec.required_ruby_version = '>= 2.2.2'
|
|
24
25
|
|
|
25
26
|
spec.add_dependency("activesupport", ">= 3")
|
|
26
27
|
spec.add_dependency("aws-sdk", ['~> 2'])
|
|
@@ -24,12 +24,8 @@ module AwDatapipe
|
|
|
24
24
|
end.flatten
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
def demodulized_class_name
|
|
28
|
-
self.class.name.split('::').last
|
|
29
|
-
end
|
|
30
|
-
|
|
31
27
|
def inspect
|
|
32
|
-
"#<#{
|
|
28
|
+
"#<#{type} #{to_hash}>"
|
|
33
29
|
end
|
|
34
30
|
|
|
35
31
|
def to_hash
|
|
@@ -42,6 +38,10 @@ module AwDatapipe
|
|
|
42
38
|
end.join(",") << ")"
|
|
43
39
|
end
|
|
44
40
|
|
|
41
|
+
def type
|
|
42
|
+
self.class.name.split('::').last
|
|
43
|
+
end
|
|
44
|
+
|
|
45
45
|
protected
|
|
46
46
|
|
|
47
47
|
def indent(indent_level)
|
|
@@ -60,7 +60,12 @@ module AwDatapipe
|
|
|
60
60
|
Schedule = PipelineObject.new(:period, :start_date_time)
|
|
61
61
|
|
|
62
62
|
Ec2Resource = PipelineObject.new(:action_on_task_failure, :instance_type, :security_group_ids, :subnet_id, :terminate_after)
|
|
63
|
-
S3DataNode = PipelineObject.new(:directory_path, :file_path)
|
|
63
|
+
S3DataNode = PipelineObject.new(:directory_path, :data_format, :file_path)
|
|
64
|
+
CsvDataFormat = PipelineObject.new(:column) do
|
|
65
|
+
def type
|
|
66
|
+
'CSV'
|
|
67
|
+
end
|
|
68
|
+
end
|
|
64
69
|
ShellCommandActivity = PipelineObject.new(:command, :input, :output, :stage, :runs_on)
|
|
65
70
|
|
|
66
71
|
JdbcDatabase = PipelineObject.new(:_password, :connection_string, :jdbc_driver_class, :username)
|
data/lib/aw_datapipe/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aw_datapipe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piers Chambers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
119
119
|
requirements:
|
|
120
120
|
- - ">="
|
|
121
121
|
- !ruby/object:Gem::Version
|
|
122
|
-
version:
|
|
122
|
+
version: 2.2.2
|
|
123
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
requirements:
|
|
125
125
|
- - ">="
|