diff --git a/Library/Homebrew/resource.rb b/Library/Homebrew/resource.rb index a11c295ab4ddb22abf381e8bc28457092ed4ac57..fe18f14ddcb59b66184d876d47dabd7ef636232e 100644 --- a/Library/Homebrew/resource.rb +++ b/Library/Homebrew/resource.rb @@ -159,7 +159,7 @@ class Resource case val when nil then Version.detect(url, specs) - when String then Version.new(val) + when String then Version.create(val) when Version then val else raise TypeError, "version '#{val.inspect}' should be a string"