2009-11-17 07:21:36 +01:00
|
|
|
require 'lib/middleman'
|
2009-10-23 02:25:15 +02:00
|
|
|
require 'rake'
|
2009-11-23 00:37:11 +01:00
|
|
|
require 'spec/rake/spectask'
|
2009-11-10 20:41:17 +01:00
|
|
|
require 'cucumber/rake/task'
|
2009-10-23 02:25:15 +02:00
|
|
|
|
|
|
|
begin
|
|
|
|
require 'jeweler'
|
|
|
|
Jeweler::Tasks.new do |gem|
|
|
|
|
gem.name = "middleman"
|
|
|
|
gem.summary = %Q{A static site generator utilizing Haml, Sass and providing YUI compression and cache busting}
|
|
|
|
gem.email = "tdreyno@gmail.com"
|
|
|
|
gem.homepage = "http://wiki.github.com/tdreyno/middleman"
|
|
|
|
gem.authors = ["Thomas Reynolds"]
|
|
|
|
gem.rubyforge_project = "middleman"
|
|
|
|
gem.executables = %w(mm-init mm-build mm-server)
|
|
|
|
gem.add_dependency("thin")
|
2009-11-23 00:37:11 +01:00
|
|
|
gem.add_development_dependency("rspec")
|
|
|
|
gem.add_development_dependency("cucumber")
|
2009-10-23 02:25:15 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
Jeweler::GemcutterTasks.new
|
|
|
|
rescue LoadError
|
|
|
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
|
|
|
end
|
|
|
|
|
|
|
|
Spec::Rake::SpecTask.new(:spec) do |spec|
|
|
|
|
spec.libs << 'lib' << 'spec'
|
|
|
|
spec.spec_files = FileList['spec/**/*_spec.rb']
|
|
|
|
end
|
|
|
|
|
2009-11-23 00:37:11 +01:00
|
|
|
Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
|
|
|
|
t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
|
2009-10-23 02:25:15 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
task :spec => :check_dependencies
|
|
|
|
|
2009-12-04 00:14:55 +01:00
|
|
|
task :default => [:cucumber, :spec]
|