4632 Commits

Author SHA1 Message Date
Jack Nagel
af1e9a9610 Expose bottle details on the formula object
Fixes Homebrew/homebrew#36032.
2015-01-20 22:27:23 -05:00
Mike McQuaid
6a6b56127c test-bot: handle devel-only formulae. 2015-01-17 19:12:10 +01:00
Xu Cheng
6d786e7dbb brew-config: show realpath for pyenv and rbenv
Closes Homebrew/homebrew#35819.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-17 18:48:34 +01:00
Jack Nagel
c6dee041eb install: fix --HEAD for formulae with head and devel but no stable 2015-01-16 00:00:21 -05:00
Dominyk Tiller
3f318b8ed4 install: handle devel-only correctly
See the discussion in
https://github.com/Homebrew/homebrew-devel-only/pull/6

Closes Homebrew/homebrew#35793.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-15 23:50:45 -05:00
Mike McQuaid
fd8bb8776c doctor: accepting the Xcode license requires sudo. 2015-01-15 15:46:35 +00:00
Mike McQuaid
dac4848661 pull: merge and rebase when pulling bottles.
This seems to be a more robust approach when a PR has multiple commits.
2015-01-15 11:15:13 +00:00
Jack Nagel
7f7742c2b6 Add message to the exception raised when tests return false 2015-01-13 12:35:50 -05:00
Jack Nagel
4bdfb27d9f Move assertion setup into formula_assertions.rb 2015-01-13 12:33:50 -05:00
Jack Nagel
b61528e757 Save and restore ENV around test invocations
This prevents mutations that happen in individual tests from leaking
into other tests.
2015-01-13 12:19:56 -05:00
Jack Nagel
d298e54e50 doctor: check access on HOMEBREW_PREFIX/opt 2015-01-12 21:29:22 -05:00
Jack Nagel
d0a1800e37 doctor: check access on all important HOMEBREW_PREFIX subdirs 2015-01-12 21:26:18 -05:00
Jack Nagel
b1514c1c40 doctor: check cellar access 2015-01-12 21:26:18 -05:00
Jack Nagel
aa4ff175ff doctor: fix grammar 2015-01-12 21:26:18 -05:00
Jack Nagel
9ff211f212 doctor: remove incorrect statement from HOMEBREW_LOGS check 2015-01-12 21:26:18 -05:00
Mike McQuaid
3f08b8881b cleanup-installed: use uninstall --force. 2015-01-11 10:12:44 +00:00
Xu Cheng
1818799634 test-bot: unlink conflict formulae during the test
Closes Homebrew/homebrew#35697.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-09 15:37:29 +00:00
Mike McQuaid
26b80ecccc test-bot: improve output of dependent testing. 2015-01-09 11:35:03 +00:00
Mike McQuaid
424ded8fdb test-bot: ignore changed dependents. 2015-01-09 11:35:03 +00:00
Jack Nagel
459f92b065 Remove another use of the direct url writer
masgn is hard to grep for :/
2015-01-08 14:28:43 -05:00
Dominyk Tiller
50d64da1ec audit: improve ssl/tls detection
I don’t know how maintainers are going to feel about this, to be
honest. If it’s too clunky, perhaps we could externalise the entire two
main blocks here and then require that file into the audit instead?

Basically, I’m pushing changes here to better detect a wide-array of
SSL/TLS available links that either have no auto-redirect in place or
is a common linking error in formulae. I haven’t spotted any false
positives yet, but obviously, feel free to try and break the changes
and I’ll fix as necessary ;).

IMO, this would allow us gradual updates without having to mass-update
everything at once and stress the bot and inform users they have
hundreds of updates pending when really it’s just style/basic changes.

Closes Homebrew/homebrew#35551.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-06 08:16:25 +00:00
Jack Nagel
dcad08339e Fix syntax error 2015-01-05 15:28:31 -05:00
Jack Nagel
d79a7c0fcf Always use exec_editor to exec the editor 2015-01-05 15:27:07 -05:00
Mike McQuaid
3821c190f9 style: explicitly point to config file.
Closes Homebrew/homebrew#35556.
2015-01-05 08:01:20 +00:00
Mike McQuaid
980cad0717 audit (strict): only run brew style with Ruby 2. 2015-01-05 07:52:47 +00:00
Dominyk Tiller
e871a91958 install: fail on devel where devel doesn't exist
Just equalises a little how we treat HEAD and devel. The former already
fails if there isn’t a head defined, It seemed logical that devel
should fail in the same way.

