Commit Graph

1214 Commits

Author SHA1 Message Date
Amory Meltzer 60ecb968e7 Attempt somewhat more clear language upon skipping checksum verification
Added in #16084
2015-12-30 17:40:40 -08:00
Vítor Galvão d11c4f8cf8 Merge pull request #16215 from caskroom/revert-16118-delete-svn
Revert "Delete Subversion support"
2015-12-30 15:13:37 +00:00
Josh Hagins e3fe101f9d Merge pull request #16229 from jawshooah/uninstall-signal
Minor cleanup in uninstall_base.rb
2015-12-30 06:51:02 -05:00
Josh Hagins 0d314d2a73 Minor cleanup in uninstall_base 2015-12-30 06:42:10 -05:00
Josh Hagins 7fced75e82 SystemCommand: escape the executable if there are no args
Open3.popen3 does not escape its first argument if it is given only one.
2015-12-30 06:36:29 -05:00
Vítor Galvão b7c585da31 Revert "Delete Subversion support" 2015-12-29 15:22:57 +00:00
Vítor Galvão ec8684ea9e core: reduce spacing in unknown license comment 2015-12-28 16:01:19 +00:00
Josh Hagins 46a69bba54 Fix audit bug introduced in #16166 2015-12-28 01:41:14 -05:00
Josh Hagins 5daf6f1cba Audit: further spec enhancements and refactoring 2015-12-27 22:27:01 -05:00
Josh Hagins cbf00b1023 Add audit checks for appcast
Check that appcast sha256:
  - exists
  - is a string of 64 hexadecimal characters
  - is not the sha256 for the empty string
2015-12-27 18:46:37 -05:00
Josh Hagins a2be75aa4a Test that audit shows an error for missing name 2015-12-27 18:46:37 -05:00
Josh Hagins 559999fe2b Improve style in audit.rb 2015-12-27 18:46:37 -05:00
Vítor Galvão 5e6e1fef5d Merge pull request #16118 from vitorgalvao/delete-svn
Delete Subversion support
2015-12-27 18:28:07 +00:00
Vítor Galvão 869ad3e330 Merge pull request #16102 from vitorgalvao/nickpellant-feature/auto_updates_stanza
Add :auto_updates stanza for Casks
2015-12-25 23:07:57 +00:00
Vítor Galvão 35b3c004ff Merge pull request #16093 from jawshooah/adobe-air-pathnaem
Add constant Hbc::Container::Air::INSTALLER_PATHNAME
2015-12-25 19:00:33 +00:00
Vítor Galvão 3049279582 removed svn from core 2015-12-25 18:42:02 +00:00
Vítor Galvão c72356b613 fixed conflicts in adding auto_updates 2015-12-24 20:47:40 +00:00
Josh Hagins b7bd809aa9 Add constant Hbc::Container::Air::INSTALLER_PATHNAME 2015-12-24 13:10:15 -05:00
Vítor Galvão 9d0db4ef68 removed tags from core 2015-12-24 16:59:13 +00:00
Josh Hagins 2d53ce9626 Inject force as parameter to Download constructor 2015-12-23 23:14:36 -05:00
Josh Hagins 5264a9eb7d Separate verification from download 2015-12-23 15:21:08 -05:00
Josh Hagins 3de6087786 Move GpgCheck to Verify::Gpg, keep disabled 2015-12-23 15:21:08 -05:00
Josh Hagins 6876240c44 Refactor Verify for better control and testability 2015-12-23 15:21:08 -05:00
Josh Hagins 1fba769e99 Refactor Download to be less monolithic 2015-12-23 15:21:08 -05:00
Aditya Dalal 9c6b40808e verify.rb: Warning on sha :no_check 2015-12-22 15:35:14 -05:00
Vítor Galvão 676505b715 Merge pull request #16021 from vitorgalvao/installer-execute
`installer` and `uninstall` make their `:script` targets executable
2015-12-22 11:38:12 +00:00
Vítor Galvão 13600116c1 staged.rb: check if paths exists in set_permissions set_ownership 2015-12-21 19:39:23 -05:00
Vítor Galvão e14e09d9b7 uninstall :script makes target executable 2015-12-21 21:47:12 +00:00
Vítor Galvão 83c7e77206 installer :script makes target executable 2015-12-21 21:47:12 +00:00
adityadalal924 47261a4b1d remove appcast :format stanza 2015-12-20 11:15:27 -05:00
Vítor Galvão 002fc52244 utils.rb: make issues url point to reporting-bugs instructions 2015-12-18 01:31:57 +00:00
Josh Hagins 25f7cfee04 Remove DSL versions in docs and scripts
Closes #15912.
2015-12-17 19:57:15 -05:00
Josh Hagins 5e79f26d49 Fix `staged_path` and `caskroom_path` in DSL
Fixes #15910.
2015-12-17 18:57:26 -05:00
Josh Hagins ceb7af6e9a Merge pull request #15901 from jawshooah/no-dsl-version
Do not require a DSL version in cask header
2015-12-17 18:48:27 -05:00
Josh Hagins 563a46b6f4 Merge pull request #8887 from ponychicken/staged_path
Make staged_path work in installer stanzas
2015-12-17 15:39:41 -05:00
Josh Hagins 81b91434dc Do not require a DSL version in cask header
Following up on #15782. Casks can now be created with no DSL version in
the header. For example:

  cask 'no-dsl-version' do
    version :latest
    ...
  end

