Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

call add_ruby_command after installing gems and such

  • Loading branch information...
commit f81b2d8c32a02626c42aa1b1ea21f151ff83fe12 1 parent bacd022
@rkh authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 gem
View
11 gem
@@ -1,11 +1,14 @@
#!/bin/bash
case $1 in
- check|cleanup|install|pristine|rdoc|uninstall|update|which) exec every_ruby -S gem $@;;
+ check|cleanup|install|pristine|rdoc|uninstall|update|which)
+ every_ruby -S gem $@
+ for file in $RUBY_PATH/1.*/bin/*; do
+ add_ruby_command `basename $file`
+ done
+ ;;
*)
if [ $@ = "server" ]; then
- RUBY_VERSION=1.8.6 gem server --daemon --port 8186
- RUBY_VERSION=1.8.7 gem server --daemon --port 8187
- RUBY_VERSION=1.9.1 gem server --daemon --port 8191
+ gem server --daemon
else
PATH=$RUBY_PATH/$RUBY_VERSION/bin:$PATH exec $RUBY_PATH/$RUBY_VERSION/bin/gem $@
fi
Please sign in to comment.
Something went wrong with that request. Please try again.