Sha256: 6c5074e14f1ce6eb354142b83492b359761e4a1259ad1d56e29c97ff9a270b83
Contents?: true
Size: 534 Bytes
Versions: 5
Compression:
Stored size: 534 Bytes
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" desc "Run specs" RSpec::Core::RakeTask.new(:spec) desc "Run specs (default)" task :default => :spec desc "Remove protobuf definitions that have been compiled" task :clean do FileUtils.rm(Dir.glob("spec/support/protobuf/**/*.proto")) puts "Cleaned" end desc "Compile spec/support protobuf definitions" task :compile, [] => :clean do cmd = "protoc --ruby_out=spec/support/protobuf --proto_path=spec/support/definitions spec/support/definitions/*.proto" sh(cmd) end
Version data entries
5 entries across 5 versions & 1 rubygems