Casks with a DSL version in the header are still valid, but the DSL
version will be ignored.
2015-12-17 14:56:08 -05:00
Aditya Dalal 6fd3cebb22 download.rb: Don't use cached download when cask uses `:latest` 2015-12-17 14:13:09 -05:00
Josh Hagins 43233b2f8b Remove stray unnecessary 'exit 0's 2015-12-16 23:54:23 -05:00
Aditya Dalal 2bf6225788 Merge pull request #15643 from joshka/feature/add-audio-plugin-folders
Add Audio Unit and VST plugin folder artifiacts
2015-12-16 17:16:17 -05:00
Josh Hagins 5fa16a51a0 Uninstall login items with uninstall :login_item 2015-12-11 23:47:46 -05:00
Josh Hagins 2b40fe32ed Refactor dispatch_uninstall_directives
Break up the Wall of Code™ that was UninstallBase#dispatch_uninstall_directives
into several smaller methods.
2015-12-11 23:47:46 -05:00
Josh Hagins c65720470c Remove extra space in update command
I assume this is the more commonly used form. I've never seen anyone space out
their semicolons like `foo ; bar`.
2015-12-10 11:19:38 -05:00
Vítor Galvão 5e79596ef7 long update command now uses ';' instead of '&&' 2015-12-09 17:18:46 -05:00
Vítor Galvão d2674ce560 Merge pull request #15426 from caskroom/generic_unar-force-overwrite
generic_unar.rb: use -force-overwrite
2015-12-09 22:05:38 +00:00
Josh Hagins 4955bac9a9 Warn of legacy installs in doctor 2015-12-09 19:35:23 +00:00
Mike McQuaid fdb4577be8 brew-cask: move to using tap cmd directory.
This provides a few benefits:

- faster `brew cask` execution times as another Ruby process is not
  needed. Cask can instead be loaded in-process with Homebrew. This
  will also make it easier to use some of Homebrew's core code and
  ease moving code from Cask into Homebrew core.
- Users do not need to `brew upgrade` Cask any more: it's done
  automatically on any `brew update` or `git pull` of the Cask tap.
