Markus Reiter
6750448d95
Fix some auto-correctable type errors.
2020-11-29 21:23:54 +01:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Markus Reiter
f55debaeed
Document Readall
.
2020-08-26 03:13:59 +02:00
Sean Molenaar
3f6d3e5cf0
Support casks in readall
2020-06-18 20:15:07 +02:00
Issy Long
341ea60807
Auto-fix Style/RedundantBegin offenses
...
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
Layout/InconsistentIndentation once the auto-fixer had got rid of the
"redundant begin"s.
2019-10-13 16:04:27 +01:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Mike McQuaid
7fbfb02625
Remove usage of Thread.new
...
I benchmarked these both locally and neither use of `Thread.new`
provides any measurable speedup (and in the `readall` case appears to
slow things down) on my 8 core machine.
2019-04-18 14:46:40 +09:00
Markus Reiter
32ad22395b
Remove some #popen_read
s.
2018-09-04 05:16:59 +02:00
Markus Reiter
fd2a333b45
Use grep_v
.
2018-07-22 21:11:47 +02:00
Markus Reiter
28384ba518
Rename Hbc::SystemCommand
to SystemCommand
.
2018-07-22 21:11:47 +02:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Markus Reiter
b63a5cbd4b
Don't require "thread"
.
2017-10-24 19:39:40 +02:00
Markus Reiter
175ca909ee
Clean up code style and remove .rubocop_todo.yml
.
2017-10-08 16:10:37 +02:00
Mike McQuaid
021cef4b2b
Autocorrect Rubocop Style/SpecialGlobalVars.
2017-06-12 09:11:42 +01:00
Mike McQuaid
e8ef50d075
readall: fix tapping taps without aliases.
...
Fixes https://github.com/caskroom/homebrew-cask/issues/32840 .
Fixes https://github.com/Homebrew/brew/issues/2529 .
2017-04-22 21:43:45 +01:00
Mike McQuaid
cd5924950e
readall: check for shadowed aliases.
...
If an alias has the same name as a formula then weirdness will result
so ensure this causes `readall` to fail.
2017-04-22 17:08:36 +01:00
ilovezfs
b59bf2ff64
Revert "audit: check for version aliases."
2017-02-21 11:31:18 -08:00
Mike McQuaid
68bd744d0e
readall: check for shadowed aliases.
...
This will become particularly relevant when there’s a new version of a
formula and the existing alias needs to be removed.
2017-02-21 15:36:50 +00:00
Maxim Belkin
9a0127e7ab
readall: do not require itself.
2016-09-21 11:45:47 -05:00
Markus Reiter
7b8bae710e
Use ThreadError
to break loop.
2016-08-22 08:57:47 +02:00
Mike McQuaid
4da990587f
tap: run readall when tapping. ( #396 )
...
* 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-07-09 13:51:19 +01:00