From 53d6f617d7246a40c8991653a6b166ec320880c2 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 19 Oct 2009 01:43:57 +0100 Subject: [PATCH] Allow formula names with '+' in them HFS+ handles the + fine. However the Ruby class name needs a s/+/x/g. I acknowledge that supporting + will make it harder to port to certain other filesystems. However that's your challenge! :D --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 4330b812f7..6fa22feae2 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -181,7 +181,7 @@ class Formula def self.class_s name #remove invalid characters and camelcase - name.capitalize.gsub(/[-_\s]([a-zA-Z0-9])/) { $1.upcase } + name.capitalize.gsub(/[-_\s]([a-zA-Z0-9])/) { $1.upcase }.gsub('+', 'x') end def self.factory name