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

Version Path
protobuf-activerecord-3.4.3 Rakefile
protobuf-activerecord-3.4.2 Rakefile
protobuf-activerecord-3.4.1 Rakefile
protobuf-activerecord-3.4.0 Rakefile
protobuf-activerecord-3.3.8 Rakefile
protobuf-activerecord-3.3.7 Rakefile
protobuf-activerecord-3.3.6 Rakefile
protobuf-activerecord-3.3.5 Rakefile
protobuf-activerecord-3.3.4 Rakefile
protobuf-activerecord-3.3.3 Rakefile
protobuf-activerecord-3.3.2 Rakefile
protobuf-activerecord-3.3.1 Rakefile
protobuf-activerecord-3.3.0 Rakefile
protobuf-activerecord-3.2.2 Rakefile
protobuf-activerecord-3.2.1 Rakefile
protobuf-activerecord-3.2.0 Rakefile
protobuf-activerecord-3.1.1 Rakefile
protobuf-activerecord-3.1.0 Rakefile
protobuf-activerecord-3.1.0.rc1 Rakefile