Sha256: 2b11fc5ec0559332e85cd4d6900a98a15466b8fb505dd24b21437696b92f77f6

Contents?: true

Size: 835 Bytes

Versions: 4

Compression:

Stored size: 835 Bytes

Contents

# Setup bundler to avoid having to run bundle exec all the time.
require 'rubygems'
require 'bundler/setup'

require 'rake/testtask'
require_relative 'lib/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

Rake::TestTask.new(:test) do |t|
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
  t.warning = false
end

# By default run tests against all appraisals
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
  require 'appraisal'
  task default: :appraisal
else
  task default: :test
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active_record_slave-1.6.0 Rakefile
active_record_slave-1.5.0 Rakefile
active_record_slave-1.4.0 Rakefile
active_record_slave-1.3.0 Rakefile