Sha256: 5bc3b2e5ee2f507e0a442f969c91399875b3ec74ef7eb7dd7217cc6f465318a7
Contents?: true
Size: 558 Bytes
Versions: 27
Compression:
Stored size: 558 Bytes
Contents
#!/usr/bin/env rake 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
27 entries across 27 versions & 1 rubygems