From: Jake Farrell Date: Tue, 16 Aug 2011 17:13:41 +0000 (+0000) Subject: Thrift-1263: Updating rb client Rakefile to add suport for publishing client to rubyg... X-Git-Tag: 0.8.0~146 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=74362e0e8af69fb78b8fbf170cf4505ce6b3e4c3;p=common%2Fthrift.git 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 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 +