aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rake/file_list.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-15 03:07:37 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-15 03:07:37 +0000
commit6361928083d01906ab9d8782b6533b4ed7c834a0 (patch)
tree172488be8a74c9313d35b9cd7d53999cd55f561d /lib/rake/file_list.rb
parent031e1570b934d6b3a1e17ae8eb78a44dac8186d3 (diff)
downloadruby-6361928083d01906ab9d8782b6533b4ed7c834a0.tar.gz
* lib/rake.rb, lib/rake/*.rb: Upgrade to rake-10.3.2
[fix GH-668] * test/rake/*.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rake/file_list.rb')
-rw-r--r--lib/rake/file_list.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/rake/file_list.rb b/lib/rake/file_list.rb
index f32b8c62a4..b01dbbb341 100644
--- a/lib/rake/file_list.rb
+++ b/lib/rake/file_list.rb
@@ -2,10 +2,10 @@ require 'rake/cloneable'
require 'rake/file_utils_ext'
require 'rake/pathmap'
-######################################################################
+
module Rake
- # #########################################################################
+ ##
# A FileList is essentially an array with a few helper methods defined to
# make file manipulation a bit easier.
#
@@ -156,7 +156,6 @@ module Rake
self
end
-
# Clear all the exclude patterns so that we exclude nothing.
def clear_exclude
@exclude_patterns = []
@@ -164,7 +163,7 @@ module Rake
self
end
- # Define equality.
+ # A FileList is equal through array equality.
def ==(array)
to_ary == array
end
@@ -208,7 +207,7 @@ module Rake
self
end
- def resolve_add(fn)
+ def resolve_add(fn) # :nodoc:
case fn
when %r{[*?\[\{]}
add_matching(fn)
@@ -218,7 +217,7 @@ module Rake
end
private :resolve_add
- def resolve_exclude
+ def resolve_exclude # :nodoc:
reject! { |fn| excluded_from_list?(fn) }
self
end
@@ -276,7 +275,6 @@ module Rake
collect { |fn| fn.ext(newext) }
end
-
# Grep each of the files in the filelist using the given pattern. If a
# block is given, call the block on each matching line, passing the file
# name, line number, and the matching line of text. If no block is given,
@@ -377,7 +375,7 @@ module Rake
proc { |fn| fn =~ /(^|[\/\\])core$/ && ! File.directory?(fn) }
]
- def import(array)
+ def import(array) # :nodoc:
@items = array
self
end