Thrift-1263: Updating rb client Rakefile to add suport for publishing client to rubygems.org
Client: Ruby
Patch: Jfarrell
Updating Rakefile to remove deprecated functions and add support for publishing to rubgems.org
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1158383 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/Rakefile b/lib/rb/Rakefile
index 9500db1..06189eb 100644
--- a/lib/rb/Rakefile
+++ b/lib/rb/Rakefile
@@ -19,7 +19,7 @@
require 'rubygems'
require 'rake'
-require 'spec/rake/spectask'
+require 'rspec/core/rake_task'
THRIFT = '../../compiler/cpp/thrift'
@@ -27,14 +27,12 @@
task :spec => [:'gen-rb', :realspec]
-Spec::Rake::SpecTask.new(:realspec) do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ['--color']
+RSpec::Core::RakeTask.new(:realspec) do |t|
+ t.rspec_opts = ['--color']
end
-Spec::Rake::SpecTask.new(:'spec:rcov') do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ['--color']
+RSpec::Core::RakeTask.new(:'spec:rcov') do |t|
+ t.rspec_opts = ['--color']
t.rcov = true
t.rcov_opts = ['--exclude', '^spec,/gems/']
end
@@ -102,3 +100,4 @@
end
end
end
+