Jack Nagel
4bcb452d72
audit: fix version audit for Version subclasses
...
The version isn't redundant if a subclass of Version is specified.
2013-05-14 20:17:00 -05:00
Jack Nagel
8f828806cc
outdated: always do comparisons with a Formula as the receiver
...
It is possible for the object returned by Formula#version to be a
subclass of Version with special behavior, so we want to use that for
the comparison.
2013-05-14 20:11:48 -05:00
Jack Nagel
b29193d3b9
Use Hash#each_value rather than discarding key
2013-05-11 16:06:18 -05:00
Jack Nagel
724789d9f3
info: simplify keg listing
2013-05-10 23:45:36 -05:00
Jack Nagel
50700e8bc7
deps: fix --1 output
...
Fixes #17550 .
Closes #19668 .
2013-05-10 23:45:30 -05:00
Jack Nagel
0936cacd0b
info: improve dependency listing
2013-05-10 23:45:06 -05:00
Jack Nagel
738d39285b
doctor: update ruby version check
2013-05-07 19:45:10 -05:00
Jack Nagel
7c79f7ac48
doctor: update git version check
2013-05-07 19:45:10 -05:00
Jack Nagel
0778025732
audit: only generate aliases list once
2013-05-07 18:40:14 -05:00
Jack Nagel
b304a3caf1
audit: only set up the build environment once
2013-05-07 18:39:45 -05:00
Jack Nagel
4e16c3de7c
info: re-raise on blacklist miss
2013-05-02 21:34:48 -05:00
Adam Vandenberg
98c5b96454
--env: show HOMEBREW_CC in superenv
...
Closes #18247 .
2013-05-02 11:36:30 -07:00
Adam Vandenberg
85fe4bd883
info: try blacklist for unknown formula names
...
Closes #17399 .
2013-04-29 10:12:40 -07:00
Jack Nagel
03a4ecfbca
Allow brew versions to work with underspecified formulae
2013-04-27 14:44:48 -05:00
Jack Nagel
ddb90ed0f8
audit: fix interpolation check
...
Fixes #19363 .
2013-04-26 19:18:13 -05:00
Misty De Meo
9b4310b362
doctor: don't shell out in coreutils check
2013-04-25 18:23:43 -05:00
Misty De Meo
2b34a9c612
doctor: add default-names findutils check
...
Fixes #19265 .
2013-04-25 18:23:43 -05:00
Jack Nagel
10e60b092c
audit: warn about top-level methods
2013-04-22 15:19:03 -05:00
Jack Nagel
b596f73c03
Add tests for FormulaPin and simplify implementation
2013-04-16 01:58:11 -05:00
Jack Nagel
bc33a40907
Avoid repeated interpolation here too
2013-04-14 23:48:20 -05:00
Adam Vandenberg
26dfa2ccbc
Only prune taps if taps exist.
...
Closes #19192 .
2013-04-14 09:35:16 -07:00
Jaime Marquínez Ferrándiz
f5b8a6abd0
New visualization for brew deps --tree
...
Closes #18835 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2013-04-13 20:32:45 -05:00
Jack Nagel
5ba5e21536
Run tap --repair as part of prune
...
And by extension, `cleanup`.
Fixes #18658 .
2013-04-13 17:23:14 -05:00
Jack Nagel
f0f1bdf1a2
doctor: 'raring' => 'ready'
...
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-12 19:32:23 -05:00
Jack Nagel
fd11f138bd
doctor: consolidate directory access checks
...
Also include a writability check for lib.
Closes #18571 .
2013-04-12 19:32:02 -05:00
Jiang Xin
885292e16e
versions: work for tapped formulae
...
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-11 23:45:15 -05:00
Geoff Petrie
222b9ebc1b
doctor: suggest brew update in outdated warning
...
Closes #19106 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2013-04-11 02:12:59 -05:00
Jack Nagel
0e8ed301a5
link: eliminate naked rescue
2013-04-10 12:02:35 -05:00
Jack Nagel
4386be0a19
Remove last use of deprecated Formula#recursive_deps
...
Fixes #19107 .
2013-04-10 11:55:02 -05:00
Jack Nagel
18f07bb0e7
Unify indentation of access modifiers
...
These are class method calls, not some special keyword, and should be
indented as such (also all standard Ruby indenters do this).
2013-04-07 20:59:49 -05:00
Jack Nagel
92424d5b66
audit: clean up some regexps
2013-04-06 22:12:21 -05:00
Jack Nagel
5af9e408a8
audit: check build-time deps programmatically
2013-04-06 22:11:02 -05:00
Jack Nagel
19ad297649
audit: rescue only FormulaUnavailableError
2013-04-06 22:10:43 -05:00
Jack Nagel
11774c888c
audit: clean up URL audits
2013-04-06 22:10:33 -05:00
Jaime Marquínez Ferrándiz
755e3cc8c6
brew audit: find *.github.com pages
...
And suggest changing them to *.github.io
Closes #19012 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com >
2013-04-06 13:12:53 -07:00
Jack Nagel
0520c36eed
Replace literal paths to ruby with RUBY_PATH
2013-04-06 13:10:12 -05:00
Jack Nagel
b7884284c2
Fix another handful of warnings
2013-04-06 00:14:03 -05:00
Jack Nagel
8ff6ea9900
Make some groups non-capturing
2013-04-05 22:00:36 -05:00
Jack Nagel
17379509ed
Use #grep where it will suffice
2013-04-05 22:00:36 -05:00
Jack Nagel
591496ccbf
Don't error out when a package is already installed
...
Fixes #17010 .
2013-04-03 18:27:28 -05:00
Adam Vandenberg
3730c0636f
use separate args in brew create
2013-04-03 11:24:45 -07:00
Misty De Meo
ebddb7d4d2
tap/untap: use Array#length, not #count
...
Array#count was apparently introduced in 1.8.7.
2013-04-02 16:28:46 -05:00
Jack Nagel
90500c02e4
audit: fix check for depending on requirement classes
...
Don't complain if it's instantiating the class so that it can pass
arguments.
Fixes #18883 .
2013-04-01 11:35:56 -05:00
Jack Nagel
26a6acd10d
Fix list --pinned for non-formula kegs
...
Fixes #18885 .
2013-04-01 11:22:15 -05:00
Jack Nagel
6b12930c86
Fix uninstallation of non-formula kegs
...
Grrr...
2013-03-31 21:28:20 -05:00
Simon Sigurdhsson
49bc73a4ef
brew-info: Add pinned status to info.
...
Closes #18851 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-03-31 19:27:17 +01:00
Jack Nagel
332e0fb20c
Simplify destructuring this array
2013-03-30 15:16:44 -05:00
Simon Sigurdhsson
85eb73ced7
brew-pin: prevent selected formulae from upgrade.
...
* Added `pin` et. al. to manpage.
* Added `brew pin` to `brew.1` * Added `brew unpin` to `brew.1`
* Added `brew list --pinned` to `brew.1`
* Added information about frozen formulae to `brew upgrade` in `brew.1`
* Added `pin` et.al. to completion scripts.
* Unpin formulae when uninstalling them
* Unpin and re-pin formulae when upgrading (avoids stale symlink)
References #18386 .
Closes #18515 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com >
2013-03-30 19:50:47 +00:00
Jack Nagel
9e3ef197fe
Use each_key instead of keys.each
2013-03-29 21:59:02 -05:00
Adam Vandenberg
b8380793c0
doctor: restore newlines between checks
...
Closes #18060 .
2013-03-29 11:14:46 -07:00