From cf72e942b6319d6f27867812e13e118b6d8bc9d3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 19 Feb 2015 12:56:31 +0000 Subject: [PATCH] bottles: add Bintray package naming method. --- Library/Homebrew/bottles.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/bottles.rb b/Library/Homebrew/bottles.rb index 6e4482b7c4..afa3fe2f6b 100644 --- a/Library/Homebrew/bottles.rb +++ b/Library/Homebrew/bottles.rb @@ -47,6 +47,10 @@ def bottle_filename_formula_name filename end class Bintray + def self.package(formula_name) + formula_name.to_s.gsub "+", "x" + end + def self.repository(tap=nil) return "bottles" if tap.to_s.empty? "bottles-#{tap.sub(/^homebrew\/(homebrew-)?/i, "")}"