From 75ba199845ad6b366a0056c143e3715b64ee86cf Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Tue, 19 Jun 2012 20:34:32 +0200 Subject: [PATCH] Filter gemspec for build and list local gem file for install. This fix the issue #81 --- _gem | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_gem b/_gem index 56550a0..9ae642f 100644 --- a/_gem +++ b/_gem @@ -120,7 +120,7 @@ __gem_trust_policies() { _gem_build() { _arguments \ - *:file:_files -f \ + '*:file:_files -g "*.gemspec"' \ $gem_general_flags && ret=0 } @@ -224,7 +224,7 @@ _gem_help() { _gem_install() { _arguments \ - "*:gemname:__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 \ "(-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]" \