Skip to content

Commit

Permalink
fix rdoc rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
nofxx committed Mar 22, 2011
1 parent 0178a68 commit 31db515
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1 +1,3 @@
*.gem *.gem
rdoc/
pkg/
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require 'rspec/core/rake_task'


CLEAN.include('**/*.gem') CLEAN.include('**/*.gem')


desc "Creates the TicGit gem" desc "Creates the TicGit-ng gem"
task :create_gem => [:clean] do task :create_gem => [:clean] do
spec = eval(IO.read('ticgit-ng.gemspec')) spec = eval(IO.read('ticgit-ng.gemspec'))
gem = Gem::Builder.new(spec).build gem = Gem::Builder.new(spec).build
Expand All @@ -20,10 +20,11 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = ['--backtrace --colour'] spec.rspec_opts = ['--backtrace --colour']
end end


desc "Creates rdoc documentation"
Rake::RDocTask.new do |rdoc| Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION').chomp : "" version = File.exist?('VERSION') ? File.read('VERSION').chomp : ""
rdoc.rdoc_dir = 'rdoc' rdoc.rdoc_dir = 'rdoc'
rdoc.title = "postgis_adapter #{version}" rdoc.title = "TicGit-ng #{version}"
rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('lib/**/*.rb')
end end
Expand Down

0 comments on commit 31db515

Please sign in to comment.