dataloaderb 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dataloaderb (0.0.1)
4
+ dataloaderb (0.0.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -8,9 +8,7 @@ module Dataloaderb
8
8
  @bin_path = bin_path
9
9
  @conf_path = nil
10
10
  @opts = opts
11
- if block_given?
12
- instance_eval(&block)
13
- end
11
+ yield self if block_given?
14
12
  end
15
13
 
16
14
  # Run one or more processes. Specify the processes to run by passing
@@ -1,5 +1,5 @@
1
1
  module Dataloaderb
2
2
  module Version
3
- STRING = [0, 0, 2].join(".")
3
+ STRING = [0, 0, 3].join(".")
4
4
  end
5
5
  end
@@ -70,9 +70,9 @@ describe Dataloaderb::ProcessRunner do
70
70
 
71
71
  describe "with a passed block" do
72
72
  it "should execute the block in the scope of the instance" do
73
- Dataloaderb::ProcessRunner.new('spec/fixtures/bin') do
74
- self.stub!(:get_process_execute_command).and_return("./spec/fixtures/bin/test.sh")
75
- result = execute_process 'spec/fixutres/processes/sample_proc.yml'
73
+ Dataloaderb::ProcessRunner.new('spec/fixtures/bin') do |runner|
74
+ runner.stub!(:get_process_execute_command).and_return("./spec/fixtures/bin/test.sh")
75
+ result = runner.execute_process 'spec/fixutres/processes/sample_proc.yml'
76
76
  result.strip.should == "result of process"
77
77
  end
78
78
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brandon Tilley