Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (27 sloc) 0.848 kB
f496146 @nofxx Rakefile
nofxx authored
1 require 'rubygems'
2 require 'rake'
3 require 'rake/clean'
4 require 'rake/rdoctask'
0178a68 @nofxx rspec 2 task fixed
nofxx authored
5 require 'rspec/core/rake_task'
f496146 @nofxx Rakefile
nofxx authored
6
7 CLEAN.include('**/*.gem')
8
31db515 @nofxx fix rdoc rake task
nofxx authored
9 desc "Creates the TicGit-ng gem"
f496146 @nofxx Rakefile
nofxx authored
10 task :create_gem => [:clean] do
11 spec = eval(IO.read('ticgit-ng.gemspec'))
12 gem = Gem::Builder.new(spec).build
13 Dir.mkdir("pkg") unless Dir.exists? "pkg"
14 FileUtils.mv("#{File.dirname(__FILE__)}/#{gem}", "pkg")
15 end
16
0178a68 @nofxx rspec 2 task fixed
nofxx authored
17 desc "Runs spec suite"
18 RSpec::Core::RakeTask.new(:spec) do |spec|
19 spec.pattern = 'spec/*_spec.rb'
20 spec.rspec_opts = ['--backtrace --colour']
21 end
22
31db515 @nofxx fix rdoc rake task
nofxx authored
23 desc "Creates rdoc documentation"
f496146 @nofxx Rakefile
nofxx authored
24 Rake::RDocTask.new do |rdoc|
25 version = File.exist?('VERSION') ? File.read('VERSION').chomp : ""
26 rdoc.rdoc_dir = 'rdoc'
31db515 @nofxx fix rdoc rake task
nofxx authored
27 rdoc.title = "TicGit-ng #{version}"
f496146 @nofxx Rakefile
nofxx authored
28 rdoc.rdoc_files.include('README*')
29 rdoc.rdoc_files.include('lib/**/*.rb')
30 end
31
32 task :default => :create_gem
Something went wrong with that request. Please try again.