aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formulary.rb
AgeCommit message (Collapse)Author
2014-06-20Pass the requested spec into the formula instanceJack Nagel
2014-06-15Handle illegal constant names when fetching remote formulaeJack Nagel
2014-06-14Revert "Only do formula class sanity checks once"Jack Nagel
This reverts commit ace78b1f3a59a893c7068e485555acf792470080. Fixes #30154.
2014-06-09Only do formula class sanity checks onceJack Nagel
2014-05-16Print debug messages to stderrGeoff Nixon
Closes #29294. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-02add commentAdam Vandenberg
2014-04-25Yield absolute paths from find_formulaJack Nagel
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes #28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-18Handle formula URLs with query parameters. This is useful for fetching ↵David Turner
formulas from cgit repositories, which uses ?h= to choose branches. Closes #28314. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-04-07Restore recursive tap searchJack Nagel
Fixes #28234.
2014-04-06Always resolve one symlink when loading formula filesJack Nagel
This means that tapped formula will always have the correct path, and we can stop calling realpath everywhere.
2014-04-05Implement canonical_name in FormularyJack Nagel
2014-04-05Drop support for passing incomplete pathsJack Nagel
`brew install ./foo` treats `./foo` like `./foo.rb`. This requires a confusing special case in the name resolution logic and doesn't make a whole lot of sense from a UX perspective. Drop support for this. The argument should be an absolute path, a relative path, or a formula name, rather than a hybrid. cf. https://github.com/Homebrew/homebrew/issues/23430#issuecomment-26776962
2014-04-05Extract alias resolution to a separate loader classJack Nagel
2014-04-05Use StandardLoader when we know the path alreadyJack Nagel
2014-04-05Drop readable? check since we don't do that for any other caseJack Nagel
2014-04-05Simplify tap formula loadingJack Nagel
2014-04-05Pass path directly to StandardLoader when possibleJack Nagel
Now we can avoid computing the path twice in the common case.
2014-04-05Eliminate repeated work in Formulary.factoryJack Nagel
Much of the name resolution done in Formula.canonical_name is repeated Formulary.factory. Here we eliminate the repeated work by duplicating the code from canonical_name. Later we will refactor it so that both methods can share the bulk of the logic.
2014-04-05Combine conditional branches that do the same thingJack Nagel
2014-04-05FromPathLoader already calls expand_pathJack Nagel
2014-04-05Prefer File.extname to regexpJack Nagel
2014-04-03Remove need for class name cache by only computing it once per formulaJack Nagel
2014-03-07Print loader class name in debug modeJack Nagel
2014-03-07FormulaLoader: pull shared behavior into superclassJack Nagel
2014-02-28Use File.expand_pathJack Nagel
2014-02-28Add custom exception for untapped formulaeJack Nagel
2014-02-28Use constantJack Nagel
2014-02-21Avoid ancestors.include?, klass1 < klass2 is fasterJack Nagel
2014-02-21Cache generated class namesJack Nagel
2014-02-21Move Formula.class_s to FormularyJack Nagel
2014-02-20Consistently pass path into Formula constructorJack Nagel
2014-02-19Pass path into the Formula constructorJack Nagel
When the path argument to the Formula constructor is omitted, the instance's path attribute is created using the Formula.path class method. However, we have already done this work, so we can just pass it into the constructor. This translates to one less call to Pathname#to_s per formula, or about 2600 calls when running `brew readall`.
2014-02-19Eliminate some Pathname -> String -> Pathname conversionsJack Nagel
2014-02-19Push expand_path call down into FromPathLoaderJack Nagel
2013-12-09versions: restore original constantJack Nagel
Before: f1 = Formula.factory('tree') f1.versions f2 = Formula.factory('tree') f1.class == f2.class # => false After: f1 = Formula.factory('tree') f1.versions f2 = Formula.factory('tree') f1.class == f2.class # => true
2013-09-26Simplify setup for local bottle installationJack Nagel
Closes #22833.
2013-08-05better debugging of failed formula loadingCamillo Lugaresi
Closes #21680. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-04bottles: update version regex messaging.Mike McQuaid
2013-07-18Move getting formula names from bottles to method.Mike McQuaid
2013-07-04Formulary: fix incorrect bottle variable usage.Mike McQuaid
2013-07-02allow installation of formulae from the current folderAdam Vandenberg
Closes #19177.
2013-06-30Fix appending .rb to local formulae namesAdam Vandenberg
Closes #20926.
2013-06-30Catch another name errorAdam Vandenberg
Closes #20920.
2013-06-29Add 'unload'Adam Vandenberg
2013-06-29Formulary.factory always expects a stringAdam Vandenberg
2013-06-29Use Formula LoadersAdam Vandenberg
2013-06-29Move Formula.factory into new Formulary moduleAdam Vandenberg