public
Fork of ndemonner/stone
Description: Plug-and-play data persistence created for small Ruby web applications.
Homepage: http://stone.rubyforge.org
Clone URL: git://github.com/juretta/stone.git
Search Repo:
stone / Rakefile
100644 22 lines (19 sloc) 0.601 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'config/requirements'
require 'config/hoe' # setup Hoe + all gem configuration
require "rake"
require 'fileutils'
require "rake/clean"
require "spec/rake/spectask"
require 'lib/stone'
 
Dir['tasks/**/*.rake'].each { |rake| load rake }
 
Spec::Rake::SpecTask.new('specs') do |t|
  t.spec_opts = ["--format", "specdoc", "--colour"]
  t.spec_files = Dir['spec/**/*_spec.rb'].sort
end
 
desc "Run specs"
task :ok do
  Stone.empty_datastore
  FileUtils.rm(Dir.pwd/"sandbox_for_specs"/"stone.sql") \
    if File.exists? Dir.pwd/"sandbox_for_specs"/"stone.sql"
  sh "rake specs"
end