masamune 0.17.0 → 0.17.1

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: fed58d83f573640ea93aaee3226ba39e4b504302
4
- data.tar.gz: a40fb42e8f9dd313c7606266424df457b61b5cef
3
+ metadata.gz: 6ddce086bb21f28d0fed13c985c5d4f85712e9a4
4
+ data.tar.gz: 0f9458ce48db794367985117fe07a7eb9fa6c67f
5
5
  SHA512:
6
- metadata.gz: 1eef004f660f92fdb0664e65df4f402d0cf68059af223140fb3f33d5ad2a4c9a060543555d1cab548b46f4971e0fddc9ec4f1f2f48ee964ad596cc99dd6386c8
7
- data.tar.gz: c07cd4e970b1208efcff02c052538590c9f8d27dbd53efaeedcd9845e7a19e37505954c2360d5835fb7588505e089378c7538549c4ada9cfe6fdcbc82a8bdd4d
6
+ metadata.gz: 532d05598d8286dc976935cbd15ee0e943dd4127f4d0f60f85044fb983f7f9214fa9c6115ea9b715684dd2985ad1740b00d0669cf495311ec9d90e999b90448b
7
+ data.tar.gz: 6541b858616931ed4b50aae951824e3ed0b40e4b49a4b7595540a2b407b3f9f50f7f2e99d10eebb21a6a3c2def11e43abe085e9952950d632406967467a4b01e
@@ -26,7 +26,14 @@ module Masamune::Actions
26
26
  opts = args.last.is_a?(Hash) ? args.pop : {}
27
27
  opts = opts.to_hash.symbolize_keys
28
28
 
29
- klass = Class.new(SimpleDelegator)
29
+ klass = Class.new do
30
+ include Masamune::HasEnvironment
31
+
32
+ def initialize(delegate)
33
+ self.environment = delegate
34
+ end
35
+ end
36
+
30
37
  klass.class_eval do
31
38
  define_method(:command_args) do
32
39
  args
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Masamune
24
- VERSION = '0.17.0'
24
+ VERSION = '0.17.1'
25
25
  end
@@ -25,6 +25,14 @@ describe Masamune::Actions::Execute do
25
25
  Class.new do
26
26
  include Masamune::HasEnvironment
27
27
  include Masamune::Actions::Execute
28
+
29
+ def before_execute
30
+ fail
31
+ end
32
+
33
+ def after_execute
34
+ fail
35
+ end
28
36
  end
29
37
  end
30
38
 
@@ -31,10 +31,6 @@ describe Masamune::Actions::HadoopStreaming do
31
31
  let(:extra) { [] }
32
32
  let(:instance) { klass.new }
33
33
 
34
- before do
35
- instance.environment = Masamune::ExampleGroup
36
- end
37
-
38
34
  describe '.hadoop_streaming' do
39
35
  before do
40
36
  allow(instance).to receive_message_chain(:configuration, :hadoop_streaming).and_return({})
@@ -72,10 +72,6 @@ describe Masamune::Actions::Transform do
72
72
  let(:instance) { klass.new }
73
73
  let(:postgres) { catalog.postgres }
74
74
 
75
- before do
76
- instance.environment = Masamune::ExampleGroup
77
- end
78
-
79
75
  describe '.load_dimension' do
80
76
  subject { instance.load_dimension(source_file, postgres.user_file, postgres.user_dimension) }
81
77
 
@@ -24,6 +24,7 @@ module ActionExampleGroup
24
24
  def self.included(base)
25
25
  base.let(:run_dir) { Dir.mktmpdir('masamune') }
26
26
  base.before do
27
+ instance.environment = Masamune::ExampleGroup
27
28
  Masamune::ExampleGroup.filesystem.add_path(:run_dir, run_dir)
28
29
  end
29
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: masamune
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Andrews
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -436,7 +436,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
436
436
  version: '0'
437
437
  requirements: []
438
438
  rubyforge_project:
439
- rubygems_version: 2.5.1
439
+ rubygems_version: 2.4.5.1
440
440
  signing_key:
441
441
  specification_version: 4
442
442
  summary: Hybrid Data & Work Flow