Filter gemspec for build and list local gem file for install.

This fix the issue #81
This commit is contained in:
Laurent Arnoud 2012-06-19 20:34:32 +02:00
parent 39e26ca01f
commit 75ba199845
1 changed files with 2 additions and 2 deletions

4
_gem
View File

@ -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]" \