resource: detect HEAD versions
This commit is contained in:
parent
9ac5836604
commit
8a968a0b60
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user