Sha256: 6e0bade31f8804f0eaf274e18eefa535e6f6c89f3926521d6b9a4944bdb446e6

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

# encoding: UTF-8
require 'rubygems'
require 'bundler' unless defined?(Bundler)

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

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'rake'

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.test_files = Dir.glob("test/**/*_test.rb")
  test.verbose = true
end

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

task :release => :build do
  system "gem push thumbs_up-#{ThumbsUp::VERSION}.gem"
  system "rm thumbs_up-#{ThumbsUp::VERSION}.gem"
end

task :test_all_databases do
  # Test MySQL, Postgres and SQLite3
  ENV['DB'] = 'mysql'
  puts "Testing MySQL..."
  Rake::Task['test'].execute
  ENV['DB'] = 'postgres'
  puts "Testing Postgres..."
  Rake::Task['test'].execute
  ENV['DB'] = 'sqlite3'
  puts "Testing SQLite3..."
  Rake::Task['test'].execute
end

task :default => :test_all_databases

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thumbs_up-0.6.10 Rakefile
thumbs_up-0.6.9 Rakefile
thumbs_up-0.6.8 Rakefile