Skip to content

Loading…

Add RDoc Rake task. #28

Closed
wants to merge 2 commits into from

2 participants

@robyoung26

Updated .gitignore.
Contributes towards #26.

robyoung26 added some commits
@robyoung26 robyoung26 Updated .gitignore.
To exclude documentation directory, amongst other things.
c305549
@robyoung26 robyoung26 Added RDoc task to Rakefile.
rake rdoc
f526052
@robyoung26 robyoung26 closed this
@seanslerner seanslerner commented on the diff
((5 lines not shown))
+task default: :spec
+
+require 'rdoc/task'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "helloworld #{version}"
@seanslerner Owner

should this be changed to rdoc.title = "Jammed #{version}"

yep - I should get some sleep!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 18, 2012
  1. @robyoung26

    Updated .gitignore.

    robyoung26 committed
    To exclude documentation directory, amongst other things.
  2. @robyoung26

    Added RDoc task to Rakefile.

    robyoung26 committed
    rake rdoc
Showing with 17 additions and 2 deletions.
  1. +6 −1 .gitignore
  2. +11 −1 Rakefile
View
7 .gitignore
@@ -1 +1,6 @@
-Gemfile.lock
+coverage
+rdoc
+pkg/*
+*.gem
+.bundle
+Gemfile.lock
View
12 Rakefile 100644 → 100755
@@ -31,4 +31,14 @@ Jeweler::RubygemsDotOrgTasks.new
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
-task default: :spec
+task default: :spec
+
+require 'rdoc/task'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "helloworld #{version}"
@seanslerner Owner

should this be changed to rdoc.title = "Jammed #{version}"

yep - I should get some sleep!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
Something went wrong with that request. Please try again.