612 Commits

Author SHA1 Message Date
Markus Reiter
3f7e63a24c
Merge pull request #3492 from amyspark/fix-latest-casks
Properly upgrade Casks with version :latest
2017-11-29 15:00:57 +01:00
L. E. Segovia
96187ade92 Leftover of @reitermarkus's comments
Simplify a condition
2017-11-29 01:11:30 +00:00
L. E. Segovia
ab62be5345 Implement @reitermarkus's comments
Leftover && and remove xattr "copy"
2017-11-29 01:02:50 +00:00
L. E. Segovia
657d4eaee9 Remove unused backup and metadata logic 2017-11-28 23:55:05 +00:00
Markus Reiter
5d449cf34e Fix external Cask commands. 2017-11-29 00:12:17 +01:00
L. E. Segovia
63961ac465 Fully separate purge_versioned_files 2017-11-28 21:00:16 +00:00
Markus Reiter
f355897afa Only show kext caveat on High Sierra or above. 2017-11-28 21:59:20 +01:00
L. E. Segovia
5840b2fa68 Rename purge_backed_versioned_files to purge_backed_up_versioned_files 2017-11-28 20:36:36 +00:00
L. E. Segovia
9227c8fe3c Try #2 at handling backed up Casks
Avoid using variables altogether; fork out the purge into two
specialized + one common function
2017-11-28 18:03:57 +00:00
L. E. Segovia
9458e985b7 Always backup the old Cask prior to upgrade
(and if doing so, correctly set the staged_path when purging it)
2017-11-28 17:37:36 +00:00
L. E. Segovia
2ff114bc32 Use the proper path when purging metadata 2017-11-28 14:29:53 +00:00
L. E. Segovia
8386b9384c Solve styling and metadata issues 2017-11-28 13:34:50 +00:00
L. E. Segovia
f3355b2a2c Stage to a different directory if upgrading Casks w/version :latest 2017-11-28 13:03:16 +00:00
Markus Reiter
89845e7f76 Fix _stanza test. 2017-11-28 00:20:29 +01:00
Markus Reiter
1948729ec8 Refactor caveats and add kext caveat. 2017-11-28 00:20:29 +01:00
Markus Reiter
f50ae44980
Merge pull request #3396 from amyspark/hacktoberfest-upgrade
Implement `brew cask upgrade`
2017-11-27 23:41:03 +01:00
L. E. Segovia
e0be066f8b Load Casks only once (and fix style issues) 2017-11-24 01:21:30 +00:00
L. E. Segovia
7ee98eb421 Implement more of @reitermarkus's comments
- Simplify outdated Casks checks
- Make use of RSpec's let(:) and .and syntax
2017-11-24 00:48:14 +00:00
Markus Reiter
a98b35d924 Fix SystemCommand escaping. 2017-11-23 03:21:44 +01:00
Shaun Jackman
0a2bfa66fd Installing casks is supported only on macOS 2017-11-22 10:38:06 -08:00
L. E. Segovia
7ce4319012 Upgrade an outdated Cask just by name, no need for --greedy 2017-11-22 16:27:13 +00:00
Markus Reiter
a869ce0143
Merge pull request #3371 from commitay/cask-doctor
Cask doctor: add macOS & Java versions
2017-11-22 10:32:17 +01:00
L. E. Segovia
c9b5de4cab Output message if no Casks are outdated 2017-11-22 00:45:29 +00:00
L. E. Segovia
8ee6ac2613 Implement @reitermarkus's comments
- Split move into a move_back (and clarify when it is used)
- Remove unused flags
- Raise error if installed Caskfile not found
- Error out if an upgrade fails
- Remove some defensive programming checks
2017-11-16 10:40:32 -03:00
L. E. Segovia
36fe355159 Add tests for upgrade recovery 2017-11-13 08:46:08 -03:00
L. E. Segovia
8cc1aea5f0 Implement @reitermarkus's upgrade flow 2017-11-11 17:21:13 -03:00
Martin Schimandl
17e001bd30 Remove (soon to be) obsolete check
Fix small typo
2017-11-10 20:16:38 +01:00
Martin Schimandl
fea5350d52 Add line break to string 2017-11-10 20:16:38 +01:00
Martin Schimandl
4e4405e6d7 split string to stay below 80 characters per line 2017-11-10 20:16:38 +01:00
Martin Schimandl
2b261ad4a7 Refactor code to reduce characters per line 2017-11-10 20:16:38 +01:00
Martin Schimandl
5eab54f892 Reduce verbosity of artifacts hash 2017-11-10 20:16:38 +01:00
Martin Schimandl
52343142a7 Remove unused variables. Refactor code 2017-11-10 20:16:38 +01:00
Martin Schimandl
d03720320a adapt internal_stanza command to work with SortedSet of Artifacts 2017-11-10 20:16:38 +01:00
Martin Schimandl
587c5b07b3 Fix handling of artifact set 2017-11-10 20:16:38 +01:00
Martin Schimandl
255e991cc3 Remove obsolete code to fix tests. 2017-11-10 20:16:38 +01:00
Martin Schimandl
db2c86204b internal_stanza.rb: Remove obsolete code. Improve detection of missing stanzas
internal_stanza_spec.rb: change do ... end blocks to { } blocks
2017-11-10 20:16:38 +01:00
Martin Schimandl
dfe4e7641a combine errors to a single if-statement. fix spec test 2017-11-10 20:16:38 +01:00
Martin Schimandl
99b7636008 Fix 'brew style' issues 2017-11-10 20:16:38 +01:00
Martin Schimandl
ff2239509d Change behaviour of 'cask _stanza' command. Add tests for 'cask _stanza' command 2017-11-10 20:16:38 +01:00
Martin Schimandl
be68f3d7b4 Fix 'brew style' offenses 2017-11-10 20:16:38 +01:00
Martin Schimandl
b7a51eab6b improve 'brew cask _stanza' by checking for known stanzas 2017-11-10 20:16:38 +01:00
L. E. Segovia
72e673afae Fix reinstall/uninstall tests 2017-11-10 11:33:44 -03:00
L. E. Segovia
522a229dbb Fix upgrade tests and some upgrade? leftovers 2017-11-08 08:33:33 -03:00
L. E. Segovia
94d266e2d6 Rework uninstallation step
Now the artifacts get re-staged, and upon an uninstall/finalize_upgrade
they are deleted by purge_versioned_files instead
2017-11-06 21:27:02 -03:00
L. E. Segovia
84c128411f Fix style issues 2017-11-06 18:33:29 -03:00
Markus Reiter
bd0b763292 Refactor DependsOn with DelegateClass. 2017-11-06 21:13:39 +01:00
Markus Reiter
4eeac6f884
Merge pull request #3389 from amyspark/hacktoberfest-single-zap
Check that a single uninstall_* and zap stanza is defined
2017-11-03 13:23:08 +01:00
commitay
a8788015b6 Cask doctor: add macOS & Java versions 2017-11-03 08:37:10 +10:00
L. E. Segovia
eaae7f3a5b Fix last remaining style issues 2017-11-02 09:56:51 -03:00
L. E. Segovia
7f398d01b8 Turn ifs into multiple lines 2017-11-01 22:35:41 -03:00