summaryrefslogtreecommitdiff
path: root/lib/rb/Rakefile
diff options
context:
space:
mode:
authorjfarrell <jfarrell@apache.org>2014-06-26 22:53:01 -0400
committerjfarrell <jfarrell@apache.org>2014-06-26 22:53:01 -0400
commitbf2617ed15f95e22bcf41fd9d08e7ce562464f46 (patch)
tree83c17a7b0234d6bf1174afeb1b23f31d7e4a2b59 /lib/rb/Rakefile
parentc9bdd50270d2eb60488ef38c56f990b781bbb3d2 (diff)
downloadthrift-bf2617ed15f95e22bcf41fd9d08e7ce562464f46.tar.gz
Thrift-THRIFT-2574: Compiler option to generate namespace directories for Ruby
Client: rb Patch: Andrew Bloomgarden Adds option to generate namespaced ruby classes. Github: closes #140
Diffstat (limited to 'lib/rb/Rakefile')
-rw-r--r--lib/rb/Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/rb/Rakefile b/lib/rb/Rakefile
index f533d0680..ef00a9f53 100644
--- a/lib/rb/Rakefile
+++ b/lib/rb/Rakefile
@@ -38,13 +38,18 @@ RSpec::Core::RakeTask.new(:'spec:rcov') do |t|
end
desc 'Compile the .thrift files for the specs'
-task :'gen-rb' => [:'gen-rb:spec', :'gen-rb:benchmark', :'gen-rb:debug_proto']
+task :'gen-rb' => [:'gen-rb:spec', :'gen-rb:namespaced_spec', :'gen-rb:benchmark', :'gen-rb:debug_proto']
namespace :'gen-rb' do
task :'spec' do
dir = File.dirname(__FILE__) + '/spec'
sh THRIFT, '--gen', 'rb', '-o', dir, "#{dir}/ThriftSpec.thrift"
end
+ task :'namespaced_spec' do
+ dir = File.dirname(__FILE__) + '/spec'
+ sh THRIFT, '--gen', 'rb:namespaced', '-recurse', '-o', dir, "#{dir}/ThriftNamespacedSpec.thrift"
+ end
+
task :'benchmark' do
dir = File.dirname(__FILE__) + '/benchmark'
sh THRIFT, '--gen', 'rb', '-o', dir, "#{dir}/Benchmark.thrift"