forked from jasoncodes/hassle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
48 lines (42 loc) · 1.5 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
require 'rubygems'
require 'bundler'
Bundler.setup
require 'rake'
require 'spec/rake/spectask'
desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
t.spec_files = FileList['spec/*_spec.rb']
end
begin
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:cucumber) do |t|
t.cucumber_opts = "--format pretty"
end
rescue LoadError
desc 'Cucumber rake task not available'
task :features do
abort 'Cucumber rake task is not available. Be sure to install cucumber as a gem or plugin'
end
end
task :default => [:spec, :cucumber]
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "hassle"
gem.summary = "Make Sass less of a hassle."
gem.description = "Makes Sass less of a hassle on read-only filesystems by compiling and serving it up for you."
gem.homepage = "http://github.com/pedro/hassle"
gem.authors = ["Pedro Belo", "Nick Quaranto"]
gem.files = FileList["LICENSE", "README.textile", "lib/hassle.rb", "init.rb"]
gem.add_dependency('rack')
gem.add_dependency('haml')
gem.add_development_dependency('rspec', '~> 1.0')
gem.add_development_dependency('cucumber')
gem.add_development_dependency('rack-test')
gem.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if gem.respond_to? :required_rubygems_version=
end
Jeweler::RubyforgeTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end