Commit Graph

17755 Commits

Author SHA1 Message Date
Félix Saparelli 4de758bca3 Add tap support to `edit` and `list`
Most notably, Cask.all returns an array of strings,
not of Cask instances. This makes things easier, as
well as faster, as there's no need to run map(&:to_s)
everywhere anymore.

self.path is a utility method which returns the path
of the cask from its title. There's something subtle
going in there:

 - If `cask_title` is fully qualified, e.g.
   "phinze-cask/alfred", it's straightforward.

 - If `cask_title` is only the name, e.g.
   "firefox-aurora", the name is matched from
   the full list (self.all) (which isn't sorted)
   and the first result is returned.

Hence, self.path with only the name is not precise.
There might be the possibility to apply heuristics
to do a better match (prefer phinze-cask, or maybe
installed casks?) but that's for another issue :-)

self.nice_listing is another utility method used
in `search` and `list`. It returns a list where
unique casks don't have a prefix, and duplicates
do. The prefix is the tap name. The list is then
sorted. For an example or two, look at the first
comment on phinze/#12.
2012-09-24 16:10:51 +12:00
Félix Saparelli 5b51542ccf Use puts_columns 2012-09-24 16:10:51 +12:00
Félix Saparelli 4a6e0b2513 Sort search results 2012-09-24 16:10:50 +12:00
Félix Saparelli 3d3207bf5d Add basic taps functionality; partial phinze/#12 support
Instead of only listing `Taps/phinze-cask/Casks`, now list
every taps that has a `Casks` directory. Might conflict with
a few commands for the moment, works OK with `brew cask search`.
2012-09-24 16:10:50 +12:00
Paul Hinze c5510608d7 Merge pull request #11 from passcod/fix-st2
Fix Sublime Text
2012-09-23 13:27:49 -07:00
Félix Saparelli c17113b347 Fix Sublime Text
There was an inconsistency between the cask filename
and the class name which caused an exception to be
thrown when running `brew cask search` (and possibly
other commands).
2012-09-24 00:50:58 +12:00
phinze ce9c568d18 update to 0.2.0; fix skip_clean deprecation 2012-09-21 23:37:16 -05:00
phinze b45974c224 support `brew cask edit` 2012-09-21 23:32:19 -05:00
phinze 029bd855db support tar-bzip archives so we can add macvim 2012-09-21 23:05:10 -05:00
phinze 9e421ee368 ohai the success message 2012-09-21 23:04:53 -05:00
phinze 34a64d2619 picard 1.1 2012-09-21 22:46:36 -05:00
phinze c24c72bd7e new cask: transmission 2012-09-21 22:46:36 -05:00
phinze 6cdbb1d6b5 new cask: steam 2012-09-21 22:46:36 -05:00
Paul Hinze 8ada4144d4 Merge pull request #10 from passcod/master
Some updates and new packages, notably Brackets.io
2012-09-21 19:00:00 -07:00
Félix Saparelli 61a66ff8ac Sublime Text 2.0.1 2012-09-22 12:53:49 +12:00
Félix Saparelli 77012cdee2 VLC 2.0.3 2012-09-22 12:46:59 +12:00
Félix Saparelli 781afeaaae Firefox Aurora 17.0a2 (210912) 2012-09-22 12:43:57 +12:00
Félix Saparelli 771183b9bd Firefox 15.0.1 2012-09-22 12:40:03 +12:00
Félix Saparelli d378a61805 XQuartz 2.7.3 2012-09-22 12:36:35 +12:00
Félix Saparelli c832686c2e Brackets sprint-14 2012-09-22 12:35:53 +12:00
phinze 3bdbdeb60d add at-monitor cask 2012-09-09 17:03:35 -04:00
phinze 9e4753fec7 update little-snitch to 2.5.4 2012-09-09 15:40:04 -04:00
phinze 5405cef001 google-notifier 1.10.7 2012-09-01 23:18:53 -05:00
phinze 86fa2edcd7 update dropbox to 1.4.12 2012-08-25 22:25:52 -05:00
phinze a102163e7d update alfred to 1.3.1_261 2012-08-25 22:22:46 -05:00
phinze b84326203b update Alfred to 1.5.3 2012-08-25 22:21:47 -05:00
phinze df45d87408 readme cleanup and updates 2012-08-25 22:01:34 -05:00
phinze 0ba205fa67 change chrome version to just name the channel 2012-08-25 22:00:51 -05:00
phinze b242a97f53 update README and add a version 2012-08-25 21:32:06 -05:00
phinze ff6f5c75fa fix broken downloads due to changed interface
fixes #9
2012-08-25 21:22:52 -05:00
phinze 0962ab3b47 reference Casks from permanent home under Taps 2012-08-25 20:59:34 -05:00
phinze 3942b317f1 add brew-cask formula to root
this is an attempt to make this repository `brew tap`able
2012-08-25 20:26:28 -05:00
Paul Hinze 7bfe920b53 Merge pull request #8 from cosgroveb/master
Cask for firefox
2012-04-10 15:49:43 -07:00
Brian Cosgrove 3995d05dea Adds firefox 11.0 2012-04-10 17:47:00 -05:00
phinze c4dbb82152 iTerm2 1.0.0.20120203 2012-03-10 16:20:39 -06:00
phinze e2158003be GmailNotifr 0.6.4 2012-03-10 16:20:23 -06:00
phinze 1b6e57c33d Echofon 1.5.8 2012-03-10 16:20:08 -06:00
phinze e342897a91 fix linkapps, which was making circular symlinks
whoopsie
2012-03-10 14:25:42 -06:00
Paul Hinze decfc33a59 Merge pull request #1 from gvangool/adds_xquartz
Adds XQuartz.app, a more recent X11.app version.
2012-03-10 09:56:53 -08:00
Paul Hinze 07702b6139 Merge pull request #2 from gvangool/utorrent
Adds µTorrent
2012-03-10 09:56:34 -08:00
Paul Hinze 51f127a222 Merge pull request #3 from gvangool/skype
Adds Skype
2012-03-10 09:56:17 -08:00
Paul Hinze e97fb8f2c7 Merge pull request #4 from gvangool/vlc
Adds VLC 2.0
2012-03-10 09:55:57 -08:00
Paul Hinze 95712cf9e2 Merge pull request #5 from benmills/master
Add 1password, Scrup, and Hands Off! Casks
2012-03-10 09:54:26 -08:00
benmills 6cb8697d3e Add Hands Off cask 2012-03-10 11:33:14 -06:00
benmills c7949ed505 Addscrupcask 2012-03-10 11:31:44 -06:00
benmills 9f0cb012bb Add1Passwordcask 2012-03-10 11:30:27 -06:00
Gert Van Gool 5a6f2cc076 Adds VLC 2.0 2012-03-10 10:30:38 +01:00
Gert Van Gool b609ddad47 Adds Skype v5.6.0.143 2012-03-10 10:25:01 +01:00
Gert Van Gool f632016b90 Adds µTorrent 2012-03-10 10:15:33 +01:00
Gert Van Gool 200be3f306 Adds XQuartz.app, a more recent X11.app version. 2012-03-10 10:12:08 +01:00