forked from klaas1979/ivy4r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
36 lines (30 loc) · 913 Bytes
/
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
require "rubygems"
require "bundler"
require "rake"
require "rake/testtask"
Bundler.require(:default, :development)
$:.unshift File.join(File.dirname(__FILE__),'lib')
require "ivy4r"
# Todo
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec){|spec| spec.pattern='spec*/**/*spec*.rb'}
task :default => :spec
task :build do
system "gem build ivy4r.gemspec"
end
task :release => :build do
system "gem push ivy4r-#{Ivy4r::VERSION}.gem"
end
# Todo
begin
require "hanna/rdoctask"
Rake::RDocTask.new do |t|
t.title = "Ivy4r - Ruby interface to Apache Ivy dependency management with integration for Buildr and Rake"
t.rdoc_dir = "doc"
t.rdoc_files.include("**/*.rdoc").include("lib/**/*.rb")
t.options << "--line-numbers"
t.options << "--webcvs=http://github.com/pepijnve/ivy4r/tree/master/"
end
rescue LoadError
puts "'gem install hanna' to generate documentation"
end