Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Hide deprecated toplevel items and implementation details from RDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Jun 29, 2011
1 parent 6e3c542 commit 1bf0a8b
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 16 deletions.
4 changes: 4 additions & 0 deletions lib/rake.rb
Expand Up @@ -23,7 +23,9 @@

require 'rake/version'

# :stopdoc:
RAKEVERSION = Rake::VERSION
# :startdoc:

require 'rbconfig'
require 'fileutils'
Expand Down Expand Up @@ -59,6 +61,8 @@

$trace = false

# :stopdoc:
#
# Some top level Constants.

FileList = Rake::FileList
Expand Down
1 change: 1 addition & 0 deletions lib/rake/clean.rb
Expand Up @@ -13,6 +13,7 @@

require 'rake'

# :stopdoc:
CLEAN = Rake::FileList["**/*~", "**/*.bak", "**/core"]
CLEAN.clear_exclude.exclude { |fn|
fn.pathmap("%f") == 'core' && File.directory?(fn)
Expand Down
16 changes: 10 additions & 6 deletions lib/rake/contrib/publisher.rb
@@ -1,15 +1,19 @@
# Copyright 2003-2010 by Jim Weirich (jim.weirich@gmail.com)
# All rights reserved.

# :stopdoc:

# Configuration information about an upload host system.
# * name :: Name of host system.
# * webdir :: Base directory for the web information for the
# application. The application name (APP) is appended to
# this directory before using.
# * pkgdir :: Directory on the host system where packages can be
# placed.
# name :: Name of host system.
# webdir :: Base directory for the web information for the
# application. The application name (APP) is appended to
# this directory before using.
# pkgdir :: Directory on the host system where packages can be
# placed.
HostInfo = Struct.new(:name, :webdir, :pkgdir)

# :startdoc:

# Manage several publishers as a single entity.
class CompositePublisher
def initialize
Expand Down
7 changes: 6 additions & 1 deletion lib/rake/dsl_definition.rb
Expand Up @@ -2,6 +2,11 @@
require 'rake/file_utils_ext'

module Rake

##
# DSL is a module that provides #task, #desc, #namespace, etc. Use this
# when you'd like to use rake outside the top level scope.

module DSL

#--
Expand Down Expand Up @@ -141,7 +146,7 @@ def import(*fns)
end
end

module DeprecatedObjectDSL
module DeprecatedObjectDSL # :nodoc:
Commands = Object.new.extend DSL
DSL.private_instance_methods(false).each do |name|
line = __LINE__+1
Expand Down
6 changes: 3 additions & 3 deletions lib/rake/ext/time.rb
@@ -1,6 +1,6 @@
# ###########################################################################
#--
# Extensions to time to allow comparisons with an early time class.
#

class Time
alias rake_original_time_compare :<=>
def <=>(other)
Expand All @@ -10,5 +10,5 @@ def <=>(other)
rake_original_time_compare(other)
end
end
end # class Time
end

9 changes: 4 additions & 5 deletions lib/rake/file_utils.rb
@@ -1,10 +1,9 @@
require 'rbconfig'
require 'fileutils'

# ###########################################################################
#--
# This a FileUtils extension that defines several additional commands to be
# added to the FileUtils utility functions.
#
module FileUtils
# Path to the currently running Ruby program
RUBY = File.join(
Expand Down Expand Up @@ -47,7 +46,7 @@ def sh(*cmd, &block)
end
end

def create_shell_runner(cmd)
def create_shell_runner(cmd) # :nodoc:
show_command = cmd.join(" ")
show_command = show_command[0,42] + "..." unless $trace
lambda { |ok, status|
Expand All @@ -56,7 +55,7 @@ def create_shell_runner(cmd)
end
private :create_shell_runner

def set_verbose_option(options)
def set_verbose_option(options) # :nodoc:
unless options.key? :verbose
options[:verbose] =
Rake::FileUtilsExt.verbose_flag == Rake::FileUtilsExt::DEFAULT ||
Expand All @@ -65,7 +64,7 @@ def set_verbose_option(options)
end
private :set_verbose_option

def rake_system(*cmd)
def rake_system(*cmd) # :nodoc:
Rake::AltSystem.system(*cmd)
end
private :rake_system
Expand Down
2 changes: 2 additions & 0 deletions lib/rake/gempackagetask.rb
Expand Up @@ -7,6 +7,8 @@

require 'rake'

# :stopdoc:

module Rake
GemPackageTask = Gem::PackageTask
end
Expand Down
2 changes: 2 additions & 0 deletions lib/rake/rdoctask.rb
Expand Up @@ -13,6 +13,8 @@
rescue LoadError, Gem::LoadError
end

# :stopdoc:

if defined?(RDoc::Task) then
module Rake
RDocTask = RDoc::Task unless const_defined? :RDocTask
Expand Down
2 changes: 1 addition & 1 deletion lib/rake/version.rb
@@ -1,7 +1,7 @@
module Rake
VERSION = '0.9.2'

module Version
module Version # :nodoc: all
MAJOR, MINOR, BUILD = VERSION.split '.'
NUMBERS = [ MAJOR, MINOR, BUILD ]
end
Expand Down

0 comments on commit 1bf0a8b

Please sign in to comment.