diff options
| author | Jack Nagel | 2012-08-19 19:25:15 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-19 19:25:15 -0500 |
| commit | 1d365272693d049c7fa0177a676cfcb8d2abc898 (patch) | |
| tree | 42fcaed95c73fb4acc17ea12c8ad279db3571fec /Library/Formula | |
| parent | 91cac2624f16c033b93f5ec308fe8255a2f820a5 (diff) | |
| download | homebrew-1d365272693d049c7fa0177a676cfcb8d2abc898.tar.bz2 | |
scalate: use Pathname#find instead of loading Find
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/scalate.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Library/Formula/scalate.rb b/Library/Formula/scalate.rb index 87f93d945..58c9f5e9d 100644 --- a/Library/Formula/scalate.rb +++ b/Library/Formula/scalate.rb @@ -1,5 +1,4 @@ require 'formula' -require 'find' class Scalate < Formula homepage 'http://scalate.fusesource.org/' @@ -19,11 +18,7 @@ class Scalate < Formula # Recursively fix the permissions of extracted regular files # excluding the bin directory contents. %w{ archetypes docs lib samples license.txt readme.html }.each do |name| - Find.find(name) do |path| - if File.file?(path) - File.chmod(0644, path) - end - end + Pathname.new(name).find { |path| path.chmod(0644) if path.file? } end prefix.install %w{ license.txt readme.html } |
