aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2016-06-07audit: detect more 'pkgshare' candidates (#328)Martin Afanasjew
The new check also allows the `+` operator instead of our (still heavily preferred) `/` operator for path concatenation and also triggers if the operator is surrounded by whitespace. Also recognizes single-quoted strings and uses a back reference to match the closing quote for a slightly lower chance of false positives. Closes #322.
2016-06-05update: pop the stash more quietlyilovezfs
git stash pop -q will print "Already up-to-date!" if untracked changes are being poppped. This quiets it down unless verbose is set. Closes #320. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-05gist-logs: fix new-issue URL.Mike McQuaid
2016-06-05formula_support: don't fail without CLT/XcodeMartin Afanasjew
`Formula#keg_only?` could fail if it was invoked on a formula with a `:provided_until_xcode43` or `:provided_until_xcode5` reason given to `keg_only`, if neither the Command Line Tools nor Xcode was installed. Check whether Xcode is installed before querying the Xcode version. Closes #317.
2016-06-03bottle: use short formula name in bottle commitMartin Afanasjew
2016-06-03cmd/pull: fix HTTP header usage.Mike McQuaid
2016-06-03update: tweak stash/checkout behavior. (#312)Mike McQuaid
Always pop stashed changes for Homebrew developers and only checkout original branches for them (to avoid users who don't understand Git ending up "stuck" on branches).
2016-06-03download_strategy: add missing "time" require.Mike McQuaid
Closes https://github.com/Homebrew/homebrew-core/issues/1687.
2016-06-03tests: extend cmd/desc integration test (#314)Andrea Kao
2016-06-03Use `curl` for the GitHub API (#295)Mike McQuaid
* Move GitHub API module to utils/github.rb. * Move curl method to utils/curl.rb. * global: use long curl arguments and an array. This makes the code more self-documenting. * utils/curl: support reading curl's output. * utils/github: use curl instead of open-uri. It has far better proxy support. * pull: set Homebrew user agent. * gist-logs: remove trailing whitespace. * gist-logs: use first instead of [0]. Easier to read. * gist-logs: use curl-based GitHub.open method.
2016-06-02formula_installer: accumulate inherited optionsilovezfs
When a given dependency appears multiple times in a formula's dependency tree, the inherited options for that dependency should accumulate rather than being overwritten each time that dependency is considered by expand_dependencies. In particular, this impacts "universal" since the dependency should be built with universal unless all of its instances in the dependency tree don't have "universal" as opposed to only if the last instance considered has "universal." Closes Homebrew/homebrew-core#1604. Closes #308. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-02tests: add missing requireMartin Afanasjew
Amends e4d0187120e61bc80d31ebecc3b38f0740b20bb5. The `require` was accidentally omitted causing the tests to fail very sporadically (or always, when invoked as `brew tests --only=integration_cmds`).
2016-06-02audit: check Maven Central URLs, prefer redirector (#311)Martin Afanasjew
Should help with being more consistent and makes sure to suggest the HTTPS redirector even if equally valid HTTP URLs for specific hosts or `central.maven.org` are used.
2016-06-02tests: extend cmd/home integration test (#305)Andrea Kao
2016-06-01update-report: improve cache migration messaging.Mike McQuaid
2016-06-01update-report: recreate migration_attempted_file.Mike McQuaid
If the deletion of `HOMEBREW_CACHE` fails then the `.migration_attempted` file will have still been deleted so ensure it is recreated.
2016-06-01test-bot: set --local HOMEBREW_CACHE correctly.Mike McQuaid
It defaults to being in $HOME but we override this meaning that we would destroy the cache every time.
2016-06-01xquartz: expect 2.7.9 on 10.6-10.11 (#307)Martin Afanasjew
2016-06-01update-report: fix Mavericks check.Mike McQuaid
2016-06-01Move HOMEBREW_CACHE to ~/Library/Caches (#292)Mike McQuaid
* cleanup: accept cache as an argument. * config: move default HOMEBREW_CACHE to ~/Library. * brew.1: document new default Homebrew cache. * update-report: migrate legacy Homebrew cache.
2016-06-01Prefer $stderr over STDERR for consistency (#304)Martin Afanasjew
Prior to this change there were only 3 instances of `STD(IN|OUT|ERR)` versus 74 instances of `$std(in|out|err)` in the Homebrew code base. The latter variant is also strongly suggested by bbatsov's Ruby Style Guide.
2016-06-01style: unify indentation in RuboCop configurationMartin Afanasjew
Some elements already used two-space indentation and we also prefer two spaces in our Ruby code. Closes #306. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-01style: use RuboCop 0.40Martin Afanasjew
2016-05-31download_strategy: fix git submodule references (#303)Martin Afanasjew
Some Git versions create absolute `gitdir:` pointers in a submodule's `.git` file, which can be problematic once the resource is staged and causes various Git operations for those submodules to fail. Work around this issue by fixing the submodule `.git` files after submodule update. See Homebrew/homebrew-core#1520 for details and an affected formula.
2016-05-31audit: appease rubocopDominyk Tiller
Closes #302. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-05-31audit: prefer https/s over ftp where known availableDominyk Tiller
The FTP protocol is prone to getting firewalled to death in places, so where we know we can avoid that by using either secure or more commonly accepted protocols let's do so. Examples of output: ``` * Stable: ftp://ftp.cpan.org/pub/CPAN/authors/id/N/NE/NEILB/Time-Duration-1.20.tar.gz should be `http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/Time-Duration-1.20.tar.gz` * Stable: Please use https:// for ftp://ftp.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.89.tar.bz2 ```
2016-05-31audit: update mirrorservice checkDominyk Tiller
mirrorservice accepts `http://ftp.mirrorservice.org` as well, apparently.
2016-05-31audit: check for insecure metacpan urlsDominyk Tiller
2016-05-31Revert "audit: tweak cpan secure urls"Dominyk Tiller
This reverts commit 7bbcf9cacc18aabf78a21ec5cc5892d440631e08.
2016-05-31Revert "audit: tweak cpan secure urls"Dominyk Tiller
This reverts commit 146a16d66bc796f0c6a4c7e2b88f1b73fb0aaa4c.
2016-05-30test_integration_cmds: fix when not a developer.Mike McQuaid
2016-05-30man: changes for 75ab94cDominyk Tiller
2016-05-30tap: default to full clones for developers. (#297)Mike McQuaid
You need a non-shallow clone to push branches upstream so if you often tap and untap taps (e.g. `homebrew/boneyard`) then you need to remember to manually `fetch -unshallow`.
2016-05-30test-bot: tweak readall behaviour. (#300)Mike McQuaid
Check the syntax for Homebrew/brew and don't bother for taps.
2016-05-30test-bot: move to dev-cmd. (#298)Mike McQuaid
This is not a command designed for end-users.
2016-05-30tests: no --only minimum coverage requirement. (#299)Mike McQuaid
This will almost certainly fail every time so let's disable this error.
2016-05-30bintray "package" should be name not full_nameilovezfs
Based on how it's used to construct URLs, the bintray "package" should be the formula name not the formula full_name. For core formulae, there is no difference, but that's not the case in other taps. See https://github.com/Homebrew/homebrew-gui/pull/10 Closes #301. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-05-29audit: make system check stricter with quotes.Mike McQuaid
As mentioned in: https://github.com/Homebrew/homebrew-core/pull/1396#discussion_r64774080
2016-05-29audit: tweak cpan secure urlsTomasz Pajor
2016-05-29audit: tweak cpan secure urlsTomasz Pajor
2016-05-28test-bot: don't `brew tests` for formula PRs. (#294)Mike McQuaid
This adds >1m to every build on every node and it can't actually be affected/fixed by formula PRs.
2016-05-28pull: remove legacy retry block.Mike McQuaid
2016-05-28bottle/test-bot: deep merge bottle JSON hashes.Mike McQuaid
2016-05-28pull: remove legacy-homebrew support. (#293)Mike McQuaid
There's no more pull requests left to pull on this repository.
2016-05-28test-bot: only test --no-compat for Homebrew/brew. (#286)Mike McQuaid
This job takes almost a minute and it's not useful for all core taps to run this.
2016-05-28test-bot: remove support for legacy Homebrew repo. (#287)Mike McQuaid
We're not really getting any more PRs here and this code makes this file harder to follow and refactor.
2016-05-28bottle: JSON-related tweaks/fixes.Mike McQuaid
2016-05-28test-bot: fix tag reference.Mike McQuaid
2016-05-28Use JSON files for bottle upload data. (#166)Mike McQuaid
This means that we do not need to read formulae or evaluate Ruby at upload time.
2016-05-27os/mac/*_mach: move shared code into 'SharedMachO' (#282)Martin Afanasjew
Both the `CctoolsMachO` and `RubyMachO` module implement a common set of methods that simplify querying `mach_data`. Move these into a shared module, that gets included after either of these implementations is loaded and included in `Pathname`.