From 74362e0e8af69fb78b8fbf170cf4505ce6b3e4c3 Mon Sep 17 00:00:00 2001 From: Jake Farrell Date: Tue, 16 Aug 2011 17:13:41 +0000 Subject: [PATCH] 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 --- lib/rb/Rakefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/rb/Rakefile b/lib/rb/Rakefile index 9500db10..06189ebe 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 :default => [:spec] 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 @@ rescue LoadError end end end + -- 2.17.1