Commit Graph

1078 Commits

Author SHA1 Message Date
Paul Hinze a952b87291 cut v0.54.0 2015-05-11 09:56:56 -05: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
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
Paul Hinze 63d748e14c core: [refactor] separate Hbc::Cask from Hbc
Hbc is the namespace, Hbc::Cask is the object representing a Cask

One step on the path to reducing the surface area of the God-object
we've grown over the years. :)
2015-02-07 16:37:32 -06:00
Roland Walker 42633f23d2 fix `uninstall :rmdir` silent failure
closes #9446.  The bug looks like a downstream effect of
removing Homebrew monkeypatches.
2015-02-07 12:43:43 -05:00
Roland Walker 8a81cb54a1 Use bold terminal escapes instead of white
Let the terminal decide how to display bold.  Fixes #9349.
The issue arose when integrating Homebrew's `Tty` class.
Homebrew's `Tty.white` actually emits escapes for bold.

Fixing `Tty.white` to do what the method name says caused
loss of visibility on light backgrounds.
2015-02-07 12:16:45 -05:00
Paul Hinze d8942b7210 alfred: bring back cli command as stub
Make `brew cask alfred` inform the user about the new Alfred support for
Casks. Should help with the transition.

refs #9405
2015-02-06 09:52:06 -06:00
ndr eb25dc5f0d Use Hbc::Verify in Hbc::Installer
as a distinct step serving the general purpose of verification, e.g. of
integrity with sha, authenticity with gpg…
2015-01-24 15:34:11 +00:00
ndr dd93689e5b Add helper for verification of multiple properties
With the expectation that:
- we will add gpg checks;
- we may add a `verify` verb;
- we may introduce new means of verification, e.g. OS X's `codesign`
2015-01-24 15:33:06 +00:00
ndr b226ffb609 Move checksum methods to new Hbc::Verify module
and merge them into a single definition.
2015-01-24 15:32:28 +00:00
ndr 23887c8fdf cut v0.53.0 2015-01-23 10:58:08 +00:00
Roland Walker e1ad5a270f expand tilde in $PATH for internal which method
restores Homebrew's behavior with regard to external commands
fixes #8889
2015-01-15 10:43:06 -05:00
ndr 8af88b78e6 Merge pull request #8869 from rolandwalker/which_editor
apply `which` to default editor values
2015-01-15 01:32:26 +00:00
Roland Walker dbfe0db2de apply `which` to default editor values
this was lost during integration from Homebrew
2015-01-14 07:37:45 -05:00
Vítor Galvão 0ae2edd707 Merge pull request #8840 from vitorgalvao/remove-alfred
Removed alfred command support
2015-01-13 21:27:17 +00:00
Vítor Galvão 078f0b0300 removed alfred support 2015-01-13 17:49:32 +00:00
ndr 57867eef32 Merge pull request #8870 from rolandwalker/remove_release_constants
remove homebrew-fork `MACOS_RELEASE` constants
2015-01-13 17:48:54 +00:00
Roland Walker a401047164 remove homebrew-fork MACOS_RELEASE constants
* contain logic within module Hbc::MacOS
* add release_with_patchlevel method
* allow MACOS_RELEASE and MACOS_RELEASE_WITH_PATCHLEVEL
  environment variables to override the determined release
  values regardless of whether under the test harness
2015-01-13 07:35:27 -05:00
Roland Walker 28a61d70a7 Merge pull request #8790 from ndr-qef/core/flense_homebrew
Split arguments on whitespace when executing editors
2015-01-13 07:08:25 -05:00
ndr d5722ee079 Merge pull request #8751 from vitorgalvao/remove-widget-support
Remove support for widgets
2015-01-11 12:29:00 +00:00
ndr 8fa1f4db24 Split ENV variables on whitespace in `exec_editor` 2015-01-09 22:31:59 +00:00
Vítor Galvão 529bd801e4 Removed support for widgets
Closes #2206.
2015-01-08 19:51:15 +00:00
Roland Walker d0f9363de5 cut v0.52.1 2015-01-07 18:31:26 -05:00
Roland Walker a146a1c313 Merge pull request #8721 from rolandwalker/integrate_download_strategy
partial merge of homebrew-fork download_strategy
2015-01-07 18:19:12 -05:00
Roland Walker db23f90c3e Merge pull request #8723 from rolandwalker/move_homebrew_path_constants
recast `HOMEBREW_*` path constants as read/write location methods
2015-01-07 18:19:02 -05:00
Roland Walker 4b4e8cf706 incorporate homebrew-fork ignore_interrupts
utility method
2015-01-07 09:51:39 -05:00
Roland Walker b40b0c99e1 strip constants from homebrew-fork global.rb
and corresponding testing_env.rb.
* recast HOMEBREW_BREW_FILE as Hbc.homebrew_executable,
  defined in Hbc::Locations
* recast HOMEBREW_REPOSITORY as Hbc.homebrew_repository
* recast HOMEBREW_PREFIX as Hbc.homebrew_prefix
* remove HOMEBREW_LIBRARY
* recast existing Hbc.tapspath as Hbc.homebrew_tapspath
  to match new methods

fixes #8705
2015-01-07 09:09:53 -05:00
Roland Walker 5452a496db remove unneeded load_path 2015-01-07 09:06:33 -05:00
Roland Walker 526c8c08e7 cleaner way to allow spec test to run
without creating unwanted directories
2015-01-07 09:06:06 -05:00
Roland Walker 9deef47e2e partial merge of homebrew-fork download_strategy
merge module Hbc::DownloadStrategy and class Hbc::HbAbstractDownloadStrategy
into class Hbc::AbstractDownloadStrategy
2015-01-07 05:34:03 -05:00
ndr 83bf761588 Improve error message for AIR app reinstallation
Adobe AIR Installer forbids the silent reinstallation of existing AIR
apps; any attempt fails with exit code 9.

In the absence of known workarounds, we merely wrap the failure in a
clearer error message.
2015-01-04 11:46:26 +00:00
ndr 2dbb8e57b6 Check for DSL-level nils when sorting dependencies
Refer to #8615.

`depends_on.cask` can be nil if a Cask includes at least one
`depends_on` stanza, but no `:cask` key.
2015-01-04 02:30:36 +00:00
Roland Walker 95325125dd Merge pull request #8612 from rolandwalker/strip_homebrew_fork_download_strategy
strip homebrew-fork download_strategy.rb
2015-01-03 14:47:05 -05:00
Roland Walker 050897a8a5 strip homebrew-fork download_strategy.rb
remove unused or overridden methods
remove usused classes
2015-01-03 08:29:13 -05:00
Roland Walker 774eae75a8 replace homebrew-fork method exec_editor
remove which_editor
remove safe_exec
2015-01-03 07:59:51 -05:00
Roland Walker 4e59f6c55b cut v0.52.0 2015-01-02 19:09:43 -05:00
Roland Walker 7741262b8f Merge pull request #8595 from rolandwalker/remove_homebrew_fork_resource
remove homebrew-fork resource.rb
2015-01-02 17:18:50 -05:00
Roland Walker 00786c68a8 audit check for sha256 of the empty string 2015-01-02 10:30:26 -05:00