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
4b2ea73f2e
test_keg: reduce noise by including FileUtils
2013-05-14 16:29:36 -05:00
Jack Nagel
aece0a4e0a
test_keg: make mode an ivar
2013-05-14 16:29:36 -05:00
Adam Vandenberg
a12bfd531b
Retry downloads if a server doesn't support byte ranges
...
If an incomplete download exists, and the HTTP server doesn't support
byte ranges, delete the incomplete download and retry once.
Tested with freeling, whose server does not support byte ranges.
Closes #19757 .
2013-05-13 07:32:03 -07:00
Jack Nagel
b29193d3b9
Use Hash#each_value rather than discarding key
2013-05-11 16:06:18 -05:00
Mike McQuaid
646150ade9
Fix --build-bottle CFLAGS.
...
The CFLAGS were previously not generic enough.
References #18944 .
References #19179 .
2013-05-11 12:18:25 +01: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
2a35e35336
Add type accessors to Dependencies
2013-05-10 23:45:06 -05:00
Jack Nagel
a8fec19304
Use Enumerable#grep
2013-05-10 23:45:06 -05:00
Jack Nagel
565a5fe126
Refactor Dependency.expand
2013-05-10 23:45:05 -05:00
Jack Nagel
366ac016bd
Reorganize compat
2013-05-10 23:27:28 -05:00
Jack Nagel
9b7c228bdf
Remove ancient global methods from compat
2013-05-10 23:27:27 -05:00
Mike McQuaid
2d9329f14e
Allow requirements to specify a default formula.
...
This allows default resolution of requirements without user intervention.
Closes #19627 .
2013-05-10 13:37:41 +01:00
Desmond Brand
fc565bee26
Overwrite broken symlinks with --overwrite
...
Closes #19480 .
Signed-off-by: Misty De Meo <mistydemeo@gmail.com >
2013-05-09 09:21:34 -05:00
Misty De Meo
733058f24f
Add gcc-4.0 to fails_with
2013-05-08 09:38:15 -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
Misty De Meo
29e4f5f54e
ArchRequirement: takes a single arch
...
Fixes #19646 .
2013-05-06 22:50:01 -05:00
Jack Nagel
9d01245fd0
Fix type error in conflict_requirement
...
Fixes #19636 .
2013-05-06 17:49:36 -05:00
Jack Nagel
8c8837ede5
Avoid extra array allocations
2013-05-06 16:52:26 -05:00
Jack Nagel
62389cc274
Reduce allocations in dependency construction
...
By always passing around a single, unnested array rather than splatting
and then defensively flattening and compacting things, we can avoid
allocating a bunch of unnecessary arrays. This gives a performance boost
of roughly 4% when enumerating 2500 formulae, and has the side effect of
cleaning up the dependency API.
2013-05-06 16:08:50 -05:00
Jack Nagel
0d001785fd
TypeError is appropriate here
2013-05-06 16:08:49 -05:00
Jack Nagel
c55120e83b
Check Requirement before Dependency
...
It's much more likely that an instance of Requirement is passed.
2013-05-06 16:08:49 -05:00
Jack Nagel
78bd2b2c38
Extract string and class logic from parse_spec
2013-05-06 16:08:49 -05:00
Misty De Meo
e585ea04e3
Formula: fix to_hash output for bottles
2013-05-05 10:58:12 -05:00
Adam Vandenberg
11bf38b2b1
Add frameworks helper to formula
2013-05-03 11:41:55 -07: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
839a821118
Avoid capturing groups when unnused
2013-04-27 15:21:06 -05:00
Jack Nagel
c7ba2b73e5
Combine GitHub version regexes
2013-04-27 15:21:05 -05:00
Jack Nagel
e51d0e4d0c
Only remove DS_Store on ENOTEMPTY
2013-04-27 15:21:05 -05:00
Jack Nagel
777473449b
Don't test error message
...
Now that we are testing for a custom exception type, we don't need to
make any assertion about the message.
2013-04-27 14:50:35 -05: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
Mike McQuaid
94a944aa3f
Add deps target to tests Rakefile for needed gems.
2013-04-26 22:32:26 +01: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
2cf21c31b6
Add a couple more version tests
2013-04-24 15:02:05 -05:00
Jack Nagel
e279048d01
Split up big version detection test
2013-04-24 15:01:54 -05:00
Jack Nagel
10e60b092c
audit: warn about top-level methods
2013-04-22 15:19:03 -05:00
Simon Sigurdhsson
d6a2964eab
Remove global methods from formulae
...
Removes any global methods from formulae, and moves #kext_prefix (which
seems to be at least somewhat abstractable) into the Formula class. The
only formula with global methods is now aspell; it (and its generating
script in contrib) has been changed to prefix that method with
`aspell_`, to minimize the risk of name collisions.
Closes #19331 .
Closes #19343 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com >
2013-04-21 23:48:50 -05:00
Jack Nagel
9d1a86cda1
Avoid calling to_s on the same Pathname multiple times
2013-04-20 13:50:42 -05:00
Jack Nagel
49313fd371
Don't accept Formula objects as dep specs
...
It was pointed out that this isn't used at all.
2013-04-18 01:17:15 -05:00
Jack Nagel
bbfb6d550f
Reorder dep spec types by frequency
2013-04-17 14:12:41 -05:00