Sha256: aca3a65032c8e1ede665f0fcba22056dde17442cd5c5a21719f6d2fa649badfc

Contents?: true

Size: 813 Bytes

Versions: 10

Compression:

Stored size: 813 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"

task :rspec_all_databases do
  results = {}
  %w{ postgresql mysql sqlite3 }.each do |db|
    puts
    puts '#'*50
    puts "# Running specs against #{db}"
    puts '#'*50
    puts
    # won't work on 1.8.7...
    pid = Kernel.spawn({'DB' => db}, 'rspec', '--format', 'documentation', File.expand_path('../spec', __FILE__))
    Process.waitpid pid
    results[db] = $?.success? 
  end
  puts results.inspect
end

task :default => :rspec_all_databases

task :n, :from, :to do |t, args|
  Dir[File.expand_path("../lib/upsert/**/#{args.from}.*", __FILE__)].each do |path|
    dir = File.dirname(path)
    File.open("#{dir}/#{args.to}.rb", 'w') do |f|
      f.write File.read(path).gsub(args.from, args.to)
    end
  end
end

require 'yard'
YARD::Rake::YardocTask.new

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
upsert-2.0.1 Rakefile
upsert-2.0.0 Rakefile
upsert-1.2.0 Rakefile
upsert-1.1.7 Rakefile
upsert-1.1.6 Rakefile
upsert-1.1.5 Rakefile
upsert-1.1.4 Rakefile
upsert-1.1.3 Rakefile
upsert-1.1.1 Rakefile
upsert-1.1.0 Rakefile