diff options
| author | Jack Nagel | 2013-02-12 16:24:30 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-12 16:26:10 -0600 |
| commit | c4db67fc9b842de8d41706cfaf8860651d4360ec (patch) | |
| tree | a0bd2b4b700b904f592526937ac5c3d660f8c31b /Library/Homebrew/dependency_collector.rb | |
| parent | 017490917c760fcf400aee7e33a16f6e99a2525e (diff) | |
| download | homebrew-c4db67fc9b842de8d41706cfaf8860651d4360ec.tar.bz2 | |
Establish a convention for Requirement names
The name attribute of requirements is used when generating options for
the :optional and :recommended dependency tags.
Unless otherwise specified, the name attribute of a Requirement will be
populated by stripping any module prefixes from the beginning and
"Dependency" or "Requirement" from end of the class name and downcasing
the result.
Closes #17759.
Diffstat (limited to 'Library/Homebrew/dependency_collector.rb')
| -rw-r--r-- | Library/Homebrew/dependency_collector.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb index 2a40e1ad8..92450a771 100644 --- a/Library/Homebrew/dependency_collector.rb +++ b/Library/Homebrew/dependency_collector.rb @@ -85,9 +85,9 @@ private Dependency.new(spec.to_s, tag) when :x11 then X11Dependency.new(spec.to_s, tag) when :xcode then XcodeDependency.new(tag) - when :mysql then MysqlInstalled.new(tag) - when :postgresql then PostgresqlInstalled.new(tag) - when :tex then TeXInstalled.new(tag) + when :mysql then MysqlDependency.new(tag) + when :postgresql then PostgresqlDependency.new(tag) + when :tex then TeXDependency.new(tag) when :clt then CLTDependency.new(tag) else raise "Unsupported special dependency #{spec}" |
