macks/ruby-protobuf — pull request #13 by PyroSpirit (2012-08-06 09:37:41+00:00)
Title: Adds Rake task for compiling protobuf files

Adds "rake/generate_task" which can be used in a Rakefile as follows:
```ruby
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".