13531 Commits

Author SHA1 Message Date
Markus Reiter
dccdac55a8 Add helper for testing TTY output. 2017-07-08 00:57:08 +02:00
Markus Reiter
d29cb450f7 Output plain list when running brew cask search without a TTY. 2017-07-07 19:42:03 +02:00
Markus Reiter
8ec08479ae Merge pull request #2865 from reitermarkus/cleanup-directories
Also remove directories with `brew cask cleanup`.
2017-07-07 17:25:02 +02:00
Mike McQuaid
0740855f81 Merge pull request #2870 from MikeMcQuaid/node-cleanup
language/node: general cleanup.
2017-07-07 15:59:35 +01:00
Mike McQuaid
81dbc29566 Merge pull request #2853 from GauthamGoli/disable-strict-cops-brew-style
style: Don't run FormulaAuditStrict cops when `brew style foo` cmd is executed
2017-07-07 15:43:55 +01:00
Mike McQuaid
9f6762d958 language/node: general cleanup.
- Avoid using a temporary variable where not necessary
- Use fewer, better stubs in the tests to avoid warnings and better
  test the implemented functionality.
2017-07-07 15:11:41 +01:00
Mike McQuaid
1406f89ac5 Merge pull request #2863 from mistydemeo/formula_keg_only_boolean
Formula#keg_only should be a boolean
2017-07-07 10:14:32 +01:00
Mike McQuaid
ddb1fd7981 Merge pull request #2841 from mistydemeo/formula_assertions_constant
Define a custom assertion failure error for cross-version compat
2017-07-07 10:14:21 +01:00
Mike McQuaid
e8c38a0165 Merge pull request #2868 from MikeMcQuaid/audit-even-moar-stable-version-alias
audit: don't suggest non-stable versioned alias.
2017-07-07 10:14:11 +01:00
Mike McQuaid
5c2fa1fc1f test: use Test::Unit class. 2017-07-07 09:44:02 +01:00
Mike McQuaid
7aaa7e1b79 formula_assertions: make removable on Ruby 2.0. 2017-07-07 09:43:39 +01:00
Mike McQuaid
bddafe4d54 audit: don't suggest non-stable versioned alias.
Additionally handle the case where a formula has been installed as
devel/HEAD rather than just e.g. `brew audit --devel`.
2017-07-07 09:30:18 +01:00
Mike McQuaid
fa031f5045 formula: tweak keg_only? formatting. 2017-07-07 09:23:31 +01:00
Mike McQuaid
d9e0a0bce6 rubocop.yml: remove doublenegation disable. 2017-07-07 09:22:39 +01:00
Mike McQuaid
e499925c7d Merge pull request #2866 from MazterQyou/patch-1
Fix a broken link
2017-07-07 09:19:24 +01:00
Alex Qyoun-ae
04d0d38435 Fix a broken link 2017-07-07 04:46:19 +03:00
Markus Reiter
0217fb5d9d Also remove directories with brew cask cleanup. 2017-07-06 20:59:35 +02:00
Mike McQuaid
ae33f5c79c Merge pull request #2859 from jonchang/fix-sse3-linux
cpu: fix SSE3 detection on Linux
2017-07-06 08:28:20 +01:00
Misty De Meo
5adca2e33d Disable Style/DoubleNegation cop
As discussed in bbatsov/rubocop#3344, there are situations where
this is the shortest and most idiomatic way to convert a value
to a boolean - particularly for checking values which can be
nil or truthy.
2017-07-05 17:51:57 -07:00
Misty De Meo
a79dc3e65b Formula#keg_only should be a boolean 2017-07-05 16:34:59 -07:00
Markus Reiter
66f887e910 Merge pull request #2860 from reitermarkus/rubocop-cask-version
Bump `rubocop-cask` version.
2017-07-06 01:05:59 +02:00
Jonathan Chang
5ab745574c cpu: fix SSE3 detection on Linux 2017-07-05 13:03:39 -07:00
Markus Reiter
65b9e06082 Bump rubocop-cask version. 2017-07-05 20:51:51 +02:00
Gautham Goli
e9dfa736bf style: Don't run FormulaAuditStrict cops when brew style some_formula cmd is executed 2017-07-03 12:54:04 +05:30
Mike McQuaid
b552908490 Merge pull request #2851 from MikeMcQuaid/missing-formula-no-core
missing_formula: no need to tap homebrew/core.
1.2.4
2017-07-02 16:02:42 +01:00
Mike McQuaid
835135cb68 missing_formula: no need to tap homebrew/core.
Avoiding printing the weird message e.g:
```
It was migrated from homebrew/science to homebrew/core.
You can access it again by running:
  brew tap homebrew/core
```
2017-07-02 15:28:44 +01:00
Mike McQuaid
bb33685255 Interesting-Taps-and-Forks: rename fixes.
Rename to avoid sitemap.xml escaping issues.
2017-07-02 15:20:28 +01:00
Mike McQuaid
31ca5c9aed docs/config: add missing feed plugin. 2017-07-02 15:13:00 +01:00
Mike McQuaid
72c24b9498 docs: Add sitemap.xml, robots.txt.
Also, while we're here, cleanup the favicon and apple-touch-icon
duplication mess.
2017-07-02 15:09:26 +01:00
ilovezfs
f012660489 Merge pull request #2850 from ilovezfs/software-spec-rescue-unavailable
software_spec: rescue TapFormulaUnavailableError in recursive_dependencies
2017-07-02 06:48:39 -07:00
Mike McQuaid
2b3717a5a0 Merge pull request #2842 from GauthamGoli/audit_only_cops_option
audit: Don't run audit methods when `--only-cops` option is passed
2017-07-02 14:45:29 +01:00
ilovezfs
418f578601 software_spec: rescue TapFormulaUnavailableError in recursive_dependencies 2017-07-02 06:25:25 -07:00
Markus Reiter
eb110e94f0 Merge pull request #2772 from reitermarkus/dmg-eula
Fix DMG mounting.
2017-07-02 02:04:07 +02:00
ilovezfs
a94a938285 Merge pull request #2829 from mislav/bump-formula-pr-unshallow
Fix `bump-formula-pr` when working with a shallow git clone
2017-07-01 09:15:07 -07:00
Markus Reiter
fd5e673d2d Merge pull request #2825 from reitermarkus/refactoring
Refactoring using `Forwardable` and `DelegateClass`.
2017-07-01 05:32:19 +02:00
JCount
0a5052141d Merge pull request #2827 from JCount/version-improve-url-only-version-parsing
version: improve url-only version parsing
2017-06-30 11:37:28 -04:00
Gautham Goli
e6938d9201 Enable LegacyPatches cop 2017-06-30 20:25:18 +05:30
Gautham Goli
8c167b23cc audit: Don't run audit methods when --only-cops is passed 2017-06-30 20:25:12 +05:30
JCount
d50312ae6b version_spec: add tests for char prefixed and w.x.y.z url-only styles 2017-06-30 10:53:24 -04:00
JCount
f87fadd4ee version: improve parsing of url-only, non-filename versions
add support for styles prefixed with a r,v,V and an optional _ ,
and styles with four groups of digits, seperated by periods;
combinations of the two are also supported
2017-06-30 10:53:24 -04:00
Mike McQuaid
bfe4eed034 Merge pull request #2826 from chrmoritz/languagenode
language/node: multiple improvements
2017-06-30 15:14:32 +01:00
Mike McQuaid
202b3bc2c1 Merge pull request #2813 from DomT4/high_sierra_updates
High Sierra: update expected CLT/libcurl pkgconfig file.
2017-06-30 15:10:23 +01:00
Markus Reiter
29ffe15890 Merge pull request #2819 from reitermarkus/trash
🗑️ Use AppleScript instead of Swift for trashing.
2017-06-30 14:38:57 +02:00
Misty De Meo
0077e4f20e Merge pull request #2837 from mistydemeo/audit_request_full_index_patches
audit: ask for full_index patches
2017-06-29 19:57:14 -07:00
Misty De Meo
5b464babf8 Define a custom assertion failure error for cross-version compat
Fixes #2840.
2017-06-29 17:40:04 -07:00
Markus Reiter
6a1fa87191 Refactor Formula/Cask dependencies. 2017-06-30 02:20:50 +02:00
Christian Moritz
5e00c277ce partly revert log verbose npm pack output commit
to fix issues with shwoing npm debug output even on non-verbose install runs.
2017-06-30 00:55:34 +02:00
Christian Moritz
7910e4a5b4 language/node update documentation 2017-06-29 20:29:25 +02:00
Christian Moritz
6baea2543a language/node: set cache config via argument
instead of writing a .npmrc file, which simplifies the code.
npm_cache_config is still preserved for backwarts compatiblility and
usage int he kibana@n formulas in core.
2017-06-29 20:29:25 +02:00
Christian Moritz
466fe9841a language/node: npm pack ignore prepublish scripts
This tells npm pack to don't run prepublish scripts at all.
I think this is the best default because:
* most modules don't have a prepublish script at all and aren't affected
  by this change
* most prepublish scripts are calling devDeps, which would fail in our
  case, because (dev)Deps aren't installed at npm pack time until #2820
  gets resolved
* we favor npm registry tarball for formula downloads, which are already
  prepublished, so we would in the best case needlessly run prepublish
  a second time and in the worst case it would fail (because a clean
  step is required before running prepublish a second time in a row)
* This change does the right thing for >99% of all the packages and
  would only affect packages with prepublish scripts downloaded from a
  non-npm registry tarball (like github tarballs) and with a prepublish
  script wich does no't require any devDep (unlike for cross platform)
2017-06-29 20:29:25 +02:00