Add support for compiling protobufs and running tests

This commit is contained in:
R. Tyler Croy 2014-07-05 14:55:17 -07:00
parent 68745d339b
commit 49519b81a6
4 changed files with 16 additions and 0 deletions

5
Rakefile Normal file
View File

@ -0,0 +1,5 @@
# Load all our tasks from the tasks directory
Dir[File.expand_path(File.dirname(__FILE__) + '/tasks/*.rake')].each do |f|
load f
end

0
lib/.gitkeep Normal file
View File

5
tasks/protobuf.rake Normal file
View File

@ -0,0 +1,5 @@
namespace :protobuf do
task :compile do
sh 'protoc --ruby_out=lib -I proto ./proto/*.proto'
end
end

6
tasks/spec.rake Normal file
View File

@ -0,0 +1,6 @@
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
end
task :default => ['protobuf:compile', 'spec']