aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/Rakefile
diff options
context:
space:
mode:
authorGravatar Paul Yang <TeBoring@users.noreply.github.com>2018-05-17 17:11:06 -0700
committerGravatar GitHub <noreply@github.com>2018-05-17 17:11:06 -0700
commit9ccc3e536c4d83a79f82843894793fb850e6d4e4 (patch)
tree2d6170278b6ec354ca36d5f0b8142cce467023fe /ruby/Rakefile
parent036947f63087a48558e46bccfb6c99122a494266 (diff)
Adopt ruby_package in ruby generated code. (#4627)
* Adopt ruby_package in ruby generated code. * Add test for ruby_package
Diffstat (limited to 'ruby/Rakefile')
-rw-r--r--ruby/Rakefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/ruby/Rakefile b/ruby/Rakefile
index ff09cebb..013bc99a 100644
--- a/ruby/Rakefile
+++ b/ruby/Rakefile
@@ -87,6 +87,7 @@ end
# Proto for tests.
genproto_output << "tests/generated_code.rb"
genproto_output << "tests/test_import.rb"
+genproto_output << "tests/test_ruby_package.rb"
file "tests/generated_code.rb" => "tests/generated_code.proto" do |file_task|
sh "../src/protoc --ruby_out=. tests/generated_code.proto"
end
@@ -95,6 +96,10 @@ file "tests/test_import.rb" => "tests/test_import.proto" do |file_task|
sh "../src/protoc --ruby_out=. tests/test_import.proto"
end
+file "tests/test_ruby_package.rb" => "tests/test_ruby_package.proto" do |file_task|
+ sh "../src/protoc --ruby_out=. tests/test_ruby_package.proto"
+end
+
task :genproto => genproto_output
task :clean do