! fix '_files -g' option for install and push

+ macgem
This commit is contained in:
Zhao Cai 2012-11-09 00:42:34 -05:00
parent aaff6c94ef
commit 6dd470b50f
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#compdef gem gem1.9 #compdef gem gem1.9 macgem
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Description # Description
# ----------- # -----------
@ -237,7 +237,7 @@ _gem_help() {
_gem_install() { _gem_install() {
_arguments \ _arguments \
"*:URI: _alternative 'files:file:_files -g *.gem' 'urls:URL:__all_gems'" \ "*:URI: _alternative 'files:file:_files -g \"*.gem\"' 'urls:URL:__all_gems'" \
"(-i --install-dir)"{-i,--install-dir}"[Gem repository directory to get installed gems]":directory:_directories \ "(-i --install-dir)"{-i,--install-dir}"[Gem repository directory to get installed gems]":directory:_directories \
"(-n --bindir)"{-n,--bindir}"[Directory where binary files are located]":directory:_directories \ "(-n --bindir)"{-n,--bindir}"[Directory where binary files are located]":directory:_directories \
"(-d --no-rdoc)"{-d,--no-rdoc}"[Generate RDoc documentation for the gem on install]" \ "(-d --no-rdoc)"{-d,--no-rdoc}"[Generate RDoc documentation for the gem on install]" \
@ -319,7 +319,7 @@ _gem_pristine() {
_gem_push() { _gem_push() {
_arguments \ _arguments \
"*:URI: _alternative 'files:file:_files -g *.gem'" \ "*:URI: _alternative 'files:file:_files -g \"*.gem\"'" \
"(-k --key)"{-k,--key}"[Use the given API key from ~/.gem/credentials]" \ "(-k --key)"{-k,--key}"[Use the given API key from ~/.gem/credentials]" \
"--host[Push to another gemcutter-compatible host]" \ "--host[Push to another gemcutter-compatible host]" \
$gem_general_flags && ret=0 $gem_general_flags && ret=0