buo
6a406763f3
Open incomplete download in append mode
...
Open the incomplete download in append mode instead of write mode.
Opening in write mode truncates the existing file, so curl keeps
restarting downloads instead of resuming the incomplete downloads.
2016-10-25 16:46:59 +09:00
Josh Hagins
652c5bc865
formula_installer: fix regression in #1253
...
Apparently `cellar :any_skip_relocation` doesn't actually mean we
can skip relocation, at least for text files.
2016-10-25 03:41:37 -04:00
Zhiming Wang
dd527bfcdc
bottle: fix nonexistent pyc bug
...
We were deleting pyc files *after* replace_locations_with_placeholders
and recording changed_files, meaning that some of the recorded files
were to be deleted. The correct order is the opposite.
A sample failed session: https://bot.brew.sh/job/Homebrew%20Core/10080/version=el_capitan/testReport/junit/brew-test-bot/el_capitan/bottle_buku/ .
2016-10-25 01:44:40 -04:00
Josh Hagins
79e8cdd3ed
Merge pull request #1253 from jawshooah/perf/relocate-text-files
...
keg_relocate: cache files rewritten during brew bottle
2016-10-24 16:44:36 -04:00
Josh Hagins
fab2cffe5d
keg_relocate: wrap relocation locations in struct
2016-10-24 16:21:08 -04:00
Josh Hagins
adc4b1f0c7
keg_relocate: brew style fixes
2016-10-24 16:21:08 -04:00
Josh Hagins
9c519bbdbc
keg_relocate: refactor relocate_text_files
...
Replace relocate_text_files with three methods that clarify intent:
replace_locations_with_placeholders, replace_placeholders_with_locations
and replace_text_in_files, the first two calling the third.
2016-10-24 16:21:08 -04:00
Josh Hagins
5b64fa6fb1
metafiles: convert Metafiles class to module
2016-10-24 16:21:08 -04:00
Josh Hagins
9628a613cf
metafiles: use Set.new instead of Array#to_set
2016-10-24 16:21:08 -04:00
Josh Hagins
ce33f593b4
metafiles: convert EXTENSIONS and BASENAMES from Array to Set
2016-10-24 16:21:08 -04:00
Josh Hagins
c46155aba4
keg_relocate: cache files rewritten during brew bottle
...
`brew bottle` replaces instances of the Homebrew prefix, cellar, and
repository with placeholders in all text files. Cache these files in
INSTALL_RECEIPT.json so that we don't have to check every single text
file for placeholders on install.
2016-10-24 16:21:08 -04:00
Markus Reiter
e6bce5ec27
Merge pull request #1342 from reitermarkus/fixtures
...
Move cask's fixtures to `test/fixtures`.
2016-10-24 22:09:45 +02:00
Josh Hagins
4f73fa7012
Merge pull request #1363 from reitermarkus/rubocop-percent-literals
...
Don’t use bare percent literals.
2016-10-24 12:29:22 -04:00
Markus Reiter
b28b21fd7f
Don’t use bare percent literals.
2016-10-24 17:27:20 +02:00
Josh Hagins
3f3fa4d0f7
Merge pull request #1334 from jawshooah/cask/fix-tap-regex
...
hbc/qualified_token: simplify token parsing
2016-10-24 10:38:02 -04:00
Mike McQuaid
b39f87e710
audit: check for alpha/beta/rc usage in URLs.
...
Stable URLs should not use unstable versions.
2016-10-24 14:54:28 +01:00
Markus Reiter
31ec04704a
Move cask fixtures to test/fixtures/cask
.
2016-10-24 15:52:41 +02:00
Josh Hagins
b2870c2480
hbc/qualified_token: use regex captures instead of String#split
2016-10-24 09:50:33 -04:00
Mike McQuaid
762b76e437
audit: check the version does not decrease.
...
This will prevent `brew upgrade` from working correctly.
2016-10-24 10:21:07 +01:00
Josh Hagins
4ed51d8240
hbc/auditor: refactor and fix bug
...
Use instance methods to DRY things up, and fix a bug discovered in
caskroom/homebrew-cask#26067 where Casks with language blocks would
always fail audit.
2016-10-24 04:27:21 -04:00
Josh Hagins
b481ed73a0
Merge pull request #1252 from niw/fix_cask_command_changes_entire_directory_ownership
...
FIX: cask changes /usr/local ownership recursively
2016-10-24 01:21:08 -04:00
Josh Hagins
606a762344
Merge pull request #1248 from Git-Jiro/add_reinstall_cmd_to_cask
...
add cask reinstall command
2016-10-24 01:11:48 -04:00
Martin Schimandl
0b8af5771f
Remove duplicate description of <token>
2016-10-24 05:30:49 +02:00
Josh Hagins
c7e6613f7b
tap_constants: rename HOMEBREW_CASK_TAP_FORMULA_REGEX
...
New name is HOMEBREW_CASK_TAP_CASK_REGEX
2016-10-23 21:48:11 -04:00
Josh Hagins
44f1354d63
hbc/qualified_token: simplify token parsing
...
- Stop supporting archaic "user-repo/token" syntax
- Move regex for parsing tapped Cask token to tap_constants
2016-10-23 21:48:11 -04:00
Josh Hagins
512a0c950e
Merge pull request #1355 from reitermarkus/fix-depends-on-test
...
Fix locally failing `depends_on` test.
2016-10-23 21:42:48 -04:00
Josh Hagins
5d1412aba1
Merge pull request #1357 from reitermarkus/refactor-accessibility-test
...
Refactor accessibility test.
2016-10-23 21:41:35 -04:00
Josh Hagins
fcaa042736
Merge pull request #1358 from reitermarkus/refactor-audit-test
...
Refactor Audit test.
2016-10-23 21:40:54 -04:00
Josh Hagins
b59eade6c5
Merge pull request #1359 from reitermarkus/refactor-dsl-test
...
Refactor DSL test.
2016-10-23 21:40:06 -04:00
Josh Hagins
49155cce4d
Merge pull request #1360 from reitermarkus/refactor-installer-test
...
Refactor Installer test.
2016-10-23 21:38:39 -04:00
Josh Hagins
c551252da2
Merge pull request #1356 from reitermarkus/refactor-url-checker-test
...
Refactor Hbc::UrlChecker test.
2016-10-23 21:37:10 -04:00
Markus Reiter
4a9b48e9a6
Refactor Installer test.
2016-10-24 00:13:48 +02:00
Markus Reiter
7395c049dd
Refactor Audit test.
2016-10-23 23:52:42 +02:00
Markus Reiter
bbc601c3fd
Refactor DSL test.
2016-10-23 23:52:14 +02:00
Markus Reiter
b8ec62bf25
Refactor accessibility test.
2016-10-23 23:45:10 +02:00
Markus Reiter
1bcaad6f3f
Update Gemfile dependencies.
2016-10-23 23:22:39 +02:00
Markus Reiter
c7a535de22
Refactor Hbc::UrlChecker test.
2016-10-23 22:58:01 +02:00
Markus Reiter
7cae29d3d7
Fix locally failing depends_on
test.
2016-10-23 21:22:38 +02:00
Martin Schimandl
95d4a25891
Fix linting errors
2016-10-23 20:39:53 +02:00
Martin Schimandl
32dc78835d
Add documentation for cask reinstall command
2016-10-23 20:20:08 +02:00
Markus Reiter
0c140f0970
Merge pull request #1353 from reitermarkus/fix-linked-caskroom-tap
...
Use proper path to `caskroom/cask` tap in `test_helper`.
2016-10-23 19:34:50 +02:00
Markus Reiter
ddcab26a35
Use proper path to caskroom/cask
tap in test_helper
.
2016-10-23 19:07:45 +02:00
Josh Hagins
5a03b492f4
Merge pull request #1350 from Eitot/dictionary
...
Cask: add dictionary artifact
2016-10-23 12:18:57 -04:00
Eitot
0b176f9cc8
Add dictionary artifact
2016-10-23 17:43:06 +02:00
Markus Reiter
773d20fb0c
Merge pull request #1352 from reitermarkus/fix-repo-info
...
Fix failing test caused by `repo_info`.
2016-10-23 17:26:24 +02:00
Markus Reiter
cb8af6d751
Fix failing test caused by repo_info
.
2016-10-23 17:07:29 +02:00
Markus Reiter
19347f3b87
Merge pull request #1266 from reitermarkus/rubocop
...
Remove Cask’s RuboCop configuration.
2016-10-23 16:19:20 +02:00
Markus Reiter
8d15bddedb
Auto-correct block delimiters.
2016-10-23 14:44:14 +02:00
Markus Reiter
827b48912a
Avoid empty rescue.
2016-10-23 14:32:46 +02:00
Markus Reiter
8c488de3f6
Remove unnecessary string interpolation.
2016-10-23 14:32:34 +02:00