Skip to content
This repository was archived by the owner on Mar 24, 2018. It is now read-only.

Adds Rake task for compiling protobuf files#13

Open
RJPercival wants to merge 3 commits intomacks:masterfrom
RJPercival:e819a28e944c269f9a96ee22a299b69f710b7e83
Open

Adds Rake task for compiling protobuf files#13
RJPercival wants to merge 3 commits intomacks:masterfrom
RJPercival:e819a28e944c269f9a96ee22a299b69f710b7e83

Conversation

@RJPercival
Copy link

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".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant