Silence more warnings

This commit is contained in:
Jack Nagel 2013-12-09 15:15:53 -06:00
parent bac0536730
commit 5e0a8668fb
2 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ module Superenv
# done on the singleton class, because in MRI all ENV methods are defined # done on the singleton class, because in MRI all ENV methods are defined
# on its singleton class, precluding the use of extend. # on its singleton class, precluding the use of extend.
class << base class << base
alias_method :"old_[]", :[]
def [] key def [] key
if has_key? key if has_key? key
fetch(key) fetch(key)

View File

@ -97,6 +97,7 @@ class Bottle < SoftwareSpec
@revision = 0 @revision = 0
@prefix = '/usr/local' @prefix = '/usr/local'
@cellar = '/usr/local/Cellar' @cellar = '/usr/local/Cellar'
@root_url = nil
end end
# Checksum methods in the DSL's bottle block optionally take # Checksum methods in the DSL's bottle block optionally take