Sha256: 88ee1f6e14f9b82c20222b6d10c904ccb28df20264ee66111b94eb8785136910
Contents?: true
Size: 534 Bytes
Versions: 19
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
19 entries across 19 versions & 1 rubygems