Skip to content

Commit

Permalink
resource: detect HEAD versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vladshablinsky authored and xu-cheng committed Jul 16, 2016
1 parent 9ac5836 commit 8a968a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def detect_version(val)

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"
Expand Down

0 comments on commit 8a968a0

Please sign in to comment.