aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-12-09 15:15:53 -0600
committerJack Nagel2013-12-09 15:15:53 -0600
commit6e8a3c2bd4ba73884e8a5af986410833a29ce9db (patch)
treecdb37320ff4b5b756e505beec0c3d6c9ec3746b2 /Library/Homebrew
parent29c00f58db2422db63f725fe71984f04c175dbcb (diff)
downloadhomebrew-6e8a3c2bd4ba73884e8a5af986410833a29ce9db.tar.bz2
Silence more warnings
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/extend/ENV/super.rb1
-rw-r--r--Library/Homebrew/software_spec.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index 57d07c637..1afc94a0d 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -28,6 +28,7 @@ module Superenv
# done on the singleton class, because in MRI all ENV methods are defined
# on its singleton class, precluding the use of extend.
class << base
+ alias_method :"old_[]", :[]
def [] key
if has_key? key
fetch(key)
diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb
index 010d4ef83..181111540 100644
--- a/Library/Homebrew/software_spec.rb
+++ b/Library/Homebrew/software_spec.rb
@@ -97,6 +97,7 @@ class Bottle < SoftwareSpec
@revision = 0
@prefix = '/usr/local'
@cellar = '/usr/local/Cellar'
+ @root_url = nil
end
# Checksum methods in the DSL's bottle block optionally take