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