Commit Graph
3999 Commits
Author SHA1 Message Date
Adam Vandenberg 19971aff70 add more documentation 2014-02-25 20:24:34 -08:00
Adam Vandenberg aab4ce625f fix incorrect comment 2014-02-25 20:24:34 -08:00
Adam Vandenberg 691c8bbd3e remove charset.alias directly 2014-02-25 20:24:34 -08:00
Jack Nagel fc38a631e7 Add nil check to partially address #26563 2014-02-24 23:26:11 -05:00
Jack Nagel c73a88ecc6 Implement fails_with_llvm compat method in terms of fails_with 2014-02-24 23:26:11 -05:00
Jack Nagel c3fc01ce60 Remove unused variable 2014-02-23 23:04:44 -05:00
Adam Vandenberg 7874dfb556 update doc 2014-02-23 15:53:26 -08:00
Adam Vandenberg c87736e7b9 ignore skip_clean :all 2014-02-23 15:53:26 -08:00
Adam Vandenberg f13e0490be Cleaner: do work in clean instead of constructor 2014-02-23 15:53:25 -08:00
Adam Vandenberg d55ac4f1ca latest xcode is 5.0.2
Closes #26943.
2014-02-23 13:15:53 -08:00
Adam Vandenberg 028b8087b2 add doctor check for HOMEBREW_KEEP_INFO 2014-02-23 08:31:03 -08:00
Adam Vandenberg 840793ca2c Always keep info files
Closes #26659.
2014-02-23 08:30:50 -08:00
Jack Nagel 6e247dc443 Hoist assignment to simplify a conditional 2014-02-22 21:39:38 -05:00
Jack Nagel 5be3c17a48 create: make conditional more obvious 2014-02-22 20:17:04 -05:00
Jack Nagel 1b67308076 create: pull requires out of method 2014-02-22 20:17:04 -05:00
Jack Nagel ae26f1c2d5 Update method call 2014-02-22 20:17:04 -05:00
Jack Nagel 7973132f12 Remove download_strategy from SoftwareSpec 2014-02-22 20:17:04 -05:00
Mike McQuaid 8b4e80f3b6 bottle: detail what a new regex should match. 2014-02-22 17:15:28 +00:00
Mike McQuaid 834d9ca8c7 bottle_version: add x264. 2014-02-22 17:15:15 +00:00
Mike McQuaid b9c68c0969 bottle_version: improve test filenames. 2014-02-22 17:14:51 +00:00
Jack Nagel 824b4b0734 Use reader method 2014-02-22 11:17:50 -05:00
Jack Nagel 330ad0ba36 Use standard assignment since #initialize is only called once 2014-02-22 11:17:04 -05:00
Jack Nagel c44fb1b78c Eliminate nil check on path parameter 2014-02-21 20:07:41 -05:00
Jack Nagel 8c816696c1 Avoid ancestors.include?, klass1 < klass2 is faster 2014-02-21 00:46:03 -05:00
Jack Nagel 0844c87f66 Cache generated class names 2014-02-21 00:46:03 -05:00
Jack Nagel 3e5ae57a60 Move Formula.class_s to Formulary 2014-02-21 00:46:03 -05:00
Jack Nagel 37b3bbbc11 Remove downloader from Formula 2014-02-21 00:41:07 -05:00
Jack Nagel f84c58ce09 Remove test with too much implementation knowledge 2014-02-21 00:41:07 -05:00
Jack Nagel d6fd5da099 Move methods to a more logical place 2014-02-21 00:41:07 -05:00
Jack Nagel 65c0cca5bc Access bottle directly in FormulaInstaller 2014-02-21 00:41:07 -05:00
Josh Tilles e5a7ea7ede Adapt to Git 1.9's submodule foreach changes
Closes #26871.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-21 00:05:42 -05:00
Jack Nagel 014c6dd119 Delegate downloader to active_spec instead of storing it in an ivar 2014-02-20 13:45:13 -05:00
Jack Nagel 42c5ff710e Consistently pass path into Formula constructor 2014-02-20 13:31:37 -05:00
Jack Nagel 77f6832743 Pass path into the Formula constructor
When the path argument to the Formula constructor is omitted, the
instance's path attribute is created using the Formula.path class
method. However, we have already done this work, so we can just pass it
into the constructor.

This translates to one less call to Pathname#to_s per formula, or about
2600 calls when running `brew readall`.
2014-02-19 16:53:18 -05:00
Jack Nagel 80b656fe94 Eliminate some Pathname -> String -> Pathname conversions 2014-02-19 16:53:18 -05:00
Jack Nagel 91dcb3bdc3 Push expand_path call down into FromPathLoader 2014-02-19 16:53:18 -05:00
cadrpear 307348abc3 Fix building universal binaries on 32-bit CPUs
[jn: style, update comment]

Closes #25728.
Fixes #26834.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-19 14:15:03 -05:00
Jack Nagel 148dc55120 Stop exporting HOMEBREW_VERBOSE to build environment
This flag no longer affects the output of the compiler wrappers, since
everything is buffered by the build process rather than each individual
tool.

Additionally, this is a user-facing knob that affects ARGV.verbose?, and
the combination of these two issues broke the --quieter feature.
2014-02-18 21:46:26 -05:00
Jack Nagel 2c2aa4578e Use standard curl progress output in verbose mode
Closes #26818.
2014-02-18 16:03:52 -05:00
Jack Nagel 95bdff9fa9 Tweak DownloadError message to include wrapped exception 2014-02-18 15:08:03 -05:00
Jack Nagel 011e49afb5 Collapse begin..end into def..end and use else clause 2014-02-18 15:08:03 -05:00
Drew Rodman c9bccb2187 Add DownloadError to catch a broader range of resource download errors.
Adding a broader exception class allows for errors raised in Resource.fetch
to be caught in upgrade and prevent the process from being killed when
a download fails. This should resolve issue 18364.

Fixes #18364.
Closes #26618.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-02-18 15:08:03 -05:00
Jack Nagel 76c55c4810 Inline static exception text to remove a rescue 2014-02-18 13:27:35 -05:00
Jack Nagel 3df0a13a6a search: use a queue to collect errors
The threading in the tap search code makes handling errors difficult. If
an API-related error is raised in one thread, it is likely to be raised
in each of the rest as well. This results in duplicated error messages,
which is ugly and bad UX.

This patch adds a synchronized queue to collect these exceptions. The
first one added to the queue is re-raised after all operations are
complete.

It's not ideal, but it's minimally invasive and I don't have the energy
or time to do a rewrite.
2014-02-16 23:19:09 -05:00
Jack Nagel c1704a61f7 Add helpful error message for authentication failures 2014-02-16 23:19:09 -05:00
Jack Nagel 97e111d003 Move error text and helper into error class 2014-02-16 23:19:09 -05:00
Jack Nagel 1f4a261bd3 Add a more useful message when ratelimit is exceeded 2014-02-16 23:11:17 -05:00
Jack Nagel 6772741d54 Make GitHub::Error a RuntimeError to suppress backtrace 2014-02-16 22:24:33 -05:00
Jack Nagel 2894f17a33 Handle GitHub API authentication failures 2014-02-16 22:24:33 -05:00
Jack Nagel 9a4cd4a738 Extract error handling from GitHub.open 2014-02-16 22:24:33 -05:00