Top-level DSL methods only manipulate the stable spec

This commit is contained in:
Jack Nagel 2015-01-04 14:25:59 -05:00
parent 4398660cdd
commit 6eb0b3505b

View File

@ -807,14 +807,14 @@ class Formula
end end
# @!attribute [rw] url # @!attribute [rw] url
# The URL used to download the source for the currently active {SoftwareSpec}. # The URL used to download the source for the {#stable} version of the formula.
# We prefer `https` for security and proxy reasons. # We prefer `https` for security and proxy reasons.
def url val, specs={} def url val, specs={}
stable.url(val, specs) stable.url(val, specs)
end end
# @!attribute [w] version # @!attribute [w] version
# The version for the currently active {SoftwareSpec}. # The version string for the {#stable} version of the formula.
# The version is autodetected from the URL and/or tag so only needs to be # The version is autodetected from the URL and/or tag so only needs to be
# declared if it cannot be autodetected correctly. # declared if it cannot be autodetected correctly.
def version val=nil def version val=nil
@ -822,7 +822,7 @@ class Formula
end end
# @!attribute [rw] mirror # @!attribute [rw] mirror
# Additional {.url}s for the currently active {SoftwareSpec}. # Additional URLs for the {#stable} version of the formula.
# These are only used if the {.url} fails to download. It's optional and # These are only used if the {.url} fails to download. It's optional and
# there can be more than one. Generally we add them when the main {.url} # there can be more than one. Generally we add them when the main {.url}
# is unreliable. If {.url} is really unreliable then we may swap the # is unreliable. If {.url} is really unreliable then we may swap the