forked from zachinglis/crummy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
44 lines (40 loc) · 1.26 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
require 'rubygems'
require 'rake'
desc 'Default: run unit tests.'
task :default => :test
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "crummy"
gem.summary = %Q{Tasty breadcrumbs!}
gem.description = %Q{Crummy is a simple and tasty way to add breadcrumbs to your Rails applications.}
gem.email = "[email protected]"
gem.homepage = "http://github.com/zachinglis/crummy"
gem.authors = ["Zach Inglis"]
gem.files = FileList['lib/**/*.rb','tasks/*.rake','init.rb','MIT-LICENSE','Rakefile','README.textile','VERSION', '.gitignore']
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
require 'rake/testtask'
desc 'Test the crummy plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
begin
gem 'hanna'
require 'hanna/rdoctask'
rescue LoadError
require 'rake/rdoctask'
end
desc 'Generate documentation for the crummy plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Crummy: Tasty Breadcrumbs'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.textile')
rdoc.rdoc_files.include('lib/**/*.rb')
end