2013-08-03 20:02:10 -07:00
|
|
|
class BottleVersion < Version
|
|
|
|
def self._parse spec
|
|
|
|
spec = Pathname.new(spec) unless spec.is_a? Pathname
|
|
|
|
stem = spec.stem
|
|
|
|
|
2013-08-03 20:03:40 -07:00
|
|
|
# e.g. perforce-2013.1.610569-x86_64
|
|
|
|
m = /-([\d\.]+-x86(_64)?)/.match(stem)
|
|
|
|
return m.captures.first unless m.nil?
|
|
|
|
|
2013-08-03 20:02:10 -07:00
|
|
|
super
|
|
|
|
end
|
|
|
|
end
|