Sha256: 7777d13de65ab8c0ea1af0df28db192f52907a6f19e81edec9be3615836a0d0a

Contents?: true

Size: 941 Bytes

Versions: 12

Compression:

Stored size: 941 Bytes

Contents

require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rubygems/package_task'

# Set global variable so other tasks can access them
::PROJECT_ROOT = File.expand_path(".")
::GEM_NAME = 'composite_primary_keys'

# Read the spec file
spec = Gem::Specification.load("#{GEM_NAME}.gemspec")

# Setup Rake tasks for managing the gem
Gem::PackageTask.new(spec).define

# Now load in other task files
Dir.glob('tasks/**/*.rake').each do |rake_file|
  load File.join(File.dirname(__FILE__), rake_file)
end

# Set up test tasks for each supported connection adapter
%w(mysql sqlite3 oracle oracle_enhanced postgresql ibm_db).each do |adapter|
  namespace adapter do
    desc "Run tests using the #{adapter} adapter"
    task "test" do
      ENV["ADAPTER"] = adapter
      Rake::TestTask.new("subtest_#{adapter}") do |t|
        t.libs << "test"
      end
      Rake::Task["subtest_#{adapter}"].invoke
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
composite_primary_keys-5.0.6 Rakefile
composite_primary_keys-5.0.5 Rakefile
composite_primary_keys-5.0.4 Rakefile
composite_primary_keys-5.0.2 Rakefile
composite_primary_keys-5.0.1 Rakefile
composite_primary_keys-5.0.0 Rakefile
composite_primary_keys-5.0.0.rc1 Rakefile
composite_primary_keys-4.1.2 Rakefile
composite_primary_keys-4.1.1 Rakefile
composite_primary_keys-4.0.0 Rakefile
composite_primary_keys-4.0.0.beta9 Rakefile
composite_primary_keys-4.0.0.beta8 Rakefile