Sha256: 39039ac28b92c084e2b18968e84b098e99555570361dbfd837643f39c8cd0ec0

Contents?: true

Size: 574 Bytes

Versions: 1

Compression:

Stored size: 574 Bytes

Contents

require "bundler/gem_tasks"
require "protobuf/tasks"
require "rspec/core/rake_task"
require "standard/rake"

desc "Run specs"
::RSpec::Core::RakeTask.new(:spec)

desc "Run cops and specs (default)"
task default: [:standard, :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

1 entries across 1 versions & 1 rubygems

Version Path
protobuf-activerecord-7.0.0 Rakefile