Skip to content

Commit c5dbe24

Browse files
committed
Fix code generation in spec task to work with proto3
Taken from 8e7c96a by Garret Thornburg <[email protected]>
1 parent dd245b6 commit c5dbe24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace :compile do
2222
task :spec do
2323
proto_path = ::File.expand_path('../spec/support/', __FILE__)
2424
proto_files = Dir[File.join(proto_path, '**', '*.proto')]
25-
cmd = %(protoc --plugin=./bin/protoc-gen-ruby --ruby_out=#{proto_path} -I #{proto_path} #{proto_files.join(' ')})
25+
cmd = %(protoc --plugin=protoc-gen-ruby-protobuf=./bin/protoc-gen-ruby --ruby-protobuf_out=#{proto_path} -I #{proto_path} #{proto_files.join(' ')})
2626

2727
puts cmd
2828
system(cmd)
@@ -35,7 +35,7 @@ namespace :compile do
3535
output_dir = ::File.expand_path('../tmp/rpc', __FILE__)
3636
::FileUtils.mkdir_p(output_dir)
3737

38-
cmd = %(protoc --plugin=./bin/protoc-gen-ruby --ruby_out=#{output_dir} -I #{proto_path} #{proto_files.join(' ')})
38+
cmd = %(protoc --plugin=protoc-gen-ruby-protobuf=./bin/protoc-gen-ruby --ruby-protobuf_out=#{output_dir} -I #{proto_path} #{proto_files.join(' ')})
3939

4040
puts cmd
4141
system(cmd)

0 commit comments

Comments
 (0)