Sha256: db8e22b0f2c70196d8a295768f9505eb796745ca9ed529f465889042576534ba

Contents?: true

Size: 1.1 KB

Versions: 41

Compression:

Stored size: 1.1 KB

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'

require File.join(PROJECT_ROOT, 'lib', 'composite_primary_keys')
require File.join(PROJECT_ROOT, 'test', 'connections', 'connection_spec')

# 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 sqlite oracle oracle_enhanced postgresql ibm_db sqlserver).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

41 entries across 41 versions & 1 rubygems

Version Path
composite_primary_keys-13.0.1 Rakefile
composite_primary_keys-13.0.0 Rakefile
composite_primary_keys-12.0.10 Rakefile
composite_primary_keys-12.0.9 Rakefile
composite_primary_keys-12.0.8 Rakefile
composite_primary_keys-12.0.6 Rakefile
composite_primary_keys-12.0.5 Rakefile
composite_primary_keys-12.0.4 Rakefile
composite_primary_keys-12.0.3 Rakefile
composite_primary_keys-12.0.2 Rakefile
composite_primary_keys-11.3.1 Rakefile
composite_primary_keys-12.0.1 Rakefile
composite_primary_keys-12.0.0 Rakefile
composite_primary_keys-12.0.0.rc5 Rakefile
composite_primary_keys-12.0.0.rc4 Rakefile
composite_primary_keys-12.0.0.rc3 Rakefile
composite_primary_keys-12.0.0.rc2 Rakefile
composite_primary_keys-12.0.0.rc1 Rakefile
composite_primary_keys-11.2.0 Rakefile
composite_primary_keys-11.1.0 Rakefile