Permalink
Browse files

Add 'rdoc' task, and cleanup some of the RDoc

  • Loading branch information...
1 parent 3b5712b commit 00e96c87c5f6464a55d63a68899c6c4f0f598bb3 @maccman committed Dec 22, 2009
View
@@ -1 +1,2 @@
pkg
+rdoc
View
@@ -18,4 +18,14 @@ end
task :write_version do
require File.join(File.dirname(__FILE__), *%w[lib bowline])
File.open('VERSION', 'w') {|f| f.write Bowline::Version::STRING }
+end
+
+require 'rake/rdoctask'
+desc "Generate documentation for Bowline."
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = "rdoc"
+ rdoc.title = "Bowline"
+ rdoc.options << "--line-numbers" << "--inline-source"
+ rdoc.rdoc_files.include("README.txt")
+ rdoc.rdoc_files.include("lib/**/*.rb")
end
@@ -1,4 +1,4 @@
-module Dependencies #:nodoc:
+module Dependencies #:nodoc: all
end
Dir[File.join(File.dirname(__FILE__), 'dependencies', '*.rb')].each do |file|
@@ -22,7 +22,7 @@
end
end)
-class ::Gem::Uninstaller
+class ::Gem::Uninstaller #:nodoc:
def self._with_silent_ui
ui = Gem::DefaultUserInteraction.ui
@@ -64,7 +64,7 @@ def self._uninstall_others(source_index, name, version)
)
end)
-class ::Gem::DependencyInstaller
+class ::Gem::DependencyInstaller #:nodoc:
alias old_fg find_gems_with_sources
def find_gems_with_sources(dep)
@@ -78,7 +78,7 @@ def find_gems_with_sources(dep)
end
end
-class ::Gem::SpecFetcher
+class ::Gem::SpecFetcher #:nodoc:
alias old_fetch fetch
def fetch(*args) # in rubygems 1.3.2 fetch takes 4 parameters
dependency, all, matching_platform, prerelease = *args
@@ -102,7 +102,7 @@ def fetch(*args) # in rubygems 1.3.2 fetch takes 4 parameters
end
end
-class ::Gem::Specification
+class ::Gem::Specification #:nodoc:
def recursive_dependencies(from, index = Gem.source_index)
specs = self.runtime_dependencies.map do |dep|
spec = index.search(dep).last
@@ -94,7 +94,8 @@ class Window
# :singleton-method: close
# Close this window. Once a window is closed, either by a user or
# by calling this method, it has been deallocated and may not be opened again.
- # You'll need to create a new instance of this class for a new window.
+ #
+ # You'll need to create a new instance of this class for a new window.
# Calling any methods on a dealocated window won't have any effect.
##
@@ -8,7 +8,7 @@ module Generators #:nodoc:
desc <<-DESC
Generate components for your application or entirely new applications.
DESC
- class Generator < Templater::Generator
+ class Generator < Templater::Generator #:nodoc:
def with_modules(modules, options={}, &block)
indent = options[:indent] || 0
text = capture(&block)

0 comments on commit 00e96c8

Please sign in to comment.