Sha256: e28067c20b84b0b3f2121acbc81b330e61a2092732d160d950c21a5263e7a5a1

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

Stored size: 719 Bytes

Contents

require 'rake/clean'
require 'rake/testtask'

$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'active_record_slave/version'

task :gem do
  system "gem build active_record_slave.gemspec"
end

task :publish => :gem do
  system "git tag -a v#{ActiveRecordSlave::VERSION} -m 'Tagging #{ActiveRecordSlave::VERSION}'"
  system "git push --tags"
  system "gem push active_record_slave-#{ActiveRecordSlave::VERSION}.gem"
  system "rm active_record_slave-#{ActiveRecordSlave::VERSION}.gem"
end

desc "Run Test Suite"
task :test do
  Rake::TestTask.new(:functional) do |t|
    t.test_files = FileList['test/*_test.rb']
    t.verbose    = true
  end

  Rake::Task['functional'].invoke
end

task :default => :test

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_record_slave-1.2.1 Rakefile
active_record_slave-1.2.0 Rakefile
active_record_slave-1.1.0 Rakefile