2009-11-17 07:21:36 +01:00
|
|
|
require 'lib/middleman'
|
2009-10-23 02:25:15 +02:00
|
|
|
require 'rake'
|
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|
|
2010-09-06 19:59:51 +02:00
|
|
|
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"]
|
2009-10-23 02:25:15 +02:00
|
|
|
gem.rubyforge_project = "middleman"
|
2010-09-06 19:59:51 +02:00
|
|
|
gem.executables = %w(mm-init mm-build mm-server)
|
2010-09-05 05:26:48 +02:00
|
|
|
gem.add_dependency("rack", "~>1.0")
|
|
|
|
gem.add_dependency("thin", "~>1.2.0")
|
|
|
|
gem.add_dependency("shotgun", "~>0.8.0")
|
|
|
|
gem.add_dependency("templater", "~>1.0.0")
|
2010-09-11 18:39:09 +02:00
|
|
|
gem.add_dependency("tilt", "~>1.1")
|
2010-09-05 05:26:48 +02:00
|
|
|
gem.add_dependency("sinatra", "~>1.0")
|
2010-09-07 03:48:25 +02:00
|
|
|
gem.add_dependency("padrino-core", "~>0.9.0")
|
|
|
|
gem.add_dependency("padrino-helpers", "~>0.9.0")
|
2010-09-05 05:26:48 +02:00
|
|
|
gem.add_dependency("rack-test", "~>0.5.0")
|
|
|
|
gem.add_dependency("yui-compressor", "~>0.9.0")
|
|
|
|
gem.add_dependency("haml", "~>3.0")
|
|
|
|
gem.add_dependency("compass", "~>0.10.0")
|
|
|
|
gem.add_dependency("json_pure", "~>1.4.0")
|
|
|
|
gem.add_dependency("smusher", "~>0.4.5")
|
2010-09-06 04:28:38 +02:00
|
|
|
gem.add_dependency("compass-slickmap", "~>0.4.0")
|
2010-09-05 08:45:19 +02:00
|
|
|
# gem.add_dependency("livereload", "~>1.4.0")
|
2010-02-15 22:02:20 +01:00
|
|
|
|
2009-11-23 00:37:11 +01:00
|
|
|
gem.add_development_dependency("cucumber")
|
2010-02-15 22:02:20 +01:00
|
|
|
gem.add_development_dependency("jeweler")
|
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
|
|
|
|
|
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
|
|
|
|
|
2010-09-06 19:59:51 +02:00
|
|
|
task :default => :cucumber
|