Closes Homebrew/homebrew#35554.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-05 00:04:23 -05:00
Jack Nagel
f937e5f920 Forward arguments in IRB formula helpers 2015-01-04 21:37:27 -05:00
Jack Nagel
4398660cdd Checkout outdatedness in brew upgrade <formula>
Fixes Homebrew/homebrew#35523.
2015-01-04 14:03:56 -05:00
Mike McQuaid
c294ce22a7 audit: also run brew style on --strict.
Closes Homebrew/homebrew#35465.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-04 11:05:34 +00:00
Mike McQuaid
e0cacd3008 style: run Rubocop on formulae (new command) 2015-01-04 11:05:34 +00:00
Mike McQuaid
1cd0a47067 tests.rb: use Homebrew.failed to send exit code. 2015-01-04 11:05:34 +00:00
Viktor Szakats
fc2818b7a5 Use more https in urls and updated some lost links
Closes Homebrew/homebrew#35531.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-04 02:13:16 -05:00
Jack Nagel
9db8580414 Explicitly pass formulae to outdated_brews 2015-01-04 00:41:24 -05:00
Baptiste Fontaine
fe0c57cd0f brew irb --help replaced with --examples
The --help flag is intercepted by brew.rb and prints the global usage
string. `irb` is never called when `brew irb --help` is executed.

Closes Homebrew/homebrew#35466.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-03 21:31:26 -05:00
Jack Nagel
43aa00227a Get rid of mixed operator styles 2015-01-03 17:54:07 -05:00
Mike McQuaid
9e8103cf38 Add Homebrew.install_gem_setup_path! function.
This uses the logic from tests.rb in man.rb too so that this can be
shared in a few places.
2015-01-02 12:42:02 +00:00
Baptiste Fontaine
81986ee7a7 audit: system check fixed for multiple arguments
Closes Homebrew/homebrew#35459.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-02 10:36:36 +00:00
Shaun Jackman
c01e6b81d3 test-bot: do not --cleanup outside CI.
Closes Homebrew/homebrew#35424.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-01-02 09:50:28 +00:00
Mike McQuaid
e87b377add pull: fix tap URL regex for devel/head-only. 2015-01-02 09:24:25 +00:00
Jack Nagel
8ebaa9c0a9 Handle newer ruby versions correctly in config output
Since Ruby 2.1, patch releases take the form "2.x.y" rather than
"2.x.y-pnum".
2014-12-31 09:54:44 -05:00
Jack Nagel
accd72b290 Log build environment on failure 2014-12-30 23:47:07 -05:00
Jack Nagel
77c0f60434 Always dump full configuration 2014-12-30 23:33:50 -05:00
Xu Cheng
b10c58d6e2 brew-config: always show XCode/CLT state
Closes Homebrew/homebrew#33860.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-12-30 23:18:05 -05:00
Mike McQuaid
4d584d37f7 test-bot: don't try to retap TapDependency taps. 2014-12-29 12:28:43 +00:00
Mike McQuaid
95ccf53a49 test-bot: tap TapDependency's tap. 2014-12-29 12:20:30 +00:00
Mike McQuaid
eb51f8a5fa test-bot: init added/modified formulae arrays. 2014-12-29 07:55:01 +00:00
Mike McQuaid
bff259330c test-bot: clean up harder on failure (before). 2014-12-29 07:51:50 +00:00
Misty De Meo
d57fe3eded search: add homebrew-x11 to default taps 2014-12-28 18:42:20 -08:00
Mike McQuaid
8c19b2a13e test-bot: clean harder if first clean fails. 2014-12-28 18:17:12 +00:00
Mike McQuaid
af4a156885 test-bot: tweak readability. 2014-12-28 18:17:02 +00:00