aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formulary.rb
AgeCommit message (Collapse)Author
2017-08-12Revert "Raise an exception when double loading a formula"Mike McQuaid
2017-08-11Raise an exception when double loading a formulaAlyssa Ross
(As proposed in #2673)
2017-08-08Simplify CurlDownloadStrategy.Markus Reiter
2017-08-07Revert "Refactor SVN and cURL download strategies."ilovezfs
2017-08-07Simplify CurlDownloadStrategy.Markus Reiter
2017-06-13BottleLoader: Fix installing a bottle from an URLShaun Jackman
The name of the formula is not extracted correctly when the URL includes a hyphen.
2017-06-12Merge pull request #2769 from MikeMcQuaid/rubocop-no-perl-backrefs1.2.3Mike McQuaid
rubocop: don’t allow Perl regex backrefs.
2017-06-12Autocorrect Rubocop Style/SpecialGlobalVars.Mike McQuaid
2017-06-10Autocorrect Rubocop Style/PerlBackrefs.Mike McQuaid
2017-05-01Install a bottle from an URLShaun Jackman
2017-04-18install: don't search when formula is unreadable.Mike McQuaid
These formulae are detected as missing but exist in an unreadable form. Fixes #2485
2017-04-11formulary: Workaround for method missing for downcase on Pathname object.SHIBATA Hiroshi
2017-02-20Make `Formulary` a `module`.Markus Reiter
2017-02-01formulary: handle ScriptError in formulaAlyssa Ross
I added a new `FormulaUnreadableError` subclass of `FormulaUnavailableError` so existing `rescue`s of `FormulaUnavailableError` handle this as well. The new subclass will output the name of the formula with the error (because this isn't always obvious from the original exception message) followed by the original error message. Fixes #1927.
2017-01-09formulary: read from formula in opt prefix.Mike McQuaid
We want to prefer the newer/versioned formulae when possible but this is preferable to a random cached formula or, worse, no formula. This means `brew info foo` will never complain that `foo` is a missing formula.
2016-12-29tap_migrations: support renaming to/from casks.Mike McQuaid
Allow `tap_migrations` entries to have a `user/repo/formula` or `user/repo/cask` format for migration of formulae to/from casks.
2016-12-29Merge pull request #1733 from vladshablinsky/rb_in_nameMike McQuaid
Don't drop .rb suffix for formula names
2016-12-26Don't drop .rb suffix for formula namesUladzislau Shablinski
Fixes #1718
2016-12-14formulary: call tap not formulaUladzislau Shablinski
Fixes #1668
2016-12-11Merge pull request #1646 from MikeMcQuaid/report-deprecations-to-tapMike McQuaid
Tell people to report URL/tap deprecations to the tap.
2016-12-10Tell people to report URL/tap deprecations to the tap.Mike McQuaid
Rather than Homebrew/brew or Homebrew/homebrew-core.
2016-12-09formulary: remap deprecated options from keg.Mike McQuaid
When reading a building a formula from a keg (rather than e.g. from name) then the deprecation options were not remapped correctly as they are only done in `Tab.for_formula` and not `Tab.for_keg`. Ensure that after we’ve created the formula that the `used_options` are remapped correctly.
2016-11-11formulary: don't warn on old formula name from keg/rack.Mike McQuaid
If there’s an old installation of e.g. `apple-gcc42` from when it was part of `homebrew/core` then the tab will say it was from the `homebrew/core` tap and then we’ll complain at the user (see #1459 for an example). Instead, we only want to complain when the user actually types in `homebrew/core/apple-gcc42` into a `brew` command. Closes #1459.
2016-11-02formulary: migrate fully-scoped formulae names.Mike McQuaid
e.g. allow `brew install some/tap/formula` to look that formula up in another tap if it has been migrated. Also, add a deprecation message to point people towards the correct naming.
2016-09-24RuboCop: Style/AccessorMethodNameMarkus Reiter
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-23Fix Style/IfUnlessModifier.Markus Reiter
2016-09-19Fix another `brew style` from #971.Mike McQuaid
2016-09-19Fix `brew style` from #971.Mike McQuaid
2016-09-18upgrade, outdated: follow alias changesAlyssa Ross
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-17rubocop --auto-correct all remaining files.Mike McQuaid
But remove some manual `.freeze`s on constants that shouldn't be constants.
2016-09-05Replace install_name/install_ref with alias_pathAlyssa Ross
2016-09-05Switch to hash rocketsAlyssa Ross
2016-09-03Preserve alias when installing formulaeAlyssa Ross
Part of #567
2016-08-29formulary: tweak @ translationDominyk Tiller
2016-08-28formulary: translate @ to AT for classnameDominyk Tiller
2016-08-10formulary: fix to_rack for fully-scoped referencesMike McQuaid
Fixes the case where I have `mysql56` installed but do `brew uninstall foo/bar/mysql56` which isn't a valid formula. Fixes https://github.com/Homebrew/legacy-homebrew/issues/39883.
2016-08-06Fix update commit for non-HEAD kegs with head spec (#644)Uladzislau Shablinski
If we try to call `Formulary.from_keg(f, :head)` on the keg that is not HEAD-keg itself, we don't need to update commit of returned formula and should use just HEAD version with nil commit. Same is true for `ARGV.resolved_formulae`
2016-07-17Update commit when resolving the formula (#536)Uladzislau Shablinski
2016-07-15formulary: add missing keg.rackXu Cheng
2016-07-15add Formulary#from_kegXu Cheng
2016-07-15ARGV#resolved_formulae: also load build optionsXu Cheng
2016-06-01Prefer $stderr over STDERR for consistency (#304)Martin Afanasjew
Prior to this change there were only 3 instances of `STD(IN|OUT|ERR)` versus 74 instances of `$std(in|out|err)` in the Homebrew code base. The latter variant is also strongly suggested by bbatsov's Ruby Style Guide.
2016-05-28Use JSON files for bottle upload data. (#166)Mike McQuaid
This means that we do not need to read formulae or evaluate Ruby at upload time.
2016-05-22formulary: fix comment typo.Mike McQuaid
2016-05-08Make bottle code cross-platform.Mike McQuaid
2016-04-17formulary: use FormulaClassUnavailableErrorMartin Afanasjew
Present a more helpful error message if a formula file was loaded, but the class(es) therein didn't match the expected formula class name.
2016-04-02various: Homebrew/core is the core tapXu Cheng
Also make `Homebrew/homebrew` as an alias of this tap to keep backward compatibility.
2016-03-07rename CoreFormulaRepository to CoreTapXu Cheng
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.