This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
53 lines (46 loc) · 1.6 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
require 'rubygems'
require 'rake'
require File.join(File.dirname(__FILE__), *%w[lib nachos version])
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.version = Nachos::VERSION
gem.name = "nachos"
gem.summary = %Q{Nachos - sync and stuff with Github}
gem.description = %Q{Because everyone loves Nachos!}
gem.email = "rsanheim@gmail.com"
gem.homepage = "http://github.com/rsanheim/nachos"
gem.authors = ["Rob Sanheim"]
gem.add_dependency "octopussy"
# may want to vendor this...could conflict with the manual install folks
gem.add_dependency "git-hub", "1.4.1"
gem.add_development_dependency "rspec", "~> 2.1"
gem.add_development_dependency "faker"
gem.add_development_dependency "mocha"
gem.add_development_dependency "fakeweb"
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
if RUBY_VERSION <= "1.8.7"
RSpec::Core::RakeTask.new(:coverage) do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,/Library/Ruby/*,config/*" --text-summary --sort coverage]
spec.rcov = true
end
else
task :coverage => :spec
end
task :spec => :check_dependencies
task :default => [:check_dependencies, :coverage]
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "nachos #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end