2009-11-17 01:21:36 -05:00
|
|
|
require 'lib/middleman'
|
2009-10-22 20:25:15 -04:00
|
|
|
require 'rake'
|
2009-11-22 18:37:11 -05:00
|
|
|
require 'spec/rake/spectask'
|
2009-11-10 14:41:17 -05:00
|
|
|
require 'cucumber/rake/task'
|
2009-10-22 20:25:15 -04: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)
|
2009-12-03 19:07:31 -05:00
|
|
|
gem.add_dependency("rack")
|
2009-10-22 20:25:15 -04:00
|
|
|
gem.add_dependency("thin")
|
2010-02-15 16:02:20 -05:00
|
|
|
|
|
|
|
gem.add_dependency("shotgun")
|
|
|
|
gem.add_dependency("templater")
|
|
|
|
gem.add_dependency("sprockets")
|
2010-03-28 21:33:57 -04:00
|
|
|
gem.add_dependency("sinatra", ">=1.0")
|
2010-02-15 16:02:20 -05:00
|
|
|
gem.add_dependency("sinatra-content-for")
|
|
|
|
gem.add_dependency("rack-test")
|
|
|
|
gem.add_dependency("yui-compressor")
|
2010-04-28 17:02:48 -04:00
|
|
|
gem.add_dependency("haml", ">=3.0.0.rc.1")
|
2010-04-18 15:08:08 -04:00
|
|
|
gem.add_dependency("compass", ">=0.10.0.rc3")
|
2010-02-15 16:02:20 -05:00
|
|
|
gem.add_dependency("fancy-buttons")
|
|
|
|
gem.add_dependency("json_pure")
|
|
|
|
gem.add_dependency("smusher")
|
|
|
|
gem.add_dependency("compass-slickmap")
|
|
|
|
|
2009-11-22 18:37:11 -05:00
|
|
|
gem.add_development_dependency("rspec")
|
|
|
|
gem.add_development_dependency("cucumber")
|
2010-02-15 16:02:20 -05:00
|
|
|
gem.add_development_dependency("jeweler")
|
2009-10-22 20:25:15 -04: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-22 18:37:11 -05: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-22 20:25:15 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
task :spec => :check_dependencies
|
|
|
|
|
2009-12-03 18:14:55 -05:00
|
|
|
task :default => [:cucumber, :spec]
|