15509ce0472a431867cc2ff21ca5ef0a1c1e855f

Author
dongweiming <ciici123@hotmail.com>
Committer
dongweiming <ciici123@hotmail.com>
Date

Message

Update gem completion

Diff

 1diff --git a/plugins/gem/_gem b/plugins/gem/_gem
 2index 83cba40d135796280447ee6a1daf6c9e73df53de..279181e7091dd70940378f2d3334905d1738b1ba 100644
 3--- a/plugins/gem/_gem
 4+++ b/plugins/gem/_gem
 5@@ -4,11 +4,13 @@
 6 # gem zsh completion, based on homebrew completion
 7 
 8 _gem_installed() {
 9-  installed_gems=(`gem list --local --no-versions`)
10+  installed_gems=(${(f)"$(gem list --local --no-versions)"})
11 }
12 
13 local -a _1st_arguments
14+
15 _1st_arguments=(
16+  'build:Build a gem from a gemspec'
17   'cert:Manage RubyGems certificates and signing settings'
18   'check:Check installed gems'
19   'cleanup:Clean up old versions of installed gems in the local repository'
20@@ -37,6 +39,7 @@ _1st_arguments=(
21   'unpack:Unpack an installed gem to the current directory'
22   'update:Update the named gems (or all installed gems) in the local repository'
23   'which:Find the location of a library file you can require'
24+  'yank:Remove a specific gem version release from RubyGems.org'
25 )
26 
27 local expl