Please fix it -----邮件原件----- 发件人: jfarr...@apache.org [mailto:jfarr...@apache.org] 发送时间: 2011年8月17日 01:14 收件人: comm...@thrift.apache.org 主题: svn commit: r1158383 - /thrift/trunk/lib/rb/Rakefile
Author: jfarrell Date: Tue Aug 16 17:13:41 2011 New Revision: 1158383 URL: http://svn.apache.org/viewvc?rev=1158383&view=rev Log: 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 Modified: thrift/trunk/lib/rb/Rakefile Modified: thrift/trunk/lib/rb/Rakefile URL: http://svn.apache.org/viewvc/thrift/trunk/lib/rb/Rakefile?rev=1158383&r1=1158382&r2=1158383&view=diff ============================================================================== --- thrift/trunk/lib/rb/Rakefile (original) +++ thrift/trunk/lib/rb/Rakefile Tue Aug 16 17:13:41 2011 @@ -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 +