Bottle: set version from stable spec.

This commit is contained in:
Mike McQuaid 2013-09-27 09:22:15 +01:00
parent f17289f708
commit e4b6fc5ae0
2 changed files with 2 additions and 1 deletions

View File

@ -698,6 +698,7 @@ class Formula
return @bottle unless block_given? return @bottle unless block_given?
@bottle ||= create_spec(Bottle) @bottle ||= create_spec(Bottle)
@bottle.instance_eval(&block) @bottle.instance_eval(&block)
@bottle.version = @stable.version
end end
def devel &block def devel &block

View File

@ -79,7 +79,7 @@ end
class Bottle < SoftwareSpec class Bottle < SoftwareSpec
attr_rw :root_url, :prefix, :cellar, :revision attr_rw :root_url, :prefix, :cellar, :revision
def_delegators :@resource, :url= def_delegators :@resource, :version=, :url=
def initialize def initialize
super super