diff options
| author | Nicolas Despres | 2012-01-22 22:12:39 +0100 |
|---|---|---|
| committer | Jack Nagel | 2012-02-01 22:16:47 -0600 |
| commit | 212927ee54cfcee0384ae3cac91e97516a5a02f8 (patch) | |
| tree | eac3f2de1c8bfcf735cc8469e9a350eb5d3c6432 | |
| parent | 5cc4b1c991e86fa32d637653ace8b1e342647536 (diff) | |
| download | brew-212927ee54cfcee0384ae3cac91e97516a5a02f8.tar.bz2 | |
Pathname: remove trailing spaces
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index f7a45ebac..4ab94a502 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -84,7 +84,7 @@ class Pathname raise unless e.errno == Errno::ENOTEMPTY::Errno or e.errno == Errno::EACCES::Errno false end - + def chmod_R perms require 'fileutils' FileUtils.chmod_R perms, to_s @@ -139,7 +139,7 @@ class Pathname # eg. ruby-1.9.1-p243 /-((\d+\.)*\d\.\d+-(p|rc|RC)?\d+)$/.match stem return $1 if $1 - + # eg. lame-398-1 /-((\d)+-\d)/.match stem return $1 if $1 @@ -185,7 +185,7 @@ class Pathname nil end - + def incremental_hash(hasher) incr_hash = hasher.new self.open('r') do |f| @@ -200,12 +200,12 @@ class Pathname require 'digest/md5' incremental_hash(Digest::MD5) end - + def sha1 require 'digest/sha1' incremental_hash(Digest::SHA1) end - + def sha2 require 'digest/sha2' incremental_hash(Digest::SHA2) |
