Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

yard for rdoc

  • Loading branch information...
commit 8f091e8d75d83840b3b65f9d054f03c2e7c4b172 1 parent 4fef04a
@robertwahler authored
Showing with 9 additions and 3 deletions.
  1. +1 −0  .gitignore
  2. +4 −1 Rakefile
  3. +4 −2 spec/spec_helper.rb
View
1  .gitignore
@@ -3,6 +3,7 @@ pkg/*
.bundle
coverage
rdoc
+.yardoc
rerun.txt
tags
tmp/fixtures
View
5 Rakefile
@@ -29,7 +29,7 @@ end
namespace :doc do
- project_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
+ project_root = File.expand_path(File.dirname(__FILE__))
doc_destination = File.join(project_root, 'rdoc')
begin
@@ -41,6 +41,9 @@ namespace :doc do
yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
[ File.join(project_root, 'README.markdown') ]
yt.options = ['--output-dir', doc_destination, '--readme', 'README.markdown']
+ p yt.files
+ p "*********"
+ p yt.options
end
rescue LoadError
desc "Generate YARD Documentation [*LoadError*]"
View
6 spec/spec_helper.rb
@@ -1,5 +1,7 @@
-$LOAD_PATH.unshift File.expand_path('..', __FILE__)
-$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
+$LOAD_PATH.unshift File.expand_path('..', __FILE__) unless
+ $LOAD_PATH.include? File.expand_path('..', __FILE__)
+$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) unless
+ $LOAD_PATH.include? File.expand_path('../../lib', __FILE__)
require 'rubygems'
require 'basic_gem'
Please sign in to comment.
Something went wrong with that request. Please try again.