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
ndemonner (author)
Thu Apr 17 22:11:42 -0700 2008
commit  c33e141ea79dfff3470bf5b26baab8927f61bae2
tree    765fa58fa0ee53cd72f3ccd4081f63c0e804484e
parent  3431f5c18675490648e8bf7fbc6f858580d838ea
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