aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/metafiles.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-07 17:49:07 -0500
committerJack Nagel2014-06-07 21:15:56 -0500
commit376b0556da574ffc3fb3ad00aa1d892801ed5ad0 (patch)
tree9ee0f7b0b2866f00ce12be75434af6e84259b3e7 /Library/Homebrew/metafiles.rb
parent8718b62113b30b34a6a2acfc28277477fae237e3 (diff)
downloadhomebrew-376b0556da574ffc3fb3ad00aa1d892801ed5ad0.tar.bz2
Eliminate FORMULA_META_FILES constant
Diffstat (limited to 'Library/Homebrew/metafiles.rb')
-rw-r--r--Library/Homebrew/metafiles.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/metafiles.rb b/Library/Homebrew/metafiles.rb
index 37e646bb5..a6a265292 100644
--- a/Library/Homebrew/metafiles.rb
+++ b/Library/Homebrew/metafiles.rb
@@ -5,12 +5,12 @@ class Metafiles
news notes notice readme todo
]
- def should_list? file
- return false if %w[.DS_Store INSTALL_RECEIPT.json].include? file
+ def self.list?(file)
+ return false if %w[.DS_Store INSTALL_RECEIPT.json].include?(file)
!copy?(file)
end
- def should_copy?(path)
+ def self.copy?(path)
path = path.to_s.downcase
ext = File.extname(path)