Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added RubyGems completions, by alexvollmer

  • Loading branch information...
commit 5dd5e2ec75b9ead76fee06786beba2e21fcc3921 1 parent ef8f505
Johan Sahlén jsahlen authored Darrick Wiebe committed

Showing 1 changed file with 467 additions and 0 deletions. Show diff stats Hide diff stats

  1. +467 0 functions/_gem
467 functions/_gem
... ... @@ -0,0 +1,467 @@
  1 +#compdef gem gem1.9
  2 +
  3 +gem_general_flags=("(-h --help)"{-h,--help}"[Get help on this command]"
  4 + "(-V --verbose)"{-V,--verbose}"[Set the verbose level of output]"
  5 + "(-q --quiet)"{-q,--quiet}"[Silence commands]"
  6 + "--config-file[Use this config file instead of default]:file:_files"
  7 + "--backtrace[Show stack backtrace on errors]"
  8 + "--debug[Turn on Ruby debugging]"
  9 + $nul_arg
  10 +)
  11 +
  12 +_gem() {
  13 + if (( CURRENT > 2 )); then
  14 + (( CURRENT-- ))
  15 + shift words
  16 + _call_function 1 _gem_${words[1]}
  17 + else
  18 + _values "gem command" \
  19 + "build[Build a gem from a gemspec]" \
  20 + "cert[Manage RubyGems certificates and signing settings]" \
  21 + "check[Check installed gems]" \
  22 + "cleanup[Clean up old versions of installed gems in the local repository]" \
  23 + "contents[Display the contents of the installed gems]" \
  24 + "dependency[Show the dependencies of an installed gem]" \
  25 + "environment[Display information about the RubyGems environment]" \
  26 + "fetch[Download a gem and place it in the current directory]" \
  27 + "generate_index[Generates the index files for a gem server directory]" \
  28 + "help[Provide help on the 'gem' command]" \
  29 + "install[Install a gem into the local repository]" \
  30 + "list[Display gems whose name starts with STRING]" \
  31 + "lock[Generate a lockdown list of gems]" \
  32 + "migrate[Migrate a gem you own from Rubyforge to Gemcutter]" \
  33 + "mirror[Mirror a gem repository]" \
  34 + "outdated[Display all gems that need updates]" \
  35 + "owner[Manage gem owners on Gemcutter]" \
  36 + "pristine[Restores installed gems to pristine condition from files located in the gem cache]" \
  37 + "push[Push a gem up to Gemcutter]" \
  38 + "query[Query gem information in local or remote repositories]" \
  39 + "rdoc[Generates RDoc for pre-installed gems]" \
  40 + "search[Display all gems whose name contains STRING]" \
  41 + "server[Documentation and gem repository HTTP server]" \
  42 + "sources[Manage the sources and cache file RubyGems uses to search for gems]" \
  43 + "specification[Display gem specification (in yaml)]" \
  44 + "stale[List gems along with access times]" \
  45 + "tumble[Enable or disable Gemcutter as your primary gem source]" \
  46 + "uninstall[Uninstall gems from the local repository]" \
  47 + "unpack[Unpack an installed gem to the current directory]" \
  48 + "update[Update the named gems (or all installed gems) in the local repository]" \
  49 + "which[Find the location of a library file you can require]"
  50 + fi
  51 +}
  52 +
  53 +__all_gems() {
  54 + _gem_names=($(${service} list | awk '{print $1}'))
  55 + compadd "$@" -k _gem_names
  56 +}
  57 +
  58 +__all_gems_all() {
  59 + _gem_names=($(gem list | awk '{print $1}') "--all")
  60 + compadd "$@" -k _gem_names
  61 +}
  62 +
  63 +__gem_help_arguments() {
  64 + _args=("commands"
  65 + "examples"
  66 + "build"
  67 + "cert"
  68 + "check"
  69 + "cleanup"
  70 + "contents"
  71 + "dependency"
  72 + "environment"
  73 + "fetch"
  74 + "generate_index"
  75 + "help"
  76 + "install"
  77 + "list"
  78 + "lock"
  79 + "mirror"
  80 + "outdated"
  81 + "owner"
  82 + "pristine"
  83 + "push"
  84 + "query"
  85 + "rdoc"
  86 + "search"
  87 + "server"
  88 + "sources"
  89 + "specification"
  90 + "stale"
  91 + "tumble"
  92 + "uninstall"
  93 + "unpack"
  94 + "update"
  95 + "which")
  96 + compadd "$@" -k _args
  97 +}
  98 +
  99 +__gem_trust_policies() {
  100 + _args=("NoSecurity"
  101 + "LowSecurity"
  102 + "MediumSecurity"
  103 + "HighSecurity")
  104 + compadd "$@" -k _args
  105 +}
  106 +
  107 +_gem_build() {
  108 + _arguments \
  109 + *:file:_files -f \
  110 + $gem_general_flags && ret=0
  111 +}
  112 +
  113 +_gem_cert() {
  114 + _arguments \
  115 + "(-a --add)"{-a,--add}"[Add a trusted certificate.]":file:_files \
  116 + "(-l --list)"{-l,--list}"[List trusted certificates.]" \
  117 + "(-r --remove)"{-r,--remove}"[Remove trusted certificates containing STRING.]" \
  118 + "(-b --build)"{-b,--build}"[Build private key and self-signed certificate for EMAIL_ADDR.]" \
  119 + "(-C --certificate)"{-C,--certificate}"[Certificate for --sign command.]":file:_files \
  120 + "(-K --private-key)"{-K,--private-key}"[Private key for --sign command.]":file:_files \
  121 + "(-s --sign)"{-s,--sign}"[Sign a certificate with my key and certificate.]":file:_files \
  122 + $gem_general_flags && ret=0
  123 +}
  124 +
  125 +_gem_check() {
  126 + _arguments \
  127 + "--verify[Verify gem file against its internal checksum]":file:_files \
  128 + "(-a --alien)"{-a,--alien}"[Report 'unmanaged' or rogue files in the gem repository]" \
  129 + "(-v --verbose)"{-v,--verbose}"[Spew more words]" \
  130 + "(-t --test)"{-t,--test}"[Run unit tests for gem]" \
  131 + "(-v --version)"{-v,--version}"[Specify version of gem to run tests for]" \
  132 + $gem_general_flags && ret=0
  133 +}
  134 +
  135 +_gem_cleanup() {
  136 + _arguments \
  137 + "*:gemname:__all_gems" \
  138 + "(-d --dryrun)"{-d,--dryrun}"[]" \
  139 + $gem_general_flags && ret=0
  140 +}
  141 +
  142 +_gem_contents() {
  143 + _arguments \
  144 + "*:gemname:__all_gems" \
  145 + "(-v --version)"{-v,--version}"[Specify version of gem to contents]" \
  146 + "--all[Contents for all gems]" \
  147 + "(-s --spec-dir)"{-s,--spec-dir}"[Search for gems under specific paths]" \
  148 + "(-l --no-lib-only)"{-l,--no-lib-only}"[Only return files in the Gem's lib_dirs]" \
  149 + "--no-prefix[Don't include installed path prefix]" \
  150 + $gem_general_flags && ret=0
  151 +}
  152 +
  153 +_gem_dependency() {
  154 + _arguments \
  155 + ":gemname:__all_gems" \
  156 + "(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
  157 + "(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
  158 + "(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
  159 + "(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
  160 + "--source[Use URL as the remote source for gems]" \
  161 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  162 + "(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
  163 + "(-v --version)"{-v,--version}"[Specify version of gem to dependency]" \
  164 + "--platform[Specify the platform of gem to dependency]" \
  165 + "(-R --no-reverse-dependencies)"{-R,--no-reverse-dependencies}"[Include reverse dependencies in the output]" \
  166 + "(-p --pipe)"{-p,--pipe}"[Pipe Format (name --version ver)]" \
  167 + $gem_general_flags && ret=0
  168 +}
  169 +
  170 +_gem_environment() {
  171 + typeset -g _environment_arg=
  172 + _environment_arg='::environment:((packageversion\:"display the package version"
  173 + gemdir\:"display the path where gems are installed"
  174 + gempath\:"display path used to search for gems"
  175 + version\:"display the gem format version"
  176 + remotesources\:"display the remote gem servers"))'
  177 + _arguments \
  178 + $_environment_arg \
  179 + $gem_general_flags && ret=0
  180 +}
  181 +
  182 +_gem_fetch() {
  183 + _arguments \
  184 + "*:gemname:__all_gems" \
  185 + "(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
  186 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  187 + "--source[Use URL as the remote source for gems]" \
  188 + "(-v --version)"{-v,--version}"[Specify version of gem to fetch]" \
  189 + "--platform[Specify the platform of gem to fetch]" \
  190 + $gem_general_flags && ret=0
  191 +}
  192 +
  193 +_gem_generate_index() {
  194 + _arguments \
  195 + "(-d --directory=DIRNAME)"{-d,--directory=-}"[repository base dir containing gems subdir]":directory:_directories \
  196 + "--no-legacy[Generate indexes for RubyGems older than 1.2.0]" \
  197 + "--no-modern[Generate indexes for RubyGems newer than 1.2.0]" \
  198 + "--update[Update modern indexes with gems added since the last update]" \
  199 + "--rss-gems-host=-[Host name where gems are served from, used for GUID and enclosure values]" \
  200 + "--rss-host=-[Host name for more gems information, used for RSS feed link]" \
  201 + "--rss-title=-[Set title for RSS feed]" \
  202 + $gem_general_flags && ret=0
  203 +}
  204 +
  205 +_gem_help() {
  206 + _arguments \
  207 + ":argument:__gem_help_arguments" \
  208 + $gem_general_flags && ret=0
  209 +}
  210 +
  211 +_gem_install() {
  212 + _arguments \
  213 + "*:gemname:__all_gems" \
  214 + "(-i --install-dir)"{-i,--install-dir}"[Gem repository directory to get installed gems]":directory:_directories \
  215 + "(-n --bindir)"{-n,--bindir}"[Directory where binary files are located]":directory:_directories \
  216 + "(-d --no-rdoc)"{-d,--no-rdoc}"[Generate RDoc documentation for the gem on install]" \
  217 + "--no-ri[Generate RI documentation for the gem on install]" \
  218 + "(-E --no-env-shebang)"{-E,--no-env-shebang}"[Rewrite the shebang line on installed scripts to use /usr/bin/env]" \
  219 + "(-f --no-force)"{-f,--no-force}"[Force gem to install, bypassing dependency checks]" \
  220 + "(-t --no-test)"{-t,--no-test}"[Run unit tests prior to installation]" \
  221 + "(-w --no-wrappers)"{-w,--no-wrappers}"[Use bin wrappers for executables Not available on dosish platforms]" \
  222 + "(-P --trust-policy)"{-P,--trust-policy}"[Specify gem trust policy]:trust policy:__gem_trust_policies" \
  223 + "--ignore-dependencies[Do not install any required dependent gems]" \
  224 + "(-y --include-dependencies)"{-y,--include-dependencies}"[Unconditionally install the required dependent gems]" \
  225 + "--no-format-executable[Make installed executable names match ruby. If ruby is ruby18, foo_exec will be foo_exec18]" \
  226 + "--no-user-install[Install in user's home directory instead of GEM_HOME. Defaults to using home only if GEM_HOME is not writable.]" \
  227 + "--development[Install any additional development dependencies]" \
  228 + "--prerelease[Install prerelease versions of a gem if available. Defaults to skipping prereleases.]" \
  229 + "(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
  230 + "(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
  231 + "(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
  232 + "(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
  233 + "--source[Use URL as the remote source for gems]" \
  234 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  235 + "(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
  236 + "--platform[Specify the platform of gem to install]" \
  237 + "(-v --version)"{-v,--version}"[Specify version of gem to install]" \
  238 + $gem_general_flags && ret=0
  239 +}
  240 +
  241 +_gem_list() {
  242 + _arguments \
  243 + ":gem name: " \
  244 + "(-i --no-installed)"{-i,--no-installed}"[Check for installed gem]" \
  245 + "(-v --version)"{-v,--version}"[Specify version of gem to list]" \
  246 + "(-d --no-details)"{-d,--no-details}"[Display detailed information of gem(s)]" \
  247 + "--no-versions[Display only gem names]" \
  248 + "(-a --all)"{-a,--all}"[Display all gem versions]" \
  249 + "--prerelease[Display prerelease versions]" \
  250 + "(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
  251 + "(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
  252 + "(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
  253 + "(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
  254 + "--source[Use URL as the remote source for gems]" \
  255 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  256 + "(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
  257 + $gem_general_flags && ret=0
  258 +}
  259 +
  260 +_gem_lock() {
  261 + _arguments \
  262 + ":gemname:__all_gems" \
  263 + "(-s --no-strict)"{-s,--no-strict}"[fail if unable to satisfy a dependency]" \
  264 + $gem_general_flags && ret=0
  265 +}
  266 +
  267 +_gem_mirror() {
  268 + _arguments \
  269 + $gem_general_flags && ret=0
  270 +}
  271 +
  272 +_gem_outdated() {
  273 + _arguments \
  274 + "(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
  275 + "(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
  276 + "(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
  277 + "(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
  278 + "--source[Use URL as the remote source for gems]" \
  279 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  280 + "(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
  281 + "--platform[Specify the platform of gem to outdated]" \
  282 + $gem_general_flags && ret=0
  283 +}
  284 +
  285 +_gem_owner() {
  286 + _arguments \
  287 + "(-a --add)"{-a,--add}"[Add an owner]" \
  288 + "(-r --remove)"{-r,--remove}"[Remove an owner]" \
  289 + $gem_general_flags && ret=0
  290 +}
  291 +
  292 +_gem_pristine() {
  293 + _arguments \
  294 + ":gem name:__all_gems_all" \
  295 + "--all[Restore all installed gems to pristine condition]" \
  296 + "(-v --version)"{-v,--version}"[Specify version of gem to restore to pristine condition]" \
  297 + $gem_general_flags && ret=0
  298 +}
  299 +
  300 +_gem_push() {
  301 + _arguments \
  302 + *:file:_files -f \
  303 + "(-p --http-proxy)"{-p,--http-proxy}"[Use HTTP proxy for remote operations]" \
  304 + $gem_general_flags && ret=0
  305 +}
  306 +
  307 +_gem_query() {
  308 + _arguments \
  309 + "(-i --no-installed)"{-i,--no-installed}"[Check for installed gem]" \
  310 + "(-v --version)"{-v,--version}"[Specify version of gem to query]" \
  311 + "(-n --name-matches)"{-n,--name-matches}"[Name of gem(s) to query on matches the provided REGEXP]" \
  312 + "(-d --no-details)"{-d,--no-details}"[Display detailed information of gem(s)]" \
  313 + "--no-versions[Display only gem names]" \
  314 + "(-a --all)"{-a,--all}"[Display all gem versions]" \
  315 + "--prerelease[Display prerelease versions]" \
  316 + "(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
  317 + "(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
  318 + "(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
  319 + "(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
  320 + "--source[Use URL as the remote source for gems]" \
  321 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  322 + "(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
  323 + $gem_general_flags && ret=0
  324 +}
  325 +
  326 +_gem_rdoc() {
  327 + _arguments \
  328 + ":gem name:__all_gems_all" \
  329 + "--all[Generate RDoc/RI documentation for all installed gems]" \
  330 + "--no-rdoc[Include RDoc generated documents]" \
  331 + "--no-ri[Include RI generated documents]" \
  332 + "(-v --version)"{-v,--version}"[Specify version of gem to rdoc]" \
  333 + $gem_general_flags && ret=0
  334 +}
  335 +
  336 +_gem_search() {
  337 + _arguments \
  338 + ":gem name::" \
  339 + "(-i --no-installed)"{-i,--no-installed}"[Check for installed gem]" \
  340 + "(-v --version)"{-v,--version}"[Specify version of gem to search]" \
  341 + "(-d --no-details)"{-d,--no-details}"[Display detailed information of gem(s)]" \
  342 + "--no-versions[Display only gem names]" \
  343 + "(-a --all)"{-a,--all}"[Display all gem versions]" \
  344 + "--prerelease[Display prerelease versions]" \
  345 + "(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
  346 + "(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
  347 + "(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
  348 + "(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
  349 + "--source[Use URL as the remote source for gems]" \
  350 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  351 + "(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
  352 + $gem_general_flags && ret=0
  353 +}
  354 +
  355 +_gem_server() {
  356 + _arguments \
  357 + "(-p --port=PORT)"{-p,--port=-}"[port to listen on]" \
  358 + "(-d --dir=GEMDIR)"{-d,--dir=-}"[directory from which to serve gems]":directory:_directories \
  359 + "--no-daemon[run as a daemon]" \
  360 + $gem_general_flags && ret=0
  361 +}
  362 +
  363 +_gem_sources() {
  364 + _arguments \
  365 + "(-a --add)"{-a,--add}"[Add source]" \
  366 + "(-l --list)"{-l,--list}"[List sources]" \
  367 + "(-r --remove)"{-r,--remove}"[Remove source]" \
  368 + "(-c --clear-all)"{-c,--clear-all}"[Remove all sources (clear the cache)]" \
  369 + "(-u --update)"{-u,--update}"[Update source cache]" \
  370 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  371 + $gem_general_flags && ret=0
  372 +}
  373 +
  374 +_gem_specification() {
  375 + _arguments \
  376 + ":gemname:__all_gems" \
  377 + "(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
  378 + "(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
  379 + "(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
  380 + "(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
  381 + "--source[Use URL as the remote source for gems]" \
  382 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  383 + "(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
  384 + "(-v --version)"{-v,--version}"[Specify version of gem to examine]" \
  385 + "--platform[Specify the platform of gem to specification]" \
  386 + "--all[Output specifications for all versions of the gem]" \
  387 + "--ruby[Output ruby format]" \
  388 + "--yaml[Output RUBY format]" \
  389 + "--marshal[Output Marshal format]" \
  390 + $gem_general_flags && ret=0
  391 +}
  392 +
  393 +_gem_stale() {
  394 + _arguments \
  395 + $gem_general_flags && ret=0
  396 +}
  397 +
  398 +_gem_tumble() {
  399 + _arguments \
  400 + $gem_general_flags && ret=0
  401 +}
  402 +
  403 +_gem_uninstall() {
  404 + _arguments \
  405 + "*:gemname:__all_gems" \
  406 + "(-a --no-all)"{-a,--no-all}"[Uninstall all matching versions]" \
  407 + "(-I --no-ignore-dependencies)"{-I,--no-ignore-dependencies}"[Ignore dependency requirements while uninstalling]" \
  408 + "(-x --no-executables)"{-x,--no-executables}"[Uninstall applicable executables without confirmation]" \
  409 + "(-i --install-dir)"{-i,--install-dir}"[Directory to uninstall gem from]":directory:_directories \
  410 + "(-n --bindir)"{-n,--bindir}"[Directory to remove binaries from]":directory:_directories \
  411 + "--no-user-install[Uninstall from user's home directory in addition to GEM_HOME.]" \
  412 + "(-v --version)"{-v,--version}"[Specify version of gem to uninstall]" \
  413 + "--platform[Specify the platform of gem to uninstall]" \
  414 + $gem_general_flags && ret=0
  415 +}
  416 +
  417 +_gem_unpack() {
  418 + _arguments \
  419 + ":gemname:__all_gems" \
  420 + "--target=-[target directory for unpacking]":directory:_directories \
  421 + "(-v --version)"{-v,--version}"[Specify version of gem to unpack]" \
  422 + $gem_general_flags && ret=0
  423 +}
  424 +
  425 +_gem_update() {
  426 + _arguments \
  427 + "*:gemname:__all_gems" \
  428 + "(-i --install-dir)"{-i,--install-dir}"[Gem repository directory to get installed gems]":directory:_directories \
  429 + "(-n --bindir)"{-n,--bindir}"[Directory where binary files are located]":directory:_directories \
  430 + "(-d --no-rdoc)"{-d,--no-rdoc}"[Generate RDoc documentation for the gem on install]" \
  431 + "--no-ri[Generate RI documentation for the gem on install]" \
  432 + "(-E --no-env-shebang)"{-E,--no-env-shebang}"[Rewrite the shebang line on installed scripts to use /usr/bin/env]" \
  433 + "(-f --no-force)"{-f,--no-force}"[Force gem to install, bypassing dependency checks]" \
  434 + "(-t --no-test)"{-t,--no-test}"[Run unit tests prior to installation]" \
  435 + "(-w --no-wrappers)"{-w,--no-wrappers}"[Use bin wrappers for executables Not available on dosish platforms]" \
  436 + "(-P --trust-policy)"{-P,--trust-policy}"[Specify gem trust policy]:trust policy:__gem_trust_policies" \
  437 + "--ignore-dependencies[Do not install any required dependent gems]" \
  438 + "(-y --include-dependencies)"{-y,--include-dependencies}"[Unconditionally install the required dependent gems]" \
  439 + "--no-format-executable[Make installed executable names match ruby. If ruby is ruby18, foo_exec will be foo_exec18]" \
  440 + "--no-user-install[Install in user's home directory instead of GEM_HOME. Defaults to using home only if GEM_HOME is not writable.]" \
  441 + "--development[Install any additional development dependencies]" \
  442 + "--prerelease[Install prerelease versions of a gem if available. Defaults to skipping prereleases.]" \
  443 + "(-l --local)"{-l,--local}"[Restrict operations to the LOCAL domain]" \
  444 + "(-r --remote)"{-r,--remote}"[Restrict operations to the REMOTE domain]" \
  445 + "(-b --both)"{-b,--both}"[Allow LOCAL and REMOTE operations]" \
  446 + "(-B --bulk-threshold)"{-B,--bulk-threshold}"[Threshold for switching to bulk synchronization (default 1000)]" \
  447 + "--source[Use URL as the remote source for gems]" \
  448 + "(-p --[no-]http-proxy)"{-p,--[no-]http-proxy}"[Use HTTP proxy for remote operations]" \
  449 + "(-u --no-update-sources)"{-u,--no-update-sources}"[Update local source cache]" \
  450 + "--system[Update the RubyGems system software]" \
  451 + "--platform[Specify the platform of gem to update]" \
  452 + $gem_general_flags && ret=0
  453 +}
  454 +
  455 +_gem_which() {
  456 + _arguments \
  457 + *:file:_files -f \
  458 + "(-a --no-all)"{-a,--no-all}"[show all matching files]" \
  459 + "(-g --no-gems-first)"{-g,--no-gems-first}"[search gems before non-gems]" \
  460 + $gem_general_flags && ret=0
  461 +}
  462 +
  463 +_gem_migrate() {
  464 + _arguments \
  465 + "*:gemname:__all_gems" \
  466 + $gem_general_flags && ret=0
  467 +}

0 comments on commit 5dd5e2e

Please sign in to comment.
Something went wrong with that request. Please try again.