Commit Graph

483 Commits

Author SHA1 Message Date
Josh Hagins b4c8ac8e87 Ensure user's HOMEBREW_CASK_OPTS has no effect on tests 2016-01-02 14:43:47 -05:00
Josh Hagins 7cbe4262b3 Add Hbc::DSL::Version wrapper class 2015-12-31 12:06:16 -05:00
Josh Hagins 54ee86afa0 Extract travis build logic into scripts 2015-12-31 02:54:22 -05:00
Josh Hagins 77377bda2c Fix with-suite test cask header 2015-12-28 18:16:14 -05:00
Vítor Galvão 7f6949cb02 tests: reduce spacing in unknown license comment 2015-12-28 16:01:04 +00:00
Josh Hagins cd80f86afb Colorize minitest output with minitest-reporters gem 2015-12-27 23:20:54 -05:00
Josh Hagins 8c0d54a71a Add name to test cask with-suite 2015-12-27 19:06:58 -05:00
Tommy Sparber 18f1402dc1 Switch to HTTPS for 360 Casks
Every changed URL was reachable using valid HTTPS and returned a
StatusCode of 200.
2015-12-27 10:11:04 +11: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 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 0d4e59c4aa removed tags from tests 2015-12-24 17:01:28 +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
Josh Hagins fbfa795683 Use shared examples to DRY up *flight tests 2015-12-21 19:39:23 -05:00
Josh Hagins 7b486a827f Add support for RSpec-style shared examples in MiniTest 2015-12-21 19:39:21 -05:00
adityadalal924 47261a4b1d remove appcast :format stanza 2015-12-20 11:15:27 -05:00
Vítor Galvão 26153073f2 cat_test.rb: fix syntax inconsistencies 2015-12-20 00:57:32 +00:00
Josh Hagins f25b6babcd Merge pull request #15913 from jawshooah/remove-dsl-versions
Remove DSL versions from all casks
2015-12-17 20:46:23 -05:00
Vítor Galvão e9a18e907f dsl_test.rb: make issues url point to reporting-bugs instructions 2015-12-18 01:31:57 +00:00
Josh Hagins feba4ec740 Remove DSL versions from all casks 2015-12-17 20:15:28 -05:00
Josh Hagins 852275c8d5 Remove DSL versions in test casks 2015-12-17 20:08:25 -05:00
Josh Hagins 25f7cfee04 Remove DSL versions in docs and scripts
Closes #15912.
2015-12-17 19:57:15 -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
Josh Hagins 64d142af6e Add test for zap :login_item 2015-12-11 23:55:04 -05:00
Josh Hagins 5fa16a51a0 Uninstall login items with uninstall :login_item 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
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
Nick Pellant b0d339e246 Add :auto_updates stanza for Casks 2015-11-30 12:34:30 +00:00
Josh Hagins b069d1ee51 Move .rubocop_todo.yml from to TOPLEVEL_FILES
IGNORE_FILES is not meant to include files tracked in the repository.
2015-11-24 19:48:01 -05:00
Vítor Galvão 533ff608ba Create .gitattributes 2015-09-21 13:57:20 +01:00
William Boman 18259219d7 add .editorconfig file 2015-09-08 01:42:23 +01:00
Josh Hagins 32364632be Include Hbc::Staged module in Hbc::DSL::Preflight 2015-09-05 13:41:46 -04:00
Josh Hagins c0ed120631 Expand tilde in uninstall :delete 2015-08-02 20:25:15 -04:00
Josh Hagins 4921567379 Add specs for Staged module helpers to uninstall_preflight_test 2015-08-02 01:41:29 -04:00
Josh Hagins 4e12c8a84c Reorder postflight specs
Put specs for methods inherited from the Staged module before those
specific to Postflight.
2015-08-02 01:40:27 -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 0acbe2ac46 Add specs for DSL::Postflight#{set_permissions,set_ownership} 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
Andrew Kitchen 8e7a958b6f Allows accessibility entry to be updated if previously installed 2015-06-07 09:18:36 -07:00
Josh Hagins 37f42f90df Report test coverage with coveralls 2015-03-17 21:20:41 -04:00
Josh Hagins d3ba0471e0 Add rubocop config files to layout_test.rb 2015-03-06 19:08:10 -05:00
Paul Hinze b1d621503d internal: spec-ify SystemComand tests 2015-02-08 09:17:23 -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
Radek Simko 6b3146aed6 binary_test (minitest) -> binary_spec (rspec) 2015-01-24 20:01:54 +00:00
Vítor Galvão 078f0b0300 removed alfred support 2015-01-13 17:49:32 +00:00
ndr d5722ee079 Merge pull request #8751 from vitorgalvao/remove-widget-support
Remove support for widgets
2015-01-11 12:29:00 +00:00