fa1657e10bc062394390d83d0bb5d3848905f5b6

Author
David Lee <davidomundo@gmail.com>
Committer
David Lee <davidomundo@gmail.com>
Date

Message

Add gem build autocompletion

Diff

 1diff --git a/plugins/gem/_gem b/plugins/gem/_gem
 2index 83cba40d135796280447ee6a1daf6c9e73df53de..3c0922f2cfa6e61b4952bb0171ef0185bdffe285 100644
 3--- a/plugins/gem/_gem
 4+++ b/plugins/gem/_gem
 5@@ -9,6 +9,7 @@ _gem_installed() {
 6 
 7 local -a _1st_arguments
 8 _1st_arguments=(
 9+  'build:Build a gem from a gemspec'
10   'cert:Manage RubyGems certificates and signing settings'
11   'check:Check installed gems'
12   'cleanup:Clean up old versions of installed gems in the local repository'
13@@ -53,6 +54,9 @@ if (( CURRENT == 1 )); then
14 fi
15 
16 case "$words[1]" in
17+  build)
18+    _files -g "*.gemspec"
19+    ;;
20   list)
21       if [[ "$state" == forms ]]; then
22         _gem_installed