From 321d5e5c085de19e5a74182377dc3e2a60e05520 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 4 Jun 2015 21:35:05 +0800 Subject: [PATCH] bottles: new method bottle_resolve_vesrion --- Library/Homebrew/bottles.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 5a9b0aa22d..ecbf70cc0f 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -57,6 +57,10 @@ def bottle_resolve_formula_names bottle_file [name, full_name] end +def bottle_resolve_version bottle_file + Version.new bottle_receipt_path(bottle_file).split("/")[1] +end + class Bintray def self.package(formula_name) formula_name.to_s.gsub "+", "x"