ruby-protobuf icon indicating copy to clipboard operation
ruby-protobuf copied to clipboard

Adds Rake task for compiling protobuf files

Open RJPercival opened this issue 12 years ago • 0 comments

Adds "rake/generate_task" which can be used in a Rakefile as follows:

Protobuf::GenerateTask.new("proto/*.proto") do |ruby_protobuf|
  spec.files << ruby_protobuf
end

This adds a "protobuf" task, which can be used by executing "rake protobuf". If used as above, it will also run automatically whenever a packaging task occurs, e.g. "package", "build" or "gem". It can also manually be added as a dependency of any other tasks, e.g. "test".

RJPercival avatar Aug 06 '12 09:08 RJPercival