aw_datapipe 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: c983384c36d63b6a8cacc019d757a34159e18202
4
- data.tar.gz: b5af0af6d9157e7083a9645cf547d3cf974d66a1
3
+ metadata.gz: 8069a2387ce46fbc70da4ac48c1222f278788987
4
+ data.tar.gz: 98edd2f4a1a69c54b011c1c29de1ac544a051455
5
5
  SHA512:
6
- metadata.gz: dc704568621731f24931f5ace8d66144ec4ee3009e5633543c59b499022b8510e76f36ec5d7d518e414a9cc60739b75480b173fbacf6944939825294542db962
7
- data.tar.gz: 4dac32dfe96dfa8ba2dce0246c446cf6f85215cfc134d18d6a056606f3de25edca592af16c1866d789ff7ebcebc93560b69660ed6b25007b7df95a6f147e5129
6
+ metadata.gz: 961913134170db5c22785dc6c3fc675a173c7a4546b8b5abffa8091e3958edda9604d0e5699befc751fbf71831c02b9ea255548db76cc8b46ef027c672c0e9b8
7
+ data.tar.gz: 8e7a93d3ff7a1aa56de918af699d57ec458bd5bb60d47f1783bff202f8f5c0a413e0819bd0c91942e8652e62b996eefae5ae606f4cc8767bb3b041b5372e0e97
data/CHANGELOG.md CHANGED
@@ -12,6 +12,9 @@
12
12
  - Rubydocs.
13
13
  - AWS labs examples converted to DSL.
14
14
 
15
+ ## 0.2.2 - 2017-05-24
16
+ - Add CsvDataFormat.
17
+
15
18
  ## 0.2.1 - 2017-05-16
16
19
  - Allow either S3 directory\_path or file\_path.
17
20
  - Add ShellCommandActivity.
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|spec|features)/})
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
- "#<#{demodulized_class_name} #{to_hash}>"
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)
@@ -33,7 +33,7 @@ module AwDatapipe
33
33
  end
34
34
 
35
35
  def marshal_pipeline_object(pipeline_object)
36
- type = pipeline_object.demodulized_class_name
36
+ type = pipeline_object.type
37
37
  hash = pipeline_object.to_hash
38
38
  id = hash.delete(:id)
39
39
  name = hash.delete(:name)
@@ -1,3 +1,3 @@
1
1
  module AwDatapipe
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-16 00:00:00.000000000 Z
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: '0'
122
+ version: 2.2.2
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - ">="