mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rake: Update rake to fix some bugs and hide deprecated features
from RDoc. * lib/rake/version.rb: Bump version to 0.9.2.1 to distinguish it from the released version. * NEWS: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
84ece95163
commit
2619f216fe
19 changed files with 170 additions and 84 deletions
|
|
@ -2,11 +2,18 @@
|
|||
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
|
||||
|
||||
#--
|
||||
# Include the FileUtils file manipulation functions in the top
|
||||
# level module, but mark them private so that they don't
|
||||
# unintentionally define methods on other objects.
|
||||
#++
|
||||
|
||||
include FileUtilsExt
|
||||
private(*FileUtils.instance_methods(false))
|
||||
|
|
@ -139,7 +146,7 @@ module Rake
|
|||
end
|
||||
end
|
||||
|
||||
module DeprecatedObjectDSL
|
||||
module DeprecatedObjectDSL # :nodoc:
|
||||
Commands = Object.new.extend DSL
|
||||
DSL.private_instance_methods(false).each do |name|
|
||||
line = __LINE__+1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue