Sha256: 25da9f9f9760a122fe577e4f3452ebb214dae84b4a6e0d3327832d8970b6945b

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)

require 'rake/clean'
require 'rake/testtask'
require 'date'
require 'active_record_slave/version'

desc "Build gem"
task :gem  do |t|
  gemspec = Gem::Specification.new do |s|
    s.name        = 'active_record_slave'
    s.version     = ActiveRecordSlave::VERSION
    s.platform    = Gem::Platform::RUBY
    s.authors     = ['Reid Morrison']
    s.email       = ['reidmo@gmail.com']
    s.homepage    = 'https://github.com/ClarityServices/active_record_slave'
    s.date        = Date.today.to_s
    s.summary     = "ActiveRecord read from slave"
    s.description = "ActiveRecordSlave is a library to seamlessly enable reading from database slaves in a Rails 3 project, written in Ruby."
    s.files       = FileList["./**/*"].exclude('*.gem', 'nbproject').map{|f| f.sub(/^\.\//, '')}
    s.has_rdoc    = true
    #s.add_dependency 'activerecord', '>= 3.0.0'
  end
  Gem::Builder.new(gemspec).build
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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active_record_slave-0.2.0 Rakefile
active_record_slave-0.1.0 Rakefile