roll back stricter version check

This commit is contained in:
Adam Vandenberg 2012-03-10 10:02:05 -08:00
parent cef5429f93
commit 715f808421

View File

@ -52,7 +52,9 @@ class Formula
set_instance_variable 'version'
# Otherwise detect the version from the URL
@version ||= @spec_to_use.detect_version
validate_variable :version
# Only validate if a version was set; GitHubGistFormula needs to get
# the URL to determine the version
validate_variable :version if @version
CHECKSUM_TYPES.each { |type| set_instance_variable type }