2015-12-09 19:32:49 +00:00
Josh Hagins 1a5faf6cd6 Error out if user attempts an unknown command 2015-12-08 13:02:37 -05:00
Joshua McKinney 76e34435e1 Add Audio Unit and VST plugin folder artifiacts 2015-12-06 16:26:34 -06:00
Nick Pellant b0d339e246 Add :auto_updates stanza for Casks 2015-11-30 12:34:30 +00:00
Vítor Galvão 3bce735fc8 generic_unar.rb: use -force-overwrite 2015-11-26 14:57:25 +00:00
Vítor Galvão 7d6f28fb3c generic_unar.rb: use long flags 2015-11-26 14:17:42 +00:00
forkbomber ef182fafe1 invoke chown more reliable while removing remove artifacts
fixes #14842
2015-11-01 03:20:36 -05:00
Vítor Galvão bdf05fa56c Merge pull request #14648 from caskroom/vitorgalvao-accessibility_access
installer.rb: fix accessibility access conditional order
2015-10-31 00:03:46 +00:00
Josh Hagins d39c95942f cut v0.59.0 2015-10-28 14:07:33 -04:00
Josh Hagins 9793861422 Remove launchjobs even if they are not loaded 2015-10-28 13:46:24 -04:00
Josh Hagins ca2f4bb6b8 Use ENV['HOME'] to check existence of launchjobs
Pathname does not expand '~', so we need to give it the absolute path to
the HOME directory.
2015-10-28 13:46:24 -04:00
Vítor Galvão 2c0acb5ca6 installer.rb: fix accessibility access conditional order 2015-10-25 18:04:25 +00:00
Vítor Galvão eb06f29fa4 finished removing Alfred support 2015-10-21 19:56:04 +01:00
Vítor Galvão da62376be8 cut v0.58.0 2015-10-15 01:11:31 +01:00
Vítor Galvão 08ec256acd Merge pull request #14144 from adityadalal924/el-capitain-accessibility
updated accessibility method for el capitan compatibility
2015-10-15 01:04:43 +01:00
Vítor Galvão c216698c73 cut v0.57.0 2015-10-02 17:03:40 +01:00
Vítor Galvão ac9f388f34 Merge pull request #11110 from delphinus35/remove-sort-in-symlinked
remove `sort` for fixing the bug #9227
2015-10-02 16:33:37 +01:00
adityadalal924 ca5283297d updated accessibility method for el capitain compatibility 2015-10-01 22:40:29 -04:00
Josh Hagins 32364632be Include Hbc::Staged module in Hbc::DSL::Preflight 2015-09-05 13:41:46 -04:00
Josh Hagins c2cfded798 Gracefully handle interrupts (CTRL-C) at top level
Interrupts are possible during any stage of program execution. Certain
areas are protected with Hbc::Utils.ignore_interrupts, but for the rest
we should exit gracefully without spitting out an ugly stack trace.
2015-09-03 10:22:52 +01:00
Josh Hagins b30085af1e cut v0.56.0 2015-08-04 00:27:56 -04:00
Josh Hagins 0b8d492ce9 Merge pull request #12992 from jawshooah/tilde-expansion
Expand tilde in `uninstall :delete`
2015-08-03 13:53:08 -04:00
Josh Hagins 907ac5a1cc Merge pull request #11200 from radeksimko/writeable-symlink-target
Make symlink targets writeable, so we can write altnames
2015-08-03 13:52:46 -04:00
Josh Hagins c0ed120631 Expand tilde in uninstall :delete 2015-08-02 20:25:15 -04:00
Josh Hagins 118520d5a5 cut v0.55.0 2015-08-02 12:24:32 -04:00
Josh Hagins c63984053a Move permissions and ownership helpers to Staged module
These helpers should be available to both postflight and
uninstall_preflight blocks.
2015-08-02 01:39:04 -04:00
Josh Hagins c38110bcec Teach set_permissions and set_ownership to accept multiple paths 2015-08-02 00:54:11 -04:00
Josh Hagins 111cf05d77 Add postflight helpers to set file ownership and permissions 2015-08-01 23:43:54 -04:00
Roland Walker 5eec0916c4 attempt to clean up launchctl plists on uninstall
separate `launchctl unload` and comment that this command was
intended for unloading jobs by pathname rather than bundle ID.
Leave that undocumented for now as it is untested.
2015-07-26 16:52:05 -04:00
Radek Simko bcdd427b80 Merge pull request #12067 from radeksimko/yellow-warnings
Change warning from red to yellow
2015-06-23 14:45:49 +01:00
Andrew 0ad03b7218 Merge pull request #11672 from vitorgalvao/elcapitan
additions for El Capitan
2015-06-23 14:21:37 +02:00
Radek Simko 7967d9fd18 Change warning from red to yellow 2015-06-23 13:06:06 +01:00
Sean Smith 64db9962a2 Changing Fake User Agent
Per #11349, adjusting the fake user-agent string to something Core
is ok with.
2015-06-20 11:50:16 -04:00
Paul Hinze eb496b31fb Merge pull request #9995 from otzy007/list_versions
brew cask list --versions
2015-06-17 12:34:37 -05:00
ndr 2fc9d23239 cut v0.54.1 2015-06-13 19:55:40 +01:00
Vítor Galvão 5fe97c6d12 additions for El Capitan 2015-06-09 16:52:57 +01:00
Andrew Kitchen 8e7a958b6f Allows accessibility entry to be updated if previously installed 2015-06-07 09:18:36 -07:00
Radek Simko c2a20aab1e Make symlink targets writeable, so we can write altnames
- closes #9667
2015-05-15 07:26:22 +01:00
Paul Hinze a952b87291 cut v0.54.0 2015-05-11 09:56:56 -05:00
delphinus 90b48cc177 remove `sort` from symlinked.rb
* fix for the bug issued in #9227
2015-05-10 23:11:05 +09:00
Vítor Galvão 230a116be8 added free_license caveat 2015-04-20 18:20:07 +01:00
Vítor Galvão e8549d3b17 added discontinued caveat 2015-04-20 02:12:59 +01:00
Radek Simko 64c682afa3 Allow :sudo in uninstall stanza (:script + :early_script) 2015-03-29 22:16:51 +01:00
Andrei Gliga 99921ff8cd list installed packages versions 2015-03-11 12:04:14 +02:00
ndr f5a78615ae Audit for illegal SHA-256 digests 2015-02-25 21:35:05 +00:00
Paul Hinze e65c40bb2b cut v0.53.3 2015-02-09 15:43:49 -06:00
Paul Hinze 4d1140a55f core: _actually_ fix caveats
there was another untested place where the cask methods were being
re-implemented. these were preventing casks with caveats from working
properly.

