aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/readall.rb
AgeCommit message (Collapse)Author
2018-02-01docs: add more missing option descriptionsEricFromCanada
and improve wording or formatting where necessary.
2017-10-26Unhide readall and update-reset from manpage.Mike McQuaid
These are both tools that end-users can find useful on occasion so it doesn't make sense to hide them.
2017-10-20Merge pull request #3304 from richiethomas/refactor_usesMike McQuaid
In 'readall.rb', replaced multi-step 'each' loop with one-line method chain of Ruby enumerator methods
2017-10-20Remove memoization from uses.rb, as it doesn't result in the expected time ↵richiethomas
complexity savings
2017-10-18Fix brew style warningsrichiethomas
2017-10-18PR feedback- replace '#{HOMEBREW_LIBRARY}/Homebrew/**/*.rb' with ↵richiethomas
'#{HOMEBREW_LIBRARY_PATH}/**/*.rb'
2017-10-18Remove /cask/ from readall file filterrichiethomas
2017-10-18readall: update documentationMaxim Belkin
2017-10-12In 'readall.rb', replaced multi-step 'each' loop with one-line method chain ↵Richie Thomas
of Ruby enumerator methods
2017-10-10readall: allow readall-ing multiple taps at onceMaxim Belkin
2017-02-25Update brew's man page formatting and grammarEricFromCanada
Also update command specifications to match descriptions.
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-08Add `--help` to all developer commands.Mike McQuaid
Also, flag those that we never want to be in a manpage.
2016-08-17Prepare for Homebrew Cask to be imported.Mike McQuaid
- ignore Cask's files in `readall` (for now, there's an intentional syntax error that will need fixed) - run Cask's tests if they exist - don't check Cask's files in coverage reports (for now)
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-07-09tap: run readall when tapping. (#396)Mike McQuaid
* readall: move readall logic to new class. * tap: run readall when tapping. This will prevent tapping an tap with syntax errors from causing issues for users. Fixes #58.
2016-04-22readall: also check 'brew.rb' for issuesMartin Afanasjew
Closes #119. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-22readall: stop using no longer needed 'nostdout'Martin Afanasjew
Since switching from `system` to `Utils.popen_read` we no longer need to suppress Ruby's output of `Syntax OK` to `$stdout`.
2016-04-22readall: fail on Ruby syntax warningsMartin Afanasjew
Previously, syntax warnings were printed, but didn't cause `readall` to exit with a non-zero exit code. Now they do, making it easier to catch accidentally introduced syntax warnings in the test bot.
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.
2015-12-19move CoreFormulaRepository into separate fileXu Cheng
For users whose local brew is at around 2015-06-11 to 2015-08-06, running `brew update` will emit following error: Error: uninitialized constant Formulary::CoreFormulaRepository This is caused by the same bug described in Homebrew/homebrew#42553. This commit workarounds this issue and restores `brew update` compatibility for users mentioned above. Also cleanup legacy `require "cmd/tap"`.
2015-12-19readall: use Tap object to locate alias directoryXu Cheng
Let's hide implementation detail on where to find alias directory. This will benefit future core code and formulae separation. Also let `brew readall` check aliases for all taps.
2015-12-19readall: allow interruptXu Cheng
2015-12-09remove unnecessary tap_argsXu Cheng
It's now handled by Tap.fetch
2015-09-30cache tapsXu Cheng
There are plenty of IO operations inside Tap object, and it will be more when implementing formula alias reverse look up(e.g. list all of alias names for a formula). So let's cache them. Some benchmark: $ time brew info $(brew ruby -e 'puts Formula.tap_names') > /dev/null Before: 6.40s user 2.42s system 96% cpu 9.134 total After: 4.75s user 0.77s system 97% cpu 5.637 total Closes Homebrew/homebrew#44377. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-06readall: put nostdout in outter layerXu Cheng
The previous code would fail to reset stdout after thread jobs are finshed.
2015-09-06readall: add --aliasesXu Cheng
2015-08-03brew readall --syntax: skip vendor filesXu Cheng
2015-08-01enumerate all formulae by files rather than namesXu Cheng
Before ``` $ time brew readall brew readall 10.63s user 0.36s system 99% cpu 11.003 total ``` After ``` $ time brew readall brew readall 5.62s user 0.24s system 99% cpu 5.859 total ``` Closes Homebrew/homebrew#42302. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-22readall: use RUBY_PATHDominyk Tiller
2015-06-14add TapUnavailableErrorXu Cheng
2015-06-11(un)tap/update/readall: use Tap classXu Cheng
2015-05-27add Formula.core_names Formula.tap_names and Formula.full_namesXu Cheng
2015-05-08add Formulary::path methodXu Cheng
This is a little code refactoring splited from Homebrew/homebrew#36753 The idea is to eliminate `Formula#path` outside of `formulary.rb`. And I indent to deprecate `Formula#path` method when I reimplement symlink free tap function. Closes Homebrew/homebrew#39313.
2015-04-12readall: use named to check if ARGV is empty.Mike McQuaid
Otherwise e.g. --debug will be interpreted as a (bad) tap argument. Closes Homebrew/homebrew#38569. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-20test-bot: don't run readall on <=10.8.Mike McQuaid
The Ruby 1.8 implementation seems to be really flaky, unfortunately.
2015-03-08cmd/readall: add --syntax to check for valid Ruby.Mike McQuaid
2014-06-22Move deprecated Formula class methods to compatJack Nagel
These have all been moved to Formulary.
2014-06-15readall: fix permissionsAdam Vandenberg
2014-06-15Migrate readallAdam Vandenberg