Permalink
Browse files

Merge pull request #83 from spk/_gem_install_uri

Filter gemspec for build and list local gem file for install.
  • Loading branch information...
nicoulaj committed Jun 19, 2012
2 parents 39e26ca + 75ba199 commit 84ae6d1db82e2e1353c5dc40db41f14a412ef893
Showing with 2 additions and 2 deletions.
  1. +2 −2 _gem
View
4 _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]" \

0 comments on commit 84ae6d1

Please sign in to comment.