refs #9494
2015-02-09 15:30:26 -06:00
Paul Hinze 5df43132cb cut v0.53.2 2015-02-09 09:50:07 -06:00
Paul Hinze 7856eec860 core: fix preflight/postflight casks
These were broken in the refactor to extract Hbc::Cask from Hbc.

fixes #9503
2015-02-09 09:28:41 -06:00
Paul Hinze ca79d4b3df cut v0.53.1 2015-02-08 08:42:14 -06:00
Paul Hinze 41fcf55bc7 Merge pull request #9491 from caskroom/bsexec-requires-sudo-now-i-guess
10.10.3 fix: pull bsexec from mount commands
2015-02-08 08:31:25 -06:00
Paul Hinze 05dc81431d 10.10.3 fix: pull bsexec from mount commands
It seems like in 10.10.3 apple, in its infinite wisdom, decided that the
bsexec option for launchctl would suddenly require root privileges.

Since we were proactively using bsexec for all DMG mounts, this was
breaking dmg-based Casks for all early adopters of 10.10.3.

We can regroup to try and address #7132 another way, but for now, just
pulling all the bsexec stuff out.
2015-02-08 08:23:42 -06:00
Paul Hinze ea3fbf8e27 Merge pull request #9475 from rolandwalker/fix_rmdir
fix `uninstall :rmdir` silent failure
2015-02-08 07:31:24 -06:00
Roland Walker add0279512 Merge pull request #9478 from caskroom/rename-cleanup-cli-option
cli: [refactor] rename outdated option internally
2015-02-07 19:12:13 -05:00
Paul Hinze 5bbba24bf9 cli: [refactor] rename outdated option internally
The `Hbc.outdated` boolean was in the way of my implementation of an
`outdated` scope for `brew cask outdated`, so I took the opportunity to:

 * rename the flag internally to `cleanup_outdated`
 * move the cleanup tests over to rspec and rework them to test in a
   stubbed cleanroom environment
 * refactor the implementation of cleanup to make it a bit more
   testable - most importantly: inject the cache location and outdated
   config dependencies instead of looking them up from constants

Note that there's no change to the user-facing interface, it's still

```
brew cask cleanup --outdated
```
2015-02-07 18:06:51 -06:00