forked from saimonmoore/craken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
50 lines (42 loc) · 1.32 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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'spec/rake/spectask'
desc 'Default: run unit tests.'
task :default => :spec
desc 'Generate documentation for the craken plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Craken'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
desc "Run all specs"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = FileList['spec']
t.libs << 'lib'
end
namespace :gem do
begin
require 'jeweler'
gem_name = 'craken'
Jeweler::Tasks.new do |gem|
gem.name = gem_name
gem.summary = 'Craken gem'
gem.files = Dir['{lib}/**/*', '{tasks}/**/*', '{recipes}/**/*','init.rb','MIT-LICENSE', 'README.rdoc']
gem.author = 'Doug McInnes'
gem.email = '[email protected]'
gem.description = 'A Rails plugin for managing and installing rake-centric crontab files.'
gem.homepage = 'http://www.github.com/latimes/craken'
# other fields that would normally go in your gemspec also be included here
end
rescue
puts 'Jeweler or one of its dependencies is not installed.'
end
task :uninstall do
sh "gem uninstall #{gem_name}"
end
task :reinstall =>[:uninstall,:install]
end