From 212927ee54cfcee0384ae3cac91e97516a5a02f8 Mon Sep 17 00:00:00 2001 From: Nicolas Despres Date: Sun, 22 Jan 2012 22:12:39 +0100 Subject: [PATCH] Pathname: remove trailing spaces Signed-off-by: Jack Nagel --- Library/Homebrew/extend/pathname.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index f7a45ebac2..4ab94a502b 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)