aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
AgeCommit message (Collapse)Author
2013-04-13New visualization for brew deps --treeJaime Marquínez Ferrándiz
Closes #18835. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-13Remove extra requireJack Nagel
2013-04-13Use assert_operatorJack Nagel
2013-04-13Remove obsolete testsJack Nagel
This behavior is now tested at more appropriate levels in test_software_spec, test_formula_spec_selection, and test_formula_validation.
2013-04-13Make a specific assertion in this testJack Nagel
2013-04-13Raise a useful exception for incomplete formulaeJack Nagel
2013-04-13Add tests for formula spec selectionJack Nagel
These tests document the relative precedence of the stable, bottle, devel, and head specifications, and the conditions that can influence which is selected (e.g. command-line flags).
2013-04-13Allow "devel-only" formulaeJack Nagel
It seems only natural that this should be possible, or at the very least, it should not result in calling methods on nil.
2013-04-13Improved formula attribute validationJack Nagel
The initializer for Formula does a number of validations, but it does them in a weird order, and some attributes aren't validated under certain circumstances. This became even more of a mess when most software package attributes were moved into the SoftwareSpec class. This commit removes the last vestiges of storing these attributes as instance variables. In particular, it eliminates #set_instance_variable and #validate_variable, replacing them with methods that operate on SoftwareSpec instances, and generate more useful errors. Doing these validations unconditionally in the initializer means we bail out much earlier if the formula has invalid attributes or is not fully specified, and no longer need to validate in #prefix. Technically we don't need to validate in #brew either, but we continue to do so anyway as a safety measure, and because we cannot enforce calls to super in subclasses.
2013-04-13Run `tap --repair` as part of `prune`Jack Nagel
And by extension, `cleanup`. Fixes #18658.
2013-04-13Clean up checksum verification testsJack Nagel
2013-04-12doctor: 'raring' => 'ready'Jack Nagel
It was pointed out that 'raring' is a rare word can be confusing to non-native speakers. Closes #18659, see that for details.
2013-04-12doctor: consolidate directory access checksJack Nagel
Also include a writability check for lib. Closes #18571.
2013-04-11versions: work for tapped formulaeJiang Xin
brew versions is hardcoded to cd to HOMEBREW_REPOSITORY before running git, and as such fails to report previous versions for any formulae from a tapped repository. Add two new private methods repository and entry_name to replace the hardcoded HOMEBREW_REPOSITORY and formula path, and brew versions work for both builtin and tapped formulae. Closes #12356. Closes #19069. Reported-by: Misty De Meo <mistydemeo@gmail.com> Suggested-by: Jack Nagel <jacknagel@gmail.com> Signed-off-by: Jiang Xin <worldhello.net@gmail.com> Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-11doctor: suggest `brew update` in outdated warningGeoff Petrie
Closes #19106. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-10Eliminate test_bucketJack Nagel
Most of the behavior tested here is now tested elsewhere. Move the remaining useful tests to better places.
2013-04-10More comprehensive tests for Pathname extensionJack Nagel
2013-04-10link: eliminate naked rescueJack Nagel
2013-04-10Make test formulae initializers more flexibleJack Nagel
2013-04-10Move formula equality tests out of test_bucketJack Nagel
2013-04-10Remove last use of deprecated Formula#recursive_depsJack Nagel
Fixes #19107.
2013-04-09Check existence rather than rescue exceptionsJack Nagel
2013-04-09Simplify these testsJack Nagel
2013-04-08SubversionDownloadStrategy: *really* fix pathname concatenationJack Nagel
2013-04-08SubversionDownloadStrategy: fix pathname concatenationJack Nagel
Fixes #19066.
2013-04-08Clean up mirror support testJack Nagel
2013-04-08Fix argument order in test_comparablesetJack Nagel
2013-04-08Fix specs in TestBallJack Nagel
2013-04-08Tests for SoftwareSpec and subclassesJack Nagel
2013-04-08Ensure ARGV is cleaned upJack Nagel
2013-04-08Remove dead codeJack Nagel
This is initialized in #initialize.
2013-04-07Clean up some things in test_bucketJack Nagel
2013-04-07Simplify testsJack Nagel
2013-04-07Define RUBY_PATH for testsJack Nagel
2013-04-07test_patching: inline test classesJack Nagel
2013-04-07Isolate ARGV extension testsJack Nagel
2013-04-07Delete pointless testJack Nagel
2013-04-07Download strategies require a usable nameJack Nagel
We should handle this case in some predictable way, but until we do, let's raise a more appropriate exception. It would also be good to get rid of the duplication here.
2013-04-07Tests for AbstractDownloadStrategyJack Nagel
2013-04-07Unify indentation of access modifiersJack Nagel
These are class method calls, not some special keyword, and should be indented as such (also all standard Ruby indenters do this).
2013-04-07Tests for Checksum classJack Nagel
2013-04-07MacCPUs: add .avx? helperMisty De Meo
2013-04-06audit: clean up some regexpsJack Nagel
2013-04-06audit: check build-time deps programmaticallyJack Nagel
2013-04-06audit: rescue only FormulaUnavailableErrorJack Nagel
2013-04-06audit: clean up URL auditsJack Nagel
2013-04-06mxcl.github.com/homebrew => brew.shJack Nagel
2013-04-06brew audit: find *.github.com pagesJaime Marquínez Ferrándiz
And suggest changing them to *.github.io Closes #19012. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-04-06Replace literal paths to ruby with RUBY_PATHJack Nagel
2013-04-06Fix another handful of warningsJack Nagel