From 8a968a0b60dbc78f9f48be76762c9f050fa6416d Mon Sep 17 00:00:00 2001 From: Vlad Shablinsky <vladshablinsky@gmail.com> Date: Sat, 18 Jun 2016 20:56:01 +0300 Subject: [PATCH] resource: detect HEAD versions --- Library/Homebrew/resource.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/resource.rb b/Library/Homebrew/resource.rb index a11c295ab4..fe18f14ddc 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" -- GitLab