Sha256: 54a4f90c34a4c52e32bb504b216cf626c699e7740901a88f3403521a1559df5f
Contents?: true
Size: 631 Bytes
Versions: 8
Compression:
Stored size: 631 Bytes
Contents
require "bundler/gem_tasks" require "protobuf/tasks" require "rspec/core/rake_task" require "rubocop/rake_task" desc "Run cops" ::RuboCop::RakeTask.new(:rubocop) desc "Run specs" ::RSpec::Core::RakeTask.new(:spec) desc "Run cops and specs (default)" task :default => [:rubocop, :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 ::Rake::Task["protobuf:compile"].invoke("", "spec/support/definitions", "spec/support/protobuf") end
Version data entries
8 entries across 8 versions & 1 rubygems