Commit Graph

11 Commits

Author SHA1 Message Date
Roland Walker ba12a2aaaa replace brew-cask.rb subcommand with bash shim
The `brew-cask` shim finds and executes `lib/brew-cask-cmd.rb`,
but only if Ruby 2.0+ is found.
2014-12-16 07:23:57 -05:00
Roland Walker 8ec22efd1a encoding typo: `Encoding::ASCII_8BIT`
fixes #4876
2014-06-14 08:14:00 -04:00
Roland Walker 231f3cd92a Allow invocation of subcommand with full paths
Full paths to subcommand source and Ruby may be given,
which is helpful in troubleshooting, particularly for
forcing a specific Ruby version.

Example usage:
```bash
$ HOMEBREW_BREW_FILE=/usr/local/bin/brew /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby /usr/local/Library/brew.rb /usr/local/bin/brew-cask.rb help
```

Previously, this would work, but throw an odd error when
returning to Homebrew.  Fix: we unconditionally do not
return to Homebrew.
2014-06-10 16:36:47 -04:00
Roland Walker 4d199ada2d force UTF-8 encodings
Fixes #4677.  This change is necessitated by Homebrew's recent
switch to Ruby 2.x.  These changes may be incomplete and/or
may not work well with Ruby 1.8.  Travis should test Ruby 1.8
compatibility.
2014-06-07 17:04:42 -04:00
Caleb Xu d0692227f2 Fix incorrect permissions on brew-cask.rb 2014-06-03 11:02:09 -04:00
Radek Simko 68c5f85f0e Google AppEngine Launcher updated to 1.9.5 2014-06-01 10:45:19 +01:00
Jason Karns 668cb7d8c2 bin/brew-cask.rb is meant to be required by Homebrew, not actually executed by the shell 2014-03-24 10:11:25 -04:00
Roland Walker 67dffb4670 Prepend brew-cask dirs to $LOAD_PATH (not append)
Found while investigating #2275, but probably not a fix, just a sensible
change. Depending on version of ruby interpreter, previous code could
cause brew-cask paths to came later than current dir "." in $LOAD_PATH,
leading to unpredictable behavior in the wild.
2014-01-06 11:31:19 -05:00
phinze aca9beece1 back to .rb for bin, so homebrew `require`s us 2012-03-10 01:01:38 -06:00
phinze e5de5f47aa drop the .rb from the binary 2012-03-09 23:58:19 -06:00
phinze 5a0d1d5556 quick sketchy first release of code/ideas
this is a first draft of an idea i've had kicking around for awhile

pushing out some code so i can get a conversation started
2012-03-09 22:43:50 -06:00