You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2009/03/30 19:14:06 UTC

svn commit: r760050 - in /incubator/thrift/trunk/lib/rb: ./ Rakefile spec/ spec/gen-rb/

Author: bryanduxbury
Date: Mon Mar 30 17:14:06 2009
New Revision: 760050

URL: http://svn.apache.org/viewvc?rev=760050&view=rev
Log:
THRIFT-410. rb: Ruby lib should have no checked in generated code

This patch deletes the existing checked in ruby code, adds all the generated ruby code directories to svn:ignore, and updates the Rakefile so that "rake spec" generates the ruby code automatically.

Removed:
    incubator/thrift/trunk/lib/rb/spec/gen-rb/
Modified:
    incubator/thrift/trunk/lib/rb/   (props changed)
    incubator/thrift/trunk/lib/rb/Rakefile
    incubator/thrift/trunk/lib/rb/spec/   (props changed)

Propchange: incubator/thrift/trunk/lib/rb/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Mar 30 17:14:06 2009
@@ -1,5 +1,5 @@
-
 Makefile*
 .config
 InstalledFiles
 pkg
+debug_proto_test

Modified: incubator/thrift/trunk/lib/rb/Rakefile
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/Rakefile?rev=760050&r1=760049&r2=760050&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/Rakefile (original)
+++ incubator/thrift/trunk/lib/rb/Rakefile Mon Mar 30 17:14:06 2009
@@ -4,9 +4,11 @@
 
 THRIFT = '../../compiler/cpp/thrift'
 
-task :default => [:'gen-rb', :spec, :test]
+task :default => [:spec]
 
-Spec::Rake::SpecTask.new do |t|
+task :spec => [:'gen-rb', :realspec]
+
+Spec::Rake::SpecTask.new(:realspec) do |t|
   t.spec_files = FileList['spec/**/*_spec.rb']
   t.spec_opts = ['--color']
 end

Propchange: incubator/thrift/trunk/lib/rb/spec/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Mar 30 17:14:06 2009
@@ -0,0 +1 @@
+gen-rb