From 358943cdfafaf6138d40729cecd2d97c94566d1a Mon Sep 17 00:00:00 2001 From: David Snyder Date: Wed, 19 Mar 2014 16:14:13 -0500 Subject: [PATCH] Bump wukong and fix failing specs Bump version to 0.2.0 Change-Id: I767ed6301327a2e1e09a083f23728c57b9ff4042 --- Gemfile | 2 +- lib/wukong-hadoop/version.rb | 2 +- spec/spec_helper.rb | 2 +- spec/wukong-hadoop/hadoop_mode_spec.rb | 6 +++--- spec/wukong-hadoop/runner_spec.rb | 2 +- wukong-hadoop.gemspec | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Gemfile b/Gemfile index 96dc046..e323402 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -source :rubygems +source 'https://rubygems.org' gemspec diff --git a/lib/wukong-hadoop/version.rb b/lib/wukong-hadoop/version.rb index 94c4354..3e25201 100644 --- a/lib/wukong-hadoop/version.rb +++ b/lib/wukong-hadoop/version.rb @@ -1,5 +1,5 @@ module Wukong module Hadoop - VERSION = '0.1.1' + VERSION = '0.2.0' end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0185946..c925be9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -21,7 +21,7 @@ def root def hadoop_runner *args, &block runner(Wukong::Hadoop::HadoopRunner, 'wu-hadoop', *args) do - stub!(:execute_command) + stub(:execute_command) instance_eval(&block) if block_given? end end diff --git a/spec/wukong-hadoop/hadoop_mode_spec.rb b/spec/wukong-hadoop/hadoop_mode_spec.rb index 0380454..8327091 100644 --- a/spec/wukong-hadoop/hadoop_mode_spec.rb +++ b/spec/wukong-hadoop/hadoop_mode_spec.rb @@ -69,13 +69,13 @@ context "removing existing output paths" do it "will not remove the output path by default" do - hadoop_runner('regexp', 'count', input: '/tmp/input1,/tmp/input2', output: '/tmp/output') { should_not_receive(:remove_output_path!) } + hadoop_runner('regexp', 'count', input: '/tmp/input1,/tmp/input2', output: '/tmp/output') { should_not_receive(:remove_output_path) } end it "will remove the output path when given the --rm option" do - hadoop_runner('regexp', 'count', input: '/tmp/input1,/tmp/input2', output: '/tmp/output', rm: true) { should_receive(:remove_output_path!) } + hadoop_runner('regexp', 'count', input: '/tmp/input1,/tmp/input2', output: '/tmp/output', rm: true) { should_receive(:remove_output_path) } end it "will not remove the output path when given the --rm option AND the --dry_run option" do - hadoop_runner('regexp', 'count', input: '/tmp/input1,/tmp/input2', output: '/tmp/output', rm: true, dry_run: true) { should_receive(:remove_output_path!) } + hadoop_runner('regexp', 'count', input: '/tmp/input1,/tmp/input2', output: '/tmp/output', rm: true, dry_run: true) { should_receive(:remove_output_path) } end end diff --git a/spec/wukong-hadoop/runner_spec.rb b/spec/wukong-hadoop/runner_spec.rb index 4408f1e..372ba71 100644 --- a/spec/wukong-hadoop/runner_spec.rb +++ b/spec/wukong-hadoop/runner_spec.rb @@ -4,7 +4,7 @@ context "handling errors" do it "raises an error when it can't find a file" do - expect { hadoop_runner(examples_dir('processors.rb'), examples_dir('doesnt_exist.rb'), :input => 'foo', :output => 'bar') }.to raise_error(Wukong::Error, /no such file/) + expect { hadoop_runner(examples_dir('processors.rb'), examples_dir('doesnt_exist.rb'), :input => 'foo', :output => 'bar') }.to raise_error(Wukong::Error, /cannot load such file/) end it "raises an error in Hadoop mode when called without input and output paths" do diff --git a/wukong-hadoop.gemspec b/wukong-hadoop.gemspec index 146cb25..cf0ae7c 100644 --- a/wukong-hadoop.gemspec +++ b/wukong-hadoop.gemspec @@ -25,5 +25,5 @@ EOF gem.test_files = gem.files.grep(/^spec/) gem.require_paths = ['lib'] - gem.add_dependency('wukong', '3.0.1') + gem.add_dependency('wukong', '4.0.0') end