-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
69 lines (60 loc) · 2.27 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
require 'rubygems'
require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "tempatra"
gem.summary = %Q{A basic Sinatra application generator.}
gem.description = %Q{A basic Sinatra application generator providing Blueprint CSS, jQuery, Haml, Sass, Compass, RSpec, Cucumber, and Capybara.}
gem.email = "olauzon@gmail.com"
gem.homepage = "http://github.com/olauzon/tempatra"
gem.authors = ["Olivier Lauzon", "Stewart Laufer"]
gem.add_dependency('compass', '~> 0.10.5')
gem.add_dependency('cucumber', '~> 0.8.5')
gem.add_dependency('haml', '~> 3.0.18')
gem.add_dependency('rack-test', '~> 0.5.4')
gem.add_dependency('rdiscount', '~> 1.6.5')
gem.add_dependency('rspec', '~> 1.3.0')
gem.add_dependency('rubigen', '~> 1.5.5')
gem.add_dependency('sinatra', '~> 1.0')
gem.add_dependency('shotgun', '~> 0.8')
gem.add_dependency('thin', '~> 1.2.7')
gem.add_dependency('capybara', '~> 0.3.9')
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
gem.files = FileList[ 'app_generators/**/*',
'bin/*',
'lib/**/*.rb',
'[A-Z]*',
'spec/**/*'].to_a.reject { |f| f =~ /^spec\/tmp|^Gemfile/ }
gem.test_files = FileList['spec/**/*'].to_a.reject { |f| f =~ /^spec\/tmp/ }
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end
Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
spec.rcov_opts = lambda do
IO.readlines(File.dirname(__FILE__) + "/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
end
end
task :spec => :check_dependencies
task :default => :spec
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "tempatra #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end