You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2011/09/23 19:24:00 UTC

svn commit: r1174896 - /thrift/trunk/lib/rb/Rakefile

Author: jfarrell
Date: Fri Sep 23 17:24:00 2011
New Revision: 1174896

URL: http://svn.apache.org/viewvc?rev=1174896&view=rev
Log:
Thrift-1355: Running make in lib/rb doesn't build the native extensions
Client: rb
Patch: jfarrell

Builds extension prior to running spec calls to resolve test deps.



Modified:
    thrift/trunk/lib/rb/Rakefile

Modified: thrift/trunk/lib/rb/Rakefile
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/rb/Rakefile?rev=1174896&r1=1174895&r2=1174896&view=diff
==============================================================================
--- thrift/trunk/lib/rb/Rakefile (original)
+++ thrift/trunk/lib/rb/Rakefile Fri Sep 23 17:24:00 2011
@@ -25,7 +25,7 @@ require 'spec/rake/spectask'
 THRIFT = '../../compiler/cpp/thrift'
 
 task :default => [:gem]
-task :spec => [:'gen-rb', :realspec]
+task :spec => [:'gen-rb', :build_ext, :realspec]
 
 Spec::Rake::SpecTask.new(:realspec) do |t|
   t.spec_files = FileList['spec/**/*_spec.rb']
@@ -59,7 +59,7 @@ namespace :'gen-rb' do
 end
 
 desc "Build the native library"
-task :build_ext => :spec do
+task :build_ext => :'gen-rb' do
    Dir::chdir(File::dirname('ext/extconf.rb')) do
       unless sh "ruby #{File::basename('ext/extconf.rb')}"
         $stderr.puts "Failed to run extconf"