aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottles.rb
diff options
context:
space:
mode:
authorXu Cheng2015-06-04 21:35:05 +0800
committerXu Cheng2015-06-07 23:51:15 +0800
commit321d5e5c085de19e5a74182377dc3e2a60e05520 (patch)
tree3a1bef01eb118bba821ce55ad9ba1ba0263f9e33 /Library/Homebrew/bottles.rb
parent97fff0cd50b5a5c7dd082981de448d2fece7182c (diff)
downloadbrew-321d5e5c085de19e5a74182377dc3e2a60e05520.tar.bz2
bottles: new method bottle_resolve_vesrion
Diffstat (limited to 'Library/Homebrew/bottles.rb')
-rw-r--r--Library/Homebrew/bottles.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb
index 5a9b0aa22..ecbf70cc0 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"