Sha256: d5fa46e4729fc6a42642c9892ce905f9e29073f4fa223483c21427e9c83df944

Contents?: true

Size: 1.41 KB

Versions: 18

Compression:

Stored size: 1.41 KB

Contents

require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |s|
    s.name = "database_cleaner"
    s.summary = %Q{Strategies for cleaning databases.  Can be used to ensure a clean state for testing.}
    s.email = "ben@benmabey.com"
    s.homepage = "http://github.com/bmabey/database_cleaner"
    s.description = "Strategies for cleaning databases.  Can be used to ensure a clean state for testing."
    s.files = FileList["[A-Z]*.*", "{examples,lib,features,spec}/**/*", "Rakefile", "cucumber.yml"]
    s.authors = ["Ben Mabey"]
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'database_cleaner'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |t|
  t.libs << 'lib' << 'spec'
  t.spec_files = FileList['spec/**/*_spec.rb']
end

Spec::Rake::SpecTask.new(:rcov) do |t|
  t.libs << 'lib' << 'spec'
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.rcov = true
end

begin
  require 'cucumber/rake/task'
  Cucumber::Rake::Task.new(:features)
rescue LoadError
  puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
end

task :default => [:spec, :features]

Version data entries

18 entries across 18 versions & 9 rubygems

Version Path
HusseinMorsy-database_cleaner-0.2.2 Rakefile
adzap-database_cleaner-0.2.3 Rakefile
bmabey-database_cleaner-0.2.2 Rakefile
bmabey-database_cleaner-0.2.3 Rakefile
darrell-database_cleaner-0.2.3.2 Rakefile
yozhyk-database_cleaner-0.2.4 Rakefile
bitfluent-database_cleaner-0.5.2 Rakefile
database_cleaner-0.5.2 Rakefile
database_cleaner-0.5.1 Rakefile
saimonmoore-database_cleaner-0.5.0 Rakefile
database_cleaner-0.5.0 Rakefile
database_cleaner-0.4.3 Rakefile
database_cleaner-0.4.2 Rakefile
database_cleaner-0.4.1 Rakefile
database_cleaner-0.4.0 Rakefile
database_cleaner-0.3.0 Rakefile
database_cleaner-0.2.3 Rakefile
dsturnbull-database_cleaner-0.2.4 Rakefile