aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-06-07 17:47:45 -0500
committerJack Nagel2014-06-07 21:15:55 -0500
commitfef866aae4f13d2789d156de33fce1ab1e99db5f (patch)
tree01b3f97068e70c811eaa535d6ec1a02b7c066ce1 /Library/Homebrew
parent3aa75f5e18fa2cde5cf4bfe5974fb700edc63114 (diff)
downloadbrew-fef866aae4f13d2789d156de33fce1ab1e99db5f.tar.bz2
metafiles: combine #should_copy? and #include?
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/metafiles.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/Library/Homebrew/metafiles.rb b/Library/Homebrew/metafiles.rb
index ffa2036f2..37e646bb5 100644
--- a/Library/Homebrew/metafiles.rb
+++ b/Library/Homebrew/metafiles.rb
@@ -5,18 +5,12 @@ class Metafiles
news notes notice readme todo
]
- def should_copy? file
- include? file
- end
-
def should_list? file
return false if %w[.DS_Store INSTALL_RECEIPT.json].include? file
- not include? file
+ !copy?(file)
end
- private
-
- def include?(path)
+ def should_copy?(path)
path = path.to_s.downcase
ext = File.extname(path)