rvm 0.0.9999 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +3 -1
 - data/config/db +1 -1
 - data/install +33 -25
 - data/lib/VERSION.yml +2 -2
 - data/rvm.gemspec +1 -1
 - data/scripts/cli +2 -2
 - data/scripts/fetch +1 -1
 - data/scripts/gems +3 -3
 - data/scripts/hook +1 -1
 - data/scripts/initialize +2 -1
 - data/scripts/install +33 -25
 - data/scripts/manage +11 -11
 - data/scripts/monitor +1 -1
 - data/scripts/notes +8 -0
 - data/scripts/rvm +9 -8
 - data/scripts/rvm-install +33 -25
 - data/scripts/selector +6 -6
 - data/scripts/symlink +6 -6
 - data/scripts/update +33 -25
 - data/scripts/utility +16 -15
 - metadata +1 -1
 
    
        data/README
    CHANGED
    
    | 
         @@ -35,6 +35,8 @@ Implementation 
     | 
|
| 
       35 
35 
     | 
    
         
             
              jruby     - JRuby
         
     | 
| 
       36 
36 
     | 
    
         
             
              rbx       - rubinius
         
     | 
| 
       37 
37 
     | 
    
         
             
              ree       - ruby Enterprise Edition
         
     | 
| 
      
 38 
     | 
    
         
            +
              macruby   - MacRuby (Mac OS X Only)
         
     | 
| 
      
 39 
     | 
    
         
            +
              maglev    - Gemstone Ruby
         
     | 
| 
       38 
40 
     | 
    
         
             
              ironruby  - IronRuby
         
     | 
| 
       39 
41 
     | 
    
         
             
              mput      - shyouhei(mput)'s github repository
         
     | 
| 
       40 
42 
     | 
    
         
             
              system    - use the system ruby (eg. pre-rvm state)
         
     | 
| 
         @@ -42,7 +44,7 @@ Implementation 
     | 
|
| 
       42 
44 
     | 
    
         | 
| 
       43 
45 
     | 
    
         
             
            Flags
         
     | 
| 
       44 
46 
     | 
    
         | 
| 
       45 
     | 
    
         
            -
              -- 
     | 
| 
      
 47 
     | 
    
         
            +
              --head        - with update, updates rvm to git head version.
         
     | 
| 
       46 
48 
     | 
    
         
             
              --rubygems    - with update, updates rubygems for selected ruby
         
     | 
| 
       47 
49 
     | 
    
         
             
              --default     - with ruby select, sets a default ruby for new shells.
         
     | 
| 
       48 
50 
     | 
    
         
             
              --debug       - Toggle debug mode on for very verbose output.
         
     | 
    
        data/config/db
    CHANGED
    
    | 
         @@ -25,7 +25,7 @@ jruby_url=http://jruby.kenai.com/downloads/ 
     | 
|
| 
       25 
25 
     | 
    
         
             
            macruby_version=nightly
         
     | 
| 
       26 
26 
     | 
    
         
             
            macruby_repo_url=git://git.macruby.org/macruby/MacRuby.git
         
     | 
| 
       27 
27 
     | 
    
         
             
            macruby_nightly_url=http://macruby.icoretech.org/latest/macruby_nightly-latest.pkg
         
     | 
| 
       28 
     | 
    
         
            -
            maglev_version= 
     | 
| 
      
 28 
     | 
    
         
            +
            maglev_version=22725
         
     | 
| 
       29 
29 
     | 
    
         
             
            maglev_url=http://glass-downloads.gemstone.com/maglev
         
     | 
| 
       30 
30 
     | 
    
         
             
            maglev_repo_url=git://github.com/MagLev/maglev.git
         
     | 
| 
       31 
31 
     | 
    
         
             
            rubinius_repo_url=git://github.com/evanphx/rubinius.git
         
     | 
    
        data/install
    CHANGED
    
    | 
         @@ -64,7 +64,7 @@ cp -f "$source_path/README" "$rvm_path/" 
     | 
|
| 
       64 
64 
     | 
    
         
             
            #
         
     | 
| 
       65 
65 
     | 
    
         
             
            # Scripts
         
     | 
| 
       66 
66 
     | 
    
         
             
            #
         
     | 
| 
       67 
     | 
    
         
            -
            rm -rf $ 
     | 
| 
      
 67 
     | 
    
         
            +
            rm -rf $rvm_scripts_path # Clear the old scripts directory so that the old style rvm- scripts are cleared out.
         
     | 
| 
       68 
68 
     | 
    
         
             
            for dir_name in config scripts examples lib hooks ; do
         
     | 
| 
       69 
69 
     | 
    
         
             
              mkdir -p "$rvm_path/$dir_name"
         
     | 
| 
       70 
70 
     | 
    
         
             
              if [[ -d "$source_path/$dir_name" ]] ; then
         
     | 
| 
         @@ -72,19 +72,19 @@ for dir_name in config scripts examples lib hooks ; do 
     | 
|
| 
       72 
72 
     | 
    
         
             
              fi
         
     | 
| 
       73 
73 
     | 
    
         
             
            done ; unset dir_name
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
     | 
    
         
            -
            if [[ ! -s "$ 
     | 
| 
       76 
     | 
    
         
            -
              echo '# Users settings file, overrides db file settings and persists across installs.' >> $ 
     | 
| 
      
 75 
     | 
    
         
            +
            if [[ ! -s "$rvm_config_path/user" ]] ; then
         
     | 
| 
      
 76 
     | 
    
         
            +
              echo '# Users settings file, overrides db file settings and persists across installs.' >> $rvm_config_path/user
         
     | 
| 
       77 
77 
     | 
    
         
             
            fi
         
     | 
| 
       78 
78 
     | 
    
         | 
| 
       79 
79 
     | 
    
         
             
            #
         
     | 
| 
       80 
80 
     | 
    
         
             
            # Bin Scripts
         
     | 
| 
       81 
81 
     | 
    
         
             
            #
         
     | 
| 
       82 
82 
     | 
    
         
             
            # Cleanse and purge...
         
     | 
| 
       83 
     | 
    
         
            -
            rm -f $ 
     | 
| 
      
 83 
     | 
    
         
            +
            rm -f $rvm_bin_path/rvm ; rm -rf $rvm_bin_path/binscripts
         
     | 
| 
       84 
84 
     | 
    
         
             
            for file in rvm-prompt rvm rvmsudo ; do
         
     | 
| 
       85 
     | 
    
         
            -
              cp -f "$source_path/binscripts/$file" $ 
     | 
| 
      
 85 
     | 
    
         
            +
              cp -f "$source_path/binscripts/$file" $rvm_bin_path/
         
     | 
| 
       86 
86 
     | 
    
         
             
            done
         
     | 
| 
       87 
     | 
    
         
            -
            chmod +x $ 
     | 
| 
      
 87 
     | 
    
         
            +
            chmod +x $rvm_bin_path/*
         
     | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
89 
     | 
    
         
             
            #
         
     | 
| 
       90 
90 
     | 
    
         
             
            # RC Files
         
     | 
| 
         @@ -101,37 +101,50 @@ if [[ ! -z "$rvm_auto_flag" ]] ; then 
     | 
|
| 
       101 
101 
     | 
    
         
             
                    fi
         
     | 
| 
       102 
102 
     | 
    
         
             
                  fi
         
     | 
| 
       103 
103 
     | 
    
         
             
                  if ! grep -q "scripts\/rvm" "$rcfile" ; then
         
     | 
| 
       104 
     | 
    
         
            -
                    echo "    Adding 'if [[ -s $ 
     | 
| 
       105 
     | 
    
         
            -
                    echo -e "\n# rvm-install added:\nif [[ -s $ 
     | 
| 
      
 104 
     | 
    
         
            +
                    echo "    Adding 'if [[ -s $rvm_scripts_path/rvm ]] ; then source $rvm_scripts_path/rvm ; fi' to $rcfile."
         
     | 
| 
      
 105 
     | 
    
         
            +
                    echo -e "\n# rvm-install added:\nif [[ -s $rvm_scripts_path/rvm ]] ; then source $rvm_scripts_path/rvm ; fi\n" >> $rcfile
         
     | 
| 
       106 
106 
     | 
    
         
             
                  fi
         
     | 
| 
       107 
107 
     | 
    
         
             
                done
         
     | 
| 
       108 
108 
     | 
    
         
             
              fi
         
     | 
| 
       109 
109 
     | 
    
         
             
            fi
         
     | 
| 
       110 
110 
     | 
    
         | 
| 
       111 
111 
     | 
    
         
             
            #
         
     | 
| 
       112 
     | 
    
         
            -
            #  
     | 
| 
      
 112 
     | 
    
         
            +
            # Migrate ~/.rvm/ruby-X,jruby-X,... to ~/.rvm/rubies/ for 0.1.0.
         
     | 
| 
      
 113 
     | 
    
         
            +
            #
         
     | 
| 
      
 114 
     | 
    
         
            +
            rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
         
     | 
| 
      
 115 
     | 
    
         
            +
            mkdir -p "$rvm_rubies_path/"
         
     | 
| 
      
 116 
     | 
    
         
            +
            for ruby in $rvm_path/ruby-* $rvm_path/jruby-* $rvm_path/mput-* $rvm_path/rbx-* $rvm_path/maglev-* $rvm_path/ree-* ; do
         
     | 
| 
      
 117 
     | 
    
         
            +
              if [[ -d "$ruby" ]] ; then
         
     | 
| 
      
 118 
     | 
    
         
            +
                mv "$ruby" "$rvm_rubies_path/"
         
     | 
| 
      
 119 
     | 
    
         
            +
                new_path="$rvm_rubies_path/$(basename $ruby)"
         
     | 
| 
      
 120 
     | 
    
         
            +
                for file in gem rake ; do
         
     | 
| 
      
 121 
     | 
    
         
            +
                  if [[ -s "$new_path/bin/$file" ]] ; then
         
     | 
| 
      
 122 
     | 
    
         
            +
                    sed -i -e '1,1s=.*=#!'"$new_path/bin/ruby=" "$new_path/bin/$file"
         
     | 
| 
      
 123 
     | 
    
         
            +
                    rm -f "$new_path/bin/$file.orig"
         
     | 
| 
      
 124 
     | 
    
         
            +
                    chmod +x "$new_path/bin/$file"
         
     | 
| 
      
 125 
     | 
    
         
            +
                  fi
         
     | 
| 
      
 126 
     | 
    
         
            +
                done
         
     | 
| 
      
 127 
     | 
    
         
            +
              fi
         
     | 
| 
      
 128 
     | 
    
         
            +
            done
         
     | 
| 
      
 129 
     | 
    
         
            +
            #
         
     | 
| 
      
 130 
     | 
    
         
            +
            # End of migration.
         
     | 
| 
       113 
131 
     | 
    
         
             
            #
         
     | 
| 
       114 
     | 
    
         
            -
            #rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
         
     | 
| 
       115 
     | 
    
         
            -
            #mkdir -p $rvm_rubies_path
         
     | 
| 
       116 
     | 
    
         
            -
            #for ruby in "$rvm_path"/ruby-* "$rvm_path"/jruby-* "$rvm_path"/mput-* "$rvm_path"/rbx-* ; do
         
     | 
| 
       117 
     | 
    
         
            -
            #  if [[ -d "$ruby" ]] ; then mv "$ruby" "$rvm_rubies_path" ; fi
         
     | 
| 
       118 
     | 
    
         
            -
            #done
         
     | 
| 
       119 
132 
     | 
    
         | 
| 
       120 
133 
     | 
    
         
             
            if [[ "root" = "$(whoami)" ]] ; then
         
     | 
| 
       121 
134 
     | 
    
         
             
              echo -e "\n    Symlinking rvm to $rvm_symlink_path/rvm ..."
         
     | 
| 
       122 
135 
     | 
    
         
             
              mkdir -p $rvm_symlink_path
         
     | 
| 
       123 
     | 
    
         
            -
              ln -nfs $ 
     | 
| 
       124 
     | 
    
         
            -
              ln -nfs $ 
     | 
| 
      
 136 
     | 
    
         
            +
              ln -nfs $rvm_bin_path/rvm $rvm_symlink_path/rvm
         
     | 
| 
      
 137 
     | 
    
         
            +
              ln -nfs $rvm_bin_path/rvmsudo $rvm_symlink_path/rvmsudo
         
     | 
| 
       125 
138 
     | 
    
         
             
              chmod +x $rvm_symlink_path/rvm
         
     | 
| 
       126 
139 
     | 
    
         
             
              chmod +x $rvm_symlink_path/rvmsudo
         
     | 
| 
       127 
140 
     | 
    
         
             
            fi
         
     | 
| 
       128 
141 
     | 
    
         | 
| 
       129 
142 
     | 
    
         
             
            echo -e "\n$(tput setaf 2)rvm$(tput sgr0) - shell scripts that allows a user to manage multiple ruby versions in their own account."
         
     | 
| 
       130 
     | 
    
         
            -
            $ 
     | 
| 
      
 143 
     | 
    
         
            +
            $rvm_scripts_path/notes
         
     | 
| 
       131 
144 
     | 
    
         | 
| 
       132 
145 
     | 
    
         
             
            echo -e "$(tput setaf 2)RTFM: $(tput sgr0) http://rvm.beginrescueend.com/"
         
     | 
| 
       133 
146 
     | 
    
         
             
            echo -e "\n$(tput setaf 2)HELP: $(tput sgr0) http://webchat.freenode.net/?channels=rvm "
         
     | 
| 
       134 
     | 
    
         
            -
            echo " 
     | 
| 
      
 147 
     | 
    
         
            +
            echo -e "\n********************************************************************************"
         
     | 
| 
       135 
148 
     | 
    
         
             
            name="$(awk -F= '/^[[:space:]]*name/{print $2}' ~/.gitconfig 2>/dev/null)"
         
     | 
| 
       136 
149 
     | 
    
         
             
            echo -e "\n${name:-"$(whoami)"},\n"
         
     | 
| 
       137 
150 
     | 
    
         
             
            echo -e "\nThank you for using rvm. I hope that it makes your work easier and more enjoyable."
         
     | 
| 
         @@ -139,13 +152,8 @@ echo -e "If you have any questions, issues and/or ideas for improvement please h 
     | 
|
| 
       139 
152 
     | 
    
         
             
            echo -e "My irc nickname is 'wayneeseguin' and I hang out from ~09:00-17:00EST and again from ~21:00EST-~00:00EST."
         
     | 
| 
       140 
153 
     | 
    
         
             
            echo -e "If I do not respond right away, please hang around after asking your question, I will respond as soon as I am back."
         
     | 
| 
       141 
154 
     | 
    
         
             
            echo -e "\n  w$(tput setaf 2)⦿‿⦿$(tput sgr0)t!"
         
     | 
| 
       142 
     | 
    
         
            -
            echo -e "\n    ~ Wayne 
     | 
| 
       143 
     | 
    
         
            -
            echo " 
     | 
| 
       144 
     | 
    
         
            -
            echo -e "Upgrades"
         
     | 
| 
       145 
     | 
    
         
            -
            echo -e "Gems are now per interpreter installation instead of per interpreter/version"
         
     | 
| 
       146 
     | 
    
         
            -
            echo -e "so for example to upgrade an older install of 1.8.6 and preserve gems:"
         
     | 
| 
       147 
     | 
    
         
            -
            echo -e "rm -rf ~/.rvm/gems/ruby-1.8.6-p383 ;  mv ~/.rvm/gems/ruby/1.8.6 ~/.rvm/gems/ruby-1.8.6-p383"
         
     | 
| 
       148 
     | 
    
         
            -
            echo "================================================================================"
         
     | 
| 
      
 155 
     | 
    
         
            +
            echo -e "\n    ~ Wayne"
         
     | 
| 
      
 156 
     | 
    
         
            +
            echo -e "\n********************************************************************************"
         
     | 
| 
       149 
157 
     | 
    
         
             
            echo -e "\n$(tput setaf 1)You must now finish the install manually:$(tput sgr0)"
         
     | 
| 
       150 
158 
     | 
    
         
             
            echo -e "\n1) Place the folowing line at the end of your shell's loading files(.bashrc and then .bash_profile for bash and .zshrc for zsh), after all path/variable settings:"
         
     | 
| 
       151 
159 
     | 
    
         
             
            echo -e "\n     if [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi"
         
     | 
    
        data/lib/VERSION.yml
    CHANGED
    
    
    
        data/rvm.gemspec
    CHANGED
    
    
    
        data/scripts/cli
    CHANGED
    
    | 
         @@ -353,7 +353,7 @@ rvm() { 
     | 
|
| 
       353 
353 
     | 
    
         
             
              if [[ ! -z "$PS1" ]] ; then export rvm_interactive=1 ; else unset rvm_interactive ; fi
         
     | 
| 
       354 
354 
     | 
    
         | 
| 
       355 
355 
     | 
    
         
             
              if [[ -z "$ZSH_VERSION" ]] ; then
         
     | 
| 
       356 
     | 
    
         
            -
                trap 'rm -rf "$ 
     | 
| 
      
 356 
     | 
    
         
            +
                trap 'rm -rf "$rvm_tmp_path/$$" >/dev/null 2>&1' 0 1 2 3 15
         
     | 
| 
       357 
357 
     | 
    
         
             
              fi
         
     | 
| 
       358 
358 
     | 
    
         | 
| 
       359 
359 
     | 
    
         
             
              # Check that this is the current version.
         
     | 
| 
         @@ -438,7 +438,7 @@ rvm() { 
     | 
|
| 
       438 
438 
     | 
    
         
             
                  result=1
         
     | 
| 
       439 
439 
     | 
    
         
             
              esac
         
     | 
| 
       440 
440 
     | 
    
         | 
| 
       441 
     | 
    
         
            -
              if [[ ! -z "$rvm_reload_flag" ]] ; then source "$ 
     | 
| 
      
 441 
     | 
    
         
            +
              if [[ ! -z "$rvm_reload_flag" ]] ; then source "$rvm_scripts_path/rvm" ; fi
         
     | 
| 
       442 
442 
     | 
    
         | 
| 
       443 
443 
     | 
    
         
             
              if [[ ! -z "$rvm_trace_flag" ]] ; then set +x ; unset rvm_trace_flag ; fi
         
     | 
| 
       444 
444 
     | 
    
         | 
    
        data/scripts/fetch
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
            trap "if [[ -d $ 
     | 
| 
      
 5 
     | 
    
         
            +
            trap "if [[ -d $rvm_tmp_path/ ]] && [[ -f $rvm_tmp_path/$$ ]] ; then rm -f $rvm_tmp_path/$$ > /dev/null 2>&1 ; fi ; exit" 0 1 2 3 15
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            if ! which curl &> /dev/null; then
         
     | 
| 
       8 
8 
     | 
    
         
             
              $rvm_scripts_path/log "fail" "rvm requires curl, which does not seem to exist in your path :("
         
     | 
    
        data/scripts/gems
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            #!/usr/bin/env bash
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            source $ 
     | 
| 
       4 
     | 
    
         
            -
            source $ 
     | 
| 
      
 3 
     | 
    
         
            +
            source $rvm_scripts_path/utility
         
     | 
| 
      
 4 
     | 
    
         
            +
            source $rvm_scripts_path/selector
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            color_green=$($rvm_scripts_path/color "green")
         
     | 
| 
       7 
7 
     | 
    
         
             
            color_red=$($rvm_scripts_path/color "red")
         
     | 
| 
         @@ -12,7 +12,7 @@ if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi 
     | 
|
| 
       12 
12 
     | 
    
         
             
            rvm_ruby_gem_home="${rvm_ruby_gem_home:-$GEM_HOME}"
         
     | 
| 
       13 
13 
     | 
    
         
             
            if [[ -d "$rvm_ruby_gem_home" ]] && which gem &> /dev/null ; then rvm_ruby_gem_home="$(gem env home)" ; fi
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
       15 
     | 
    
         
            -
            trap "if [[ -d $ 
     | 
| 
      
 15 
     | 
    
         
            +
            trap "if [[ -d $rvm_tmp_path/ ]] && [[ -f $rvm_tmp_path/$$ ]] ; then rm -f $rvm_tmp_path/$$ > /dev/null 2>&1 ; fi ; exit" 0 1 2 3 15
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
17 
     | 
    
         
             
            __rvm_gems_name() {
         
     | 
| 
       18 
18 
     | 
    
         
             
              echo "$(gem env gemdir)" | awk -F'%' '{print $2}'
         
     | 
    
        data/scripts/hook
    CHANGED
    
    | 
         @@ -2,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
            trap "if [[ -d $ 
     | 
| 
      
 5 
     | 
    
         
            +
            trap "if [[ -d $rvm_tmp_path/ ]] && [[ -f $rvm_tmp_path/$$ ]] ; then rm -f $rvm_tmp_path/$$ > /dev/null 2>&1 ; fi ; exit" 0 1 2 3 15
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            if [[ ! -z "$1" ]] ; then
         
     | 
| 
       8 
8 
     | 
    
         
             
              if [[ -s "$rvm_hooks_path/$1" ]] ; then
         
     | 
    
        data/scripts/initialize
    CHANGED
    
    | 
         @@ -26,11 +26,12 @@ rvm_src_path="${rvm_src_path:-"$rvm_path/src"}" 
     | 
|
| 
       26 
26 
     | 
    
         
             
            rvm_log_path="${rvm_log_path:-"$rvm_path/log"}"
         
     | 
| 
       27 
27 
     | 
    
         
             
            rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
         
     | 
| 
       28 
28 
     | 
    
         
             
            rvm_gem_path="${rvm_gem_path:-"$rvm_path/gems"}"
         
     | 
| 
      
 29 
     | 
    
         
            +
            rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
         
     | 
| 
       29 
30 
     | 
    
         
             
            rvm_config_path="${rvm_config_path:-"$rvm_path/config"}"
         
     | 
| 
       30 
31 
     | 
    
         
             
            rvm_hooks_path="${rvm_hooks_path:-"$rvm_path/hooks"}"
         
     | 
| 
       31 
32 
     | 
    
         
             
            rvm_tmp_path="${rvm_tmp_path:-"$rvm_path/tmp"}"
         
     | 
| 
       32 
33 
     | 
    
         
             
            rvm_symlink_path="${rvm_symlink_path:-/usr/local/bin}"
         
     | 
| 
       33 
34 
     | 
    
         
             
            rvm_gem_options="${rvm_gem_options:-"--no-rdoc --no-ri"}"
         
     | 
| 
       34 
35 
     | 
    
         | 
| 
       35 
     | 
    
         
            -
            export rvm_path rvm_scripts_path rvm_archives_path rvm_src_path rvm_log_path rvm_bin_path rvm_gem_path rvm_config_path rvm_tmp_path rvm_hooks_path
         
     | 
| 
      
 36 
     | 
    
         
            +
            export rvm_path rvm_rubies_path rvm_scripts_path rvm_archives_path rvm_src_path rvm_log_path rvm_bin_path rvm_gem_path rvm_config_path rvm_tmp_path rvm_hooks_path
         
     | 
| 
       36 
37 
     | 
    
         | 
    
        data/scripts/install
    CHANGED
    
    | 
         @@ -64,7 +64,7 @@ cp -f "$source_path/README" "$rvm_path/" 
     | 
|
| 
       64 
64 
     | 
    
         
             
            #
         
     | 
| 
       65 
65 
     | 
    
         
             
            # Scripts
         
     | 
| 
       66 
66 
     | 
    
         
             
            #
         
     | 
| 
       67 
     | 
    
         
            -
            rm -rf $ 
     | 
| 
      
 67 
     | 
    
         
            +
            rm -rf $rvm_scripts_path # Clear the old scripts directory so that the old style rvm- scripts are cleared out.
         
     | 
| 
       68 
68 
     | 
    
         
             
            for dir_name in config scripts examples lib hooks ; do
         
     | 
| 
       69 
69 
     | 
    
         
             
              mkdir -p "$rvm_path/$dir_name"
         
     | 
| 
       70 
70 
     | 
    
         
             
              if [[ -d "$source_path/$dir_name" ]] ; then
         
     | 
| 
         @@ -72,19 +72,19 @@ for dir_name in config scripts examples lib hooks ; do 
     | 
|
| 
       72 
72 
     | 
    
         
             
              fi
         
     | 
| 
       73 
73 
     | 
    
         
             
            done ; unset dir_name
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
     | 
    
         
            -
            if [[ ! -s "$ 
     | 
| 
       76 
     | 
    
         
            -
              echo '# Users settings file, overrides db file settings and persists across installs.' >> $ 
     | 
| 
      
 75 
     | 
    
         
            +
            if [[ ! -s "$rvm_config_path/user" ]] ; then
         
     | 
| 
      
 76 
     | 
    
         
            +
              echo '# Users settings file, overrides db file settings and persists across installs.' >> $rvm_config_path/user
         
     | 
| 
       77 
77 
     | 
    
         
             
            fi
         
     | 
| 
       78 
78 
     | 
    
         | 
| 
       79 
79 
     | 
    
         
             
            #
         
     | 
| 
       80 
80 
     | 
    
         
             
            # Bin Scripts
         
     | 
| 
       81 
81 
     | 
    
         
             
            #
         
     | 
| 
       82 
82 
     | 
    
         
             
            # Cleanse and purge...
         
     | 
| 
       83 
     | 
    
         
            -
            rm -f $ 
     | 
| 
      
 83 
     | 
    
         
            +
            rm -f $rvm_bin_path/rvm ; rm -rf $rvm_bin_path/binscripts
         
     | 
| 
       84 
84 
     | 
    
         
             
            for file in rvm-prompt rvm rvmsudo ; do
         
     | 
| 
       85 
     | 
    
         
            -
              cp -f "$source_path/binscripts/$file" $ 
     | 
| 
      
 85 
     | 
    
         
            +
              cp -f "$source_path/binscripts/$file" $rvm_bin_path/
         
     | 
| 
       86 
86 
     | 
    
         
             
            done
         
     | 
| 
       87 
     | 
    
         
            -
            chmod +x $ 
     | 
| 
      
 87 
     | 
    
         
            +
            chmod +x $rvm_bin_path/*
         
     | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
89 
     | 
    
         
             
            #
         
     | 
| 
       90 
90 
     | 
    
         
             
            # RC Files
         
     | 
| 
         @@ -101,37 +101,50 @@ if [[ ! -z "$rvm_auto_flag" ]] ; then 
     | 
|
| 
       101 
101 
     | 
    
         
             
                    fi
         
     | 
| 
       102 
102 
     | 
    
         
             
                  fi
         
     | 
| 
       103 
103 
     | 
    
         
             
                  if ! grep -q "scripts\/rvm" "$rcfile" ; then
         
     | 
| 
       104 
     | 
    
         
            -
                    echo "    Adding 'if [[ -s $ 
     | 
| 
       105 
     | 
    
         
            -
                    echo -e "\n# rvm-install added:\nif [[ -s $ 
     | 
| 
      
 104 
     | 
    
         
            +
                    echo "    Adding 'if [[ -s $rvm_scripts_path/rvm ]] ; then source $rvm_scripts_path/rvm ; fi' to $rcfile."
         
     | 
| 
      
 105 
     | 
    
         
            +
                    echo -e "\n# rvm-install added:\nif [[ -s $rvm_scripts_path/rvm ]] ; then source $rvm_scripts_path/rvm ; fi\n" >> $rcfile
         
     | 
| 
       106 
106 
     | 
    
         
             
                  fi
         
     | 
| 
       107 
107 
     | 
    
         
             
                done
         
     | 
| 
       108 
108 
     | 
    
         
             
              fi
         
     | 
| 
       109 
109 
     | 
    
         
             
            fi
         
     | 
| 
       110 
110 
     | 
    
         | 
| 
       111 
111 
     | 
    
         
             
            #
         
     | 
| 
       112 
     | 
    
         
            -
            #  
     | 
| 
      
 112 
     | 
    
         
            +
            # Migrate ~/.rvm/ruby-X,jruby-X,... to ~/.rvm/rubies/ for 0.1.0.
         
     | 
| 
      
 113 
     | 
    
         
            +
            #
         
     | 
| 
      
 114 
     | 
    
         
            +
            rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
         
     | 
| 
      
 115 
     | 
    
         
            +
            mkdir -p "$rvm_rubies_path/"
         
     | 
| 
      
 116 
     | 
    
         
            +
            for ruby in $rvm_path/ruby-* $rvm_path/jruby-* $rvm_path/mput-* $rvm_path/rbx-* $rvm_path/maglev-* $rvm_path/ree-* ; do
         
     | 
| 
      
 117 
     | 
    
         
            +
              if [[ -d "$ruby" ]] ; then
         
     | 
| 
      
 118 
     | 
    
         
            +
                mv "$ruby" "$rvm_rubies_path/"
         
     | 
| 
      
 119 
     | 
    
         
            +
                new_path="$rvm_rubies_path/$(basename $ruby)"
         
     | 
| 
      
 120 
     | 
    
         
            +
                for file in gem rake ; do
         
     | 
| 
      
 121 
     | 
    
         
            +
                  if [[ -s "$new_path/bin/$file" ]] ; then
         
     | 
| 
      
 122 
     | 
    
         
            +
                    sed -i -e '1,1s=.*=#!'"$new_path/bin/ruby=" "$new_path/bin/$file"
         
     | 
| 
      
 123 
     | 
    
         
            +
                    rm -f "$new_path/bin/$file.orig"
         
     | 
| 
      
 124 
     | 
    
         
            +
                    chmod +x "$new_path/bin/$file"
         
     | 
| 
      
 125 
     | 
    
         
            +
                  fi
         
     | 
| 
      
 126 
     | 
    
         
            +
                done
         
     | 
| 
      
 127 
     | 
    
         
            +
              fi
         
     | 
| 
      
 128 
     | 
    
         
            +
            done
         
     | 
| 
      
 129 
     | 
    
         
            +
            #
         
     | 
| 
      
 130 
     | 
    
         
            +
            # End of migration.
         
     | 
| 
       113 
131 
     | 
    
         
             
            #
         
     | 
| 
       114 
     | 
    
         
            -
            #rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
         
     | 
| 
       115 
     | 
    
         
            -
            #mkdir -p $rvm_rubies_path
         
     | 
| 
       116 
     | 
    
         
            -
            #for ruby in "$rvm_path"/ruby-* "$rvm_path"/jruby-* "$rvm_path"/mput-* "$rvm_path"/rbx-* ; do
         
     | 
| 
       117 
     | 
    
         
            -
            #  if [[ -d "$ruby" ]] ; then mv "$ruby" "$rvm_rubies_path" ; fi
         
     | 
| 
       118 
     | 
    
         
            -
            #done
         
     | 
| 
       119 
132 
     | 
    
         | 
| 
       120 
133 
     | 
    
         
             
            if [[ "root" = "$(whoami)" ]] ; then
         
     | 
| 
       121 
134 
     | 
    
         
             
              echo -e "\n    Symlinking rvm to $rvm_symlink_path/rvm ..."
         
     | 
| 
       122 
135 
     | 
    
         
             
              mkdir -p $rvm_symlink_path
         
     | 
| 
       123 
     | 
    
         
            -
              ln -nfs $ 
     | 
| 
       124 
     | 
    
         
            -
              ln -nfs $ 
     | 
| 
      
 136 
     | 
    
         
            +
              ln -nfs $rvm_bin_path/rvm $rvm_symlink_path/rvm
         
     | 
| 
      
 137 
     | 
    
         
            +
              ln -nfs $rvm_bin_path/rvmsudo $rvm_symlink_path/rvmsudo
         
     | 
| 
       125 
138 
     | 
    
         
             
              chmod +x $rvm_symlink_path/rvm
         
     | 
| 
       126 
139 
     | 
    
         
             
              chmod +x $rvm_symlink_path/rvmsudo
         
     | 
| 
       127 
140 
     | 
    
         
             
            fi
         
     | 
| 
       128 
141 
     | 
    
         | 
| 
       129 
142 
     | 
    
         
             
            echo -e "\n$(tput setaf 2)rvm$(tput sgr0) - shell scripts that allows a user to manage multiple ruby versions in their own account."
         
     | 
| 
       130 
     | 
    
         
            -
            $ 
     | 
| 
      
 143 
     | 
    
         
            +
            $rvm_scripts_path/notes
         
     | 
| 
       131 
144 
     | 
    
         | 
| 
       132 
145 
     | 
    
         
             
            echo -e "$(tput setaf 2)RTFM: $(tput sgr0) http://rvm.beginrescueend.com/"
         
     | 
| 
       133 
146 
     | 
    
         
             
            echo -e "\n$(tput setaf 2)HELP: $(tput sgr0) http://webchat.freenode.net/?channels=rvm "
         
     | 
| 
       134 
     | 
    
         
            -
            echo " 
     | 
| 
      
 147 
     | 
    
         
            +
            echo -e "\n********************************************************************************"
         
     | 
| 
       135 
148 
     | 
    
         
             
            name="$(awk -F= '/^[[:space:]]*name/{print $2}' ~/.gitconfig 2>/dev/null)"
         
     | 
| 
       136 
149 
     | 
    
         
             
            echo -e "\n${name:-"$(whoami)"},\n"
         
     | 
| 
       137 
150 
     | 
    
         
             
            echo -e "\nThank you for using rvm. I hope that it makes your work easier and more enjoyable."
         
     | 
| 
         @@ -139,13 +152,8 @@ echo -e "If you have any questions, issues and/or ideas for improvement please h 
     | 
|
| 
       139 
152 
     | 
    
         
             
            echo -e "My irc nickname is 'wayneeseguin' and I hang out from ~09:00-17:00EST and again from ~21:00EST-~00:00EST."
         
     | 
| 
       140 
153 
     | 
    
         
             
            echo -e "If I do not respond right away, please hang around after asking your question, I will respond as soon as I am back."
         
     | 
| 
       141 
154 
     | 
    
         
             
            echo -e "\n  w$(tput setaf 2)⦿‿⦿$(tput sgr0)t!"
         
     | 
| 
       142 
     | 
    
         
            -
            echo -e "\n    ~ Wayne 
     | 
| 
       143 
     | 
    
         
            -
            echo " 
     | 
| 
       144 
     | 
    
         
            -
            echo -e "Upgrades"
         
     | 
| 
       145 
     | 
    
         
            -
            echo -e "Gems are now per interpreter installation instead of per interpreter/version"
         
     | 
| 
       146 
     | 
    
         
            -
            echo -e "so for example to upgrade an older install of 1.8.6 and preserve gems:"
         
     | 
| 
       147 
     | 
    
         
            -
            echo -e "rm -rf ~/.rvm/gems/ruby-1.8.6-p383 ;  mv ~/.rvm/gems/ruby/1.8.6 ~/.rvm/gems/ruby-1.8.6-p383"
         
     | 
| 
       148 
     | 
    
         
            -
            echo "================================================================================"
         
     | 
| 
      
 155 
     | 
    
         
            +
            echo -e "\n    ~ Wayne"
         
     | 
| 
      
 156 
     | 
    
         
            +
            echo -e "\n********************************************************************************"
         
     | 
| 
       149 
157 
     | 
    
         
             
            echo -e "\n$(tput setaf 1)You must now finish the install manually:$(tput sgr0)"
         
     | 
| 
       150 
158 
     | 
    
         
             
            echo -e "\n1) Place the folowing line at the end of your shell's loading files(.bashrc and then .bash_profile for bash and .zshrc for zsh), after all path/variable settings:"
         
     | 
| 
       151 
159 
     | 
    
         
             
            echo -e "\n     if [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi"
         
     | 
    
        data/scripts/manage
    CHANGED
    
    | 
         @@ -8,7 +8,7 @@ source $rvm_scripts_path/utility 
     | 
|
| 
       8 
8 
     | 
    
         
             
            source $rvm_scripts_path/selector
         
     | 
| 
       9 
9 
     | 
    
         
             
            source $rvm_scripts_path/libraries
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
     | 
    
         
            -
            trap "rm -f $ 
     | 
| 
      
 11 
     | 
    
         
            +
            trap "rm -f $rvm_tmp_path/$$* > /dev/null 2>&1 ; exit" 0 1 2 3 15
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
13 
     | 
    
         
             
            if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi
         
     | 
| 
       14 
14 
     | 
    
         | 
| 
         @@ -130,7 +130,7 @@ __rvm_install_ruby() { 
     | 
|
| 
       130 
130 
     | 
    
         
             
                      fi
         
     | 
| 
       131 
131 
     | 
    
         | 
| 
       132 
132 
     | 
    
         
             
                      mv "$rvm_archives_path/macruby_nightly-latest.pkg" "$rvm_archives_path/macruby_nightly.pkg"
         
     | 
| 
       133 
     | 
    
         
            -
                      __rvm_run "macruby/extract" "sudo installer -pkg '$ 
     | 
| 
      
 133 
     | 
    
         
            +
                      __rvm_run "macruby/extract" "sudo installer -pkg '$rvm_archives_path/macruby_nightly.pkg' -target '/'"
         
     | 
| 
       134 
134 
     | 
    
         
             
                      mkdir -p "$rvm_ruby_home/bin"
         
     | 
| 
       135 
135 
     | 
    
         
             
                    fi
         
     | 
| 
       136 
136 
     | 
    
         | 
| 
         @@ -148,7 +148,7 @@ PATH="$rvm_ruby_home/bin:$rvm_ruby_gem_home/bin:\$PATH" ; export PATH 
     | 
|
| 
       148 
148 
     | 
    
         
             
            exec $macruby_path/mac$binary_name $prefix "\$@"
         
     | 
| 
       149 
149 
     | 
    
         
             
            RubyWrapper
         
     | 
| 
       150 
150 
     | 
    
         
             
            )
         
     | 
| 
       151 
     | 
    
         
            -
                      for file_name in "$rvm_ruby_home/bin/$binary_name" "$ 
     | 
| 
      
 151 
     | 
    
         
            +
                      for file_name in "$rvm_ruby_home/bin/$binary_name" "$rvm_bin_path/$binary_name-$rvm_ruby_string" ; do
         
     | 
| 
       152 
152 
     | 
    
         
             
                        rm -f $file_name
         
     | 
| 
       153 
153 
     | 
    
         
             
                        echo "$ruby_wrapper" > $file_name
         
     | 
| 
       154 
154 
     | 
    
         
             
                        if [[ -f $file_name ]] ; then chmod +x $file_name ; fi
         
     | 
| 
         @@ -196,7 +196,7 @@ RubyWrapper 
     | 
|
| 
       196 
196 
     | 
    
         
             
                      rvm_ree_options="${rvm_ree_options} --no-tcmalloc"
         
     | 
| 
       197 
197 
     | 
    
         
             
                    fi
         
     | 
| 
       198 
198 
     | 
    
         | 
| 
       199 
     | 
    
         
            -
                    __rvm_run "install" "./installer -a $ 
     | 
| 
      
 199 
     | 
    
         
            +
                    __rvm_run "install" "./installer -a $rvm_rubies_path/$rvm_ruby_interpreter-$rvm_ruby_version-$rvm_ruby_patch_level $rvm_ree_options --dont-install-useful-gems $rvm_ruby_configure_flags" "Installing $rvm_ruby_string, this may take a while, depending on your cpu(s)..."
         
     | 
| 
       200 
200 
     | 
    
         
             
                      result=$? ; if [[ "$result" -gt 0 ]] ; then
         
     | 
| 
       201 
201 
     | 
    
         
             
                        $rvm_scripts_path/log "error" "There has been an error while trying to run the ree installer. Aborting the installation." ; __rvm_pushpop ; return $result
         
     | 
| 
       202 
202 
     | 
    
         
             
                      fi
         
     | 
| 
         @@ -258,7 +258,7 @@ RubyWrapper 
     | 
|
| 
       258 
258 
     | 
    
         
             
                    mv "$rvm_src_path/rubinius-$rvm_ruby_version-${rvm_ruby_patch_level/^p//}" $rvm_ruby_src_path
         
     | 
| 
       259 
259 
     | 
    
         
             
                  else
         
     | 
| 
       260 
260 
     | 
    
         
             
                    __rvm_db "rubinius_repo_url" "rvm_ruby_repo_url"
         
     | 
| 
       261 
     | 
    
         
            -
                    #rvm_ruby_home="$ 
     | 
| 
      
 261 
     | 
    
         
            +
                    #rvm_ruby_home="$rvm_rubies_path/$rvm_ruby_interpreter-$rvm_ruby_version"
         
     | 
| 
       262 
262 
     | 
    
         
             
                    if [[ ! -d "$rvm_ruby_src_path" ]] || [[ ! -d "$rvm_ruby_src_path/.git" ]] ; then
         
     | 
| 
       263 
263 
     | 
    
         
             
                      rm -rf "$rvm_ruby_src_path" ; builtin cd "$rvm_home"
         
     | 
| 
       264 
264 
     | 
    
         
             
                      __rvm_run "rbx.repo" "git clone --depth 1 $rvm_ruby_repo_url $rvm_ruby_src_path" "Cloning $rvm_ruby_repo_url"
         
     | 
| 
         @@ -320,7 +320,7 @@ PATH="$rvm_ruby_home/bin:$rvm_ruby_gem_home/bin:\$PATH" ; export PATH 
     | 
|
| 
       320 
320 
     | 
    
         
             
            exec $rvm_ruby_home/bin/rbx $prefix$binary_name "\$@"
         
     | 
| 
       321 
321 
     | 
    
         
             
            RubyWrapper
         
     | 
| 
       322 
322 
     | 
    
         
             
            )
         
     | 
| 
       323 
     | 
    
         
            -
                    for file_name in "$rvm_ruby_home/bin/$binary_name" "$ 
     | 
| 
      
 323 
     | 
    
         
            +
                    for file_name in "$rvm_ruby_home/bin/$binary_name" "$rvm_bin_path/$binary_name-$rvm_ruby_string"  ; do
         
     | 
| 
       324 
324 
     | 
    
         
             
                      rm -f $file_name
         
     | 
| 
       325 
325 
     | 
    
         
             
                      echo "$ruby_wrapper" > $file_name
         
     | 
| 
       326 
326 
     | 
    
         
             
                      if [[ -f $file_name ]] ; then chmod +x $file_name ; fi
         
     | 
| 
         @@ -526,7 +526,7 @@ PATH="$rvm_ruby_home/bin:$rvm_ruby_gem_home/bin:\$PATH" ; export PATH 
     | 
|
| 
       526 
526 
     | 
    
         
             
            exec mono $rvm_ruby_home/bin/ir.exe $binary_path "\$@"
         
     | 
| 
       527 
527 
     | 
    
         
             
            RubyWrapper
         
     | 
| 
       528 
528 
     | 
    
         
             
            )
         
     | 
| 
       529 
     | 
    
         
            -
                    files="$rvm_ruby_home/bin/$binary_name $ 
     | 
| 
      
 529 
     | 
    
         
            +
                    files="$rvm_ruby_home/bin/$binary_name $rvm_bin_path/$binary_name-$rvm_ruby_string"
         
     | 
| 
       530 
530 
     | 
    
         
             
                    for file_name in $(echo $files)  ; do
         
     | 
| 
       531 
531 
     | 
    
         
             
                      rm -f $file_name
         
     | 
| 
       532 
532 
     | 
    
         
             
                      echo "$ruby_wrapper" > $file_name
         
     | 
| 
         @@ -542,7 +542,7 @@ RubyWrapper 
     | 
|
| 
       542 
542 
     | 
    
         
             
                  PATH=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
         
     | 
| 
       543 
543 
     | 
    
         
             
                  PATH=$rvm_bin_path:$PATH ; export PATH
         
     | 
| 
       544 
544 
     | 
    
         | 
| 
       545 
     | 
    
         
            -
                  rvm_ruby_home="$ 
     | 
| 
      
 545 
     | 
    
         
            +
                  rvm_ruby_home="$rvm_rubies_path/$rvm_ruby_interpreter-$rvm_ruby_version"
         
     | 
| 
       546 
546 
     | 
    
         | 
| 
       547 
547 
     | 
    
         
             
                  if [[ ! -d "$rvm_ruby_src_path" ]] || [[ ! -d "$rvm_ruby_src_path/.git" ]] ; then
         
     | 
| 
       548 
548 
     | 
    
         
             
                    rm -rf $rvm_ruby_src_path
         
     | 
| 
         @@ -729,7 +729,7 @@ __rvm_uninstall_ruby() { 
     | 
|
| 
       729 
729 
     | 
    
         
             
              if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select ; fi
         
     | 
| 
       730 
730 
     | 
    
         | 
| 
       731 
731 
     | 
    
         
             
              if [[ ! -z "$rvm_ruby_string" ]] ; then
         
     | 
| 
       732 
     | 
    
         
            -
                for dir in $ 
     | 
| 
      
 732 
     | 
    
         
            +
                for dir in $rvm_rubies_path ; do
         
     | 
| 
       733 
733 
     | 
    
         
             
                  if [[ -d $dir/$rvm_ruby_string ]] ; then
         
     | 
| 
       734 
734 
     | 
    
         
             
                    $rvm_scripts_path/log "info" "Removing $dir/$rvm_ruby_string..."
         
     | 
| 
       735 
735 
     | 
    
         
             
                    rm -rf $dir/$rvm_ruby_string
         
     | 
| 
         @@ -750,7 +750,7 @@ __rvm_remove_ruby() { 
     | 
|
| 
       750 
750 
     | 
    
         
             
              if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select ; fi
         
     | 
| 
       751 
751 
     | 
    
         | 
| 
       752 
752 
     | 
    
         
             
              if [[ ! -z "$rvm_ruby_string" ]] ; then
         
     | 
| 
       753 
     | 
    
         
            -
                for dir in $rvm_src_path $ 
     | 
| 
      
 753 
     | 
    
         
            +
                for dir in $rvm_src_path $rvm_rubies_path ; do
         
     | 
| 
       754 
754 
     | 
    
         
             
                  if [[ -d $dir/$rvm_ruby_string ]] ; then
         
     | 
| 
       755 
755 
     | 
    
         
             
                    $rvm_scripts_path/log "info" "Removing $dir/$rvm_ruby_string..."
         
     | 
| 
       756 
756 
     | 
    
         
             
                    rm -rf $dir/$rvm_ruby_string
         
     | 
| 
         @@ -905,7 +905,7 @@ __rvm_manage_rubies() { 
     | 
|
| 
       905 
905 
     | 
    
         
             
                      eval "__rvm_${rvm_action}_ruby"
         
     | 
| 
       906 
906 
     | 
    
         
             
                      __rvm_unset_ruby_variables
         
     | 
| 
       907 
907 
     | 
    
         
             
                    fi
         
     | 
| 
       908 
     | 
    
         
            -
                  done < <(\ls $ 
     | 
| 
      
 908 
     | 
    
         
            +
                  done < <(\ls $rvm_rubies_path/*/bin/ruby 2> /dev/null)
         
     | 
| 
       909 
909 
     | 
    
         
             
                else
         
     | 
| 
       910 
910 
     | 
    
         
             
                  $rvm_scripts_path/log "warn" 'Really? Install all? See "rvm list --all" and limit the selection to something more sane please :)'
         
     | 
| 
       911 
911 
     | 
    
         
             
                fi
         
     | 
    
        data/scripts/monitor
    CHANGED
    
    | 
         @@ -9,7 +9,7 @@ source $rvm_scripts_path/rvm 
     | 
|
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
            rvm_monitor_sleep="${rvm_monitor_sleep:-2}"
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            trap "rm -f $ 
     | 
| 
      
 12 
     | 
    
         
            +
            trap "rm -f $rvm_tmp_path/$$* > /dev/null 2>&1 ; exit" 0 1 2 3 15
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
       14 
14 
     | 
    
         
             
            timestamp() {
         
     | 
| 
       15 
15 
     | 
    
         
             
              if [[ "Darwin" = "$(uname)" ]] ; then
         
     | 
    
        data/scripts/notes
    CHANGED
    
    | 
         @@ -3,6 +3,14 @@ 
     | 
|
| 
       3 
3 
     | 
    
         
             
            system="$(uname)"
         
     | 
| 
       4 
4 
     | 
    
         
             
            item="$(tput setaf 2)* $(tput sgr0)"
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
      
 6 
     | 
    
         
            +
            echo -e "\n$(tput setaf 6)**** NOTICE *************************************************************************************"
         
     | 
| 
      
 7 
     | 
    
         
            +
            echo -e "*  The rubies install path has moved to \$rvm_path/rubies/ instead of directly in \$rvm_path.     *"
         
     | 
| 
      
 8 
     | 
    
         
            +
            echo -e "*  If you encounter any issues with a ruby your best bet is to 'rvm remove X ; rvm install X'   *"
         
     | 
| 
      
 9 
     | 
    
         
            +
            echo -e "*  Gems are now per interpreter installation instead of per interpreter/version                 *"
         
     | 
| 
      
 10 
     | 
    
         
            +
            echo -e "*  so for example to upgrade an older install of 1.8.6 and preserve gems:                       *"
         
     | 
| 
      
 11 
     | 
    
         
            +
            echo -e "*  rm -rf ~/.rvm/gems/ruby-1.8.6-p383 ;  mv ~/.rvm/gems/ruby/1.8.6 ~/.rvm/gems/ruby-1.8.6-p383  *"
         
     | 
| 
      
 12 
     | 
    
         
            +
            echo -e "*************************************************************************************************$(tput sgr0)\n"
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
       6 
14 
     | 
    
         
             
            if [[ "Linux" = "$system" ]] ; then
         
     | 
| 
       7 
15 
     | 
    
         
             
              for file in /etc/*-release ; do
         
     | 
| 
       8 
16 
     | 
    
         
             
                release="( $(cat $file) )" ; break
         
     | 
    
        data/scripts/rvm
    CHANGED
    
    | 
         @@ -23,15 +23,16 @@ if [[ "$rvm_loaded_flag" != "1" ]] || [[ "$rvm_reload_flag" = "1" ]] ; then 
     | 
|
| 
       23 
23 
     | 
    
         
             
                fi
         
     | 
| 
       24 
24 
     | 
    
         
             
              fi
         
     | 
| 
       25 
25 
     | 
    
         
             
              if [[ -d "$rvm_path" ]] ; then
         
     | 
| 
       26 
     | 
    
         
            -
                 
     | 
| 
       27 
     | 
    
         
            -
                source $ 
     | 
| 
       28 
     | 
    
         
            -
                source $ 
     | 
| 
      
 26 
     | 
    
         
            +
                rvm_scripts_path="${rvm_scripts_path:-"$rvm_path/scripts"}"
         
     | 
| 
      
 27 
     | 
    
         
            +
                source $rvm_scripts_path/array
         
     | 
| 
      
 28 
     | 
    
         
            +
                source $rvm_scripts_path/utility
         
     | 
| 
      
 29 
     | 
    
         
            +
                source $rvm_scripts_path/initialize
         
     | 
| 
       29 
30 
     | 
    
         
             
                source $rvm_scripts_path/version
         
     | 
| 
       30 
     | 
    
         
            -
                source $ 
     | 
| 
       31 
     | 
    
         
            -
                source $ 
     | 
| 
       32 
     | 
    
         
            -
                #source $ 
     | 
| 
       33 
     | 
    
         
            -
                source $ 
     | 
| 
       34 
     | 
    
         
            -
                source $ 
     | 
| 
      
 31 
     | 
    
         
            +
                source $rvm_scripts_path/selector
         
     | 
| 
      
 32 
     | 
    
         
            +
                source $rvm_scripts_path/cli
         
     | 
| 
      
 33 
     | 
    
         
            +
                #source $rvm_scripts_path/gems
         
     | 
| 
      
 34 
     | 
    
         
            +
                source $rvm_scripts_path/libraries
         
     | 
| 
      
 35 
     | 
    
         
            +
                source $rvm_scripts_path/cd
         
     | 
| 
       35 
36 
     | 
    
         | 
| 
       36 
37 
     | 
    
         
             
                rvm_loaded_flag=1
         
     | 
| 
       37 
38 
     | 
    
         | 
    
        data/scripts/rvm-install
    CHANGED
    
    | 
         @@ -64,7 +64,7 @@ cp -f "$source_path/README" "$rvm_path/" 
     | 
|
| 
       64 
64 
     | 
    
         
             
            #
         
     | 
| 
       65 
65 
     | 
    
         
             
            # Scripts
         
     | 
| 
       66 
66 
     | 
    
         
             
            #
         
     | 
| 
       67 
     | 
    
         
            -
            rm -rf $ 
     | 
| 
      
 67 
     | 
    
         
            +
            rm -rf $rvm_scripts_path # Clear the old scripts directory so that the old style rvm- scripts are cleared out.
         
     | 
| 
       68 
68 
     | 
    
         
             
            for dir_name in config scripts examples lib hooks ; do
         
     | 
| 
       69 
69 
     | 
    
         
             
              mkdir -p "$rvm_path/$dir_name"
         
     | 
| 
       70 
70 
     | 
    
         
             
              if [[ -d "$source_path/$dir_name" ]] ; then
         
     | 
| 
         @@ -72,19 +72,19 @@ for dir_name in config scripts examples lib hooks ; do 
     | 
|
| 
       72 
72 
     | 
    
         
             
              fi
         
     | 
| 
       73 
73 
     | 
    
         
             
            done ; unset dir_name
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
     | 
    
         
            -
            if [[ ! -s "$ 
     | 
| 
       76 
     | 
    
         
            -
              echo '# Users settings file, overrides db file settings and persists across installs.' >> $ 
     | 
| 
      
 75 
     | 
    
         
            +
            if [[ ! -s "$rvm_config_path/user" ]] ; then
         
     | 
| 
      
 76 
     | 
    
         
            +
              echo '# Users settings file, overrides db file settings and persists across installs.' >> $rvm_config_path/user
         
     | 
| 
       77 
77 
     | 
    
         
             
            fi
         
     | 
| 
       78 
78 
     | 
    
         | 
| 
       79 
79 
     | 
    
         
             
            #
         
     | 
| 
       80 
80 
     | 
    
         
             
            # Bin Scripts
         
     | 
| 
       81 
81 
     | 
    
         
             
            #
         
     | 
| 
       82 
82 
     | 
    
         
             
            # Cleanse and purge...
         
     | 
| 
       83 
     | 
    
         
            -
            rm -f $ 
     | 
| 
      
 83 
     | 
    
         
            +
            rm -f $rvm_bin_path/rvm ; rm -rf $rvm_bin_path/binscripts
         
     | 
| 
       84 
84 
     | 
    
         
             
            for file in rvm-prompt rvm rvmsudo ; do
         
     | 
| 
       85 
     | 
    
         
            -
              cp -f "$source_path/binscripts/$file" $ 
     | 
| 
      
 85 
     | 
    
         
            +
              cp -f "$source_path/binscripts/$file" $rvm_bin_path/
         
     | 
| 
       86 
86 
     | 
    
         
             
            done
         
     | 
| 
       87 
     | 
    
         
            -
            chmod +x $ 
     | 
| 
      
 87 
     | 
    
         
            +
            chmod +x $rvm_bin_path/*
         
     | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
89 
     | 
    
         
             
            #
         
     | 
| 
       90 
90 
     | 
    
         
             
            # RC Files
         
     | 
| 
         @@ -101,37 +101,50 @@ if [[ ! -z "$rvm_auto_flag" ]] ; then 
     | 
|
| 
       101 
101 
     | 
    
         
             
                    fi
         
     | 
| 
       102 
102 
     | 
    
         
             
                  fi
         
     | 
| 
       103 
103 
     | 
    
         
             
                  if ! grep -q "scripts\/rvm" "$rcfile" ; then
         
     | 
| 
       104 
     | 
    
         
            -
                    echo "    Adding 'if [[ -s $ 
     | 
| 
       105 
     | 
    
         
            -
                    echo -e "\n# rvm-install added:\nif [[ -s $ 
     | 
| 
      
 104 
     | 
    
         
            +
                    echo "    Adding 'if [[ -s $rvm_scripts_path/rvm ]] ; then source $rvm_scripts_path/rvm ; fi' to $rcfile."
         
     | 
| 
      
 105 
     | 
    
         
            +
                    echo -e "\n# rvm-install added:\nif [[ -s $rvm_scripts_path/rvm ]] ; then source $rvm_scripts_path/rvm ; fi\n" >> $rcfile
         
     | 
| 
       106 
106 
     | 
    
         
             
                  fi
         
     | 
| 
       107 
107 
     | 
    
         
             
                done
         
     | 
| 
       108 
108 
     | 
    
         
             
              fi
         
     | 
| 
       109 
109 
     | 
    
         
             
            fi
         
     | 
| 
       110 
110 
     | 
    
         | 
| 
       111 
111 
     | 
    
         
             
            #
         
     | 
| 
       112 
     | 
    
         
            -
            #  
     | 
| 
      
 112 
     | 
    
         
            +
            # Migrate ~/.rvm/ruby-X,jruby-X,... to ~/.rvm/rubies/ for 0.1.0.
         
     | 
| 
      
 113 
     | 
    
         
            +
            #
         
     | 
| 
      
 114 
     | 
    
         
            +
            rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
         
     | 
| 
      
 115 
     | 
    
         
            +
            mkdir -p "$rvm_rubies_path/"
         
     | 
| 
      
 116 
     | 
    
         
            +
            for ruby in $rvm_path/ruby-* $rvm_path/jruby-* $rvm_path/mput-* $rvm_path/rbx-* $rvm_path/maglev-* $rvm_path/ree-* ; do
         
     | 
| 
      
 117 
     | 
    
         
            +
              if [[ -d "$ruby" ]] ; then
         
     | 
| 
      
 118 
     | 
    
         
            +
                mv "$ruby" "$rvm_rubies_path/"
         
     | 
| 
      
 119 
     | 
    
         
            +
                new_path="$rvm_rubies_path/$(basename $ruby)"
         
     | 
| 
      
 120 
     | 
    
         
            +
                for file in gem rake ; do
         
     | 
| 
      
 121 
     | 
    
         
            +
                  if [[ -s "$new_path/bin/$file" ]] ; then
         
     | 
| 
      
 122 
     | 
    
         
            +
                    sed -i -e '1,1s=.*=#!'"$new_path/bin/ruby=" "$new_path/bin/$file"
         
     | 
| 
      
 123 
     | 
    
         
            +
                    rm -f "$new_path/bin/$file.orig"
         
     | 
| 
      
 124 
     | 
    
         
            +
                    chmod +x "$new_path/bin/$file"
         
     | 
| 
      
 125 
     | 
    
         
            +
                  fi
         
     | 
| 
      
 126 
     | 
    
         
            +
                done
         
     | 
| 
      
 127 
     | 
    
         
            +
              fi
         
     | 
| 
      
 128 
     | 
    
         
            +
            done
         
     | 
| 
      
 129 
     | 
    
         
            +
            #
         
     | 
| 
      
 130 
     | 
    
         
            +
            # End of migration.
         
     | 
| 
       113 
131 
     | 
    
         
             
            #
         
     | 
| 
       114 
     | 
    
         
            -
            #rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
         
     | 
| 
       115 
     | 
    
         
            -
            #mkdir -p $rvm_rubies_path
         
     | 
| 
       116 
     | 
    
         
            -
            #for ruby in "$rvm_path"/ruby-* "$rvm_path"/jruby-* "$rvm_path"/mput-* "$rvm_path"/rbx-* ; do
         
     | 
| 
       117 
     | 
    
         
            -
            #  if [[ -d "$ruby" ]] ; then mv "$ruby" "$rvm_rubies_path" ; fi
         
     | 
| 
       118 
     | 
    
         
            -
            #done
         
     | 
| 
       119 
132 
     | 
    
         | 
| 
       120 
133 
     | 
    
         
             
            if [[ "root" = "$(whoami)" ]] ; then
         
     | 
| 
       121 
134 
     | 
    
         
             
              echo -e "\n    Symlinking rvm to $rvm_symlink_path/rvm ..."
         
     | 
| 
       122 
135 
     | 
    
         
             
              mkdir -p $rvm_symlink_path
         
     | 
| 
       123 
     | 
    
         
            -
              ln -nfs $ 
     | 
| 
       124 
     | 
    
         
            -
              ln -nfs $ 
     | 
| 
      
 136 
     | 
    
         
            +
              ln -nfs $rvm_bin_path/rvm $rvm_symlink_path/rvm
         
     | 
| 
      
 137 
     | 
    
         
            +
              ln -nfs $rvm_bin_path/rvmsudo $rvm_symlink_path/rvmsudo
         
     | 
| 
       125 
138 
     | 
    
         
             
              chmod +x $rvm_symlink_path/rvm
         
     | 
| 
       126 
139 
     | 
    
         
             
              chmod +x $rvm_symlink_path/rvmsudo
         
     | 
| 
       127 
140 
     | 
    
         
             
            fi
         
     | 
| 
       128 
141 
     | 
    
         | 
| 
       129 
142 
     | 
    
         
             
            echo -e "\n$(tput setaf 2)rvm$(tput sgr0) - shell scripts that allows a user to manage multiple ruby versions in their own account."
         
     | 
| 
       130 
     | 
    
         
            -
            $ 
     | 
| 
      
 143 
     | 
    
         
            +
            $rvm_scripts_path/notes
         
     | 
| 
       131 
144 
     | 
    
         | 
| 
       132 
145 
     | 
    
         
             
            echo -e "$(tput setaf 2)RTFM: $(tput sgr0) http://rvm.beginrescueend.com/"
         
     | 
| 
       133 
146 
     | 
    
         
             
            echo -e "\n$(tput setaf 2)HELP: $(tput sgr0) http://webchat.freenode.net/?channels=rvm "
         
     | 
| 
       134 
     | 
    
         
            -
            echo " 
     | 
| 
      
 147 
     | 
    
         
            +
            echo -e "\n********************************************************************************"
         
     | 
| 
       135 
148 
     | 
    
         
             
            name="$(awk -F= '/^[[:space:]]*name/{print $2}' ~/.gitconfig 2>/dev/null)"
         
     | 
| 
       136 
149 
     | 
    
         
             
            echo -e "\n${name:-"$(whoami)"},\n"
         
     | 
| 
       137 
150 
     | 
    
         
             
            echo -e "\nThank you for using rvm. I hope that it makes your work easier and more enjoyable."
         
     | 
| 
         @@ -139,13 +152,8 @@ echo -e "If you have any questions, issues and/or ideas for improvement please h 
     | 
|
| 
       139 
152 
     | 
    
         
             
            echo -e "My irc nickname is 'wayneeseguin' and I hang out from ~09:00-17:00EST and again from ~21:00EST-~00:00EST."
         
     | 
| 
       140 
153 
     | 
    
         
             
            echo -e "If I do not respond right away, please hang around after asking your question, I will respond as soon as I am back."
         
     | 
| 
       141 
154 
     | 
    
         
             
            echo -e "\n  w$(tput setaf 2)⦿‿⦿$(tput sgr0)t!"
         
     | 
| 
       142 
     | 
    
         
            -
            echo -e "\n    ~ Wayne 
     | 
| 
       143 
     | 
    
         
            -
            echo " 
     | 
| 
       144 
     | 
    
         
            -
            echo -e "Upgrades"
         
     | 
| 
       145 
     | 
    
         
            -
            echo -e "Gems are now per interpreter installation instead of per interpreter/version"
         
     | 
| 
       146 
     | 
    
         
            -
            echo -e "so for example to upgrade an older install of 1.8.6 and preserve gems:"
         
     | 
| 
       147 
     | 
    
         
            -
            echo -e "rm -rf ~/.rvm/gems/ruby-1.8.6-p383 ;  mv ~/.rvm/gems/ruby/1.8.6 ~/.rvm/gems/ruby-1.8.6-p383"
         
     | 
| 
       148 
     | 
    
         
            -
            echo "================================================================================"
         
     | 
| 
      
 155 
     | 
    
         
            +
            echo -e "\n    ~ Wayne"
         
     | 
| 
      
 156 
     | 
    
         
            +
            echo -e "\n********************************************************************************"
         
     | 
| 
       149 
157 
     | 
    
         
             
            echo -e "\n$(tput setaf 1)You must now finish the install manually:$(tput sgr0)"
         
     | 
| 
       150 
158 
     | 
    
         
             
            echo -e "\n1) Place the folowing line at the end of your shell's loading files(.bashrc and then .bash_profile for bash and .zshrc for zsh), after all path/variable settings:"
         
     | 
| 
       151 
159 
     | 
    
         
             
            echo -e "\n     if [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi"
         
     | 
    
        data/scripts/selector
    CHANGED
    
    | 
         @@ -104,7 +104,7 @@ __rvm_select() { 
     | 
|
| 
       104 
104 
     | 
    
         
             
                    maglev_url="$(__rvm_db "maglev_url")"
         
     | 
| 
       105 
105 
     | 
    
         
             
                    rvm_url="${rvm_ruby_url:-"$maglev_url/${rvm_ruby_package_file}.${rvm_archive_extension}"}"
         
     | 
| 
       106 
106 
     | 
    
         
             
                    rvm_gemstone_url="${rvm_gemstone_url:-"$maglev_url/${rvm_gemstone_package_file}.${rvm_archive_extension}"}"
         
     | 
| 
       107 
     | 
    
         
            -
                    export MAGLEV_HOME="$ 
     | 
| 
      
 107 
     | 
    
         
            +
                    export MAGLEV_HOME="$rvm_rubies_path/$rvm_ruby_string"
         
     | 
| 
       108 
108 
     | 
    
         
             
                  fi
         
     | 
| 
       109 
109 
     | 
    
         
             
                ;;
         
     | 
| 
       110 
110 
     | 
    
         | 
| 
         @@ -198,7 +198,7 @@ __rvm_select() { 
     | 
|
| 
       198 
198 
     | 
    
         
             
                fi
         
     | 
| 
       199 
199 
     | 
    
         | 
| 
       200 
200 
     | 
    
         
             
                rvm_ruby_package_name="$rvm_ruby_string"
         
     | 
| 
       201 
     | 
    
         
            -
                rvm_ruby_home="$ 
     | 
| 
      
 201 
     | 
    
         
            +
                rvm_ruby_home="$rvm_rubies_path/$rvm_ruby_string"
         
     | 
| 
       202 
202 
     | 
    
         
             
                rvm_ruby_log_path="$rvm_log_path/$rvm_ruby_string"
         
     | 
| 
       203 
203 
     | 
    
         
             
                rvm_ruby_src_path="$rvm_src_path/$rvm_ruby_string"
         
     | 
| 
       204 
204 
     | 
    
         
             
                rvm_ruby_binary="$rvm_ruby_home/bin/ruby"
         
     | 
| 
         @@ -250,7 +250,7 @@ __rvm_use() { 
     | 
|
| 
       250 
250 
     | 
    
         
             
                new_path=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
         
     | 
| 
       251 
251 
     | 
    
         
             
                new_path=$rvm_bin_path:$new_path
         
     | 
| 
       252 
252 
     | 
    
         
             
                if [[ -s $rvm_path/system ]] ; then
         
     | 
| 
       253 
     | 
    
         
            -
                  grep "MY_RUBY_HOME='$ 
     | 
| 
      
 253 
     | 
    
         
            +
                  grep "MY_RUBY_HOME='$rvm_rubies_path" "$rvm_path/system" > /dev/null
         
     | 
| 
       254 
254 
     | 
    
         
             
                  if [[ $? -eq 0 ]] ; then
         
     | 
| 
       255 
255 
     | 
    
         
             
                    rm -f $rvm_path/system # 'system' should *not* point to an rvm ruby.
         
     | 
| 
       256 
256 
     | 
    
         
             
                  else
         
     | 
| 
         @@ -296,7 +296,7 @@ __rvm_use() { 
     | 
|
| 
       296 
296 
     | 
    
         
             
                fi
         
     | 
| 
       297 
297 
     | 
    
         | 
| 
       298 
298 
     | 
    
         
             
                new_path=$(echo $PATH | tr ':' '\n' | awk '$0 !~ /rvm/' | paste -sd : -)
         
     | 
| 
       299 
     | 
    
         
            -
                new_path=$MY_RUBY_HOME/bin:$GEM_HOME/bin:$ 
     | 
| 
      
 299 
     | 
    
         
            +
                new_path=$MY_RUBY_HOME/bin:$GEM_HOME/bin:$rvm_bin_path:$new_path
         
     | 
| 
       300 
300 
     | 
    
         
             
              fi
         
     | 
| 
       301 
301 
     | 
    
         | 
| 
       302 
302 
     | 
    
         
             
              if [[ ! -z "$rvm_default_flag" ]] && [[ "default" != "$rvm_ruby_interpreter" ]] ; then
         
     | 
| 
         @@ -311,12 +311,12 @@ __rvm_use() { 
     | 
|
| 
       311 
311 
     | 
    
         | 
| 
       312 
312 
     | 
    
         
             
                if [[ "system" = "$rvm_ruby_interpreter" ]] ; then
         
     | 
| 
       313 
313 
     | 
    
         
             
                  rm -f $rvm_path/default
         
     | 
| 
       314 
     | 
    
         
            -
                  rm -f $ 
     | 
| 
      
 314 
     | 
    
         
            +
                  rm -f $rvm_bin_path/default*
         
     | 
| 
       315 
315 
     | 
    
         
             
                else
         
     | 
| 
       316 
316 
     | 
    
         
             
                  RUBY_VERSION="$($rvm_ruby_home/bin/ruby -v | sed 's#^\(.*\) (.*$#\1#')"
         
     | 
| 
       317 
317 
     | 
    
         
             
                  export GEM_HOME GEM_PATH MY_RUBY_HOME RUBY_VERSION
         
     | 
| 
       318 
318 
     | 
    
         | 
| 
       319 
     | 
    
         
            -
                  echo "export PATH=\"$rvm_ruby_home/bin:$rvm_ruby_gem_home/bin:$ 
     | 
| 
      
 319 
     | 
    
         
            +
                  echo "export PATH=\"$rvm_ruby_home/bin:$rvm_ruby_gem_home/bin:$rvm_bin_path:\$PATH\"" > $rvm_path/default
         
     | 
| 
       320 
320 
     | 
    
         | 
| 
       321 
321 
     | 
    
         
             
                  for variable in RUBY_VERSION GEM_HOME GEM_PATH MY_RUBY_HOME IRBRC rvm_ruby_string rvm_gem_set_name MAGLEV_HOME ; do
         
     | 
| 
       322 
322 
     | 
    
         
             
                    eval "export $variable"
         
     | 
    
        data/scripts/symlink
    CHANGED
    
    | 
         @@ -2,17 +2,17 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            if [[ "$rvm_trace_flag" -eq 1 ]] ; then set -x ; export rvm_trace_flag ; fi
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
            trap "rm -f $ 
     | 
| 
      
 5 
     | 
    
         
            +
            trap "rm -f $rvm_tmp_path/$$* > /dev/null 2>&1 ; exit" 0 1 2 3 15
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
7 
     | 
    
         
             
            flag="$1" ; symlink_flag=0
         
     | 
| 
       8 
     | 
    
         
            -
            if [[ -s "$ 
     | 
| 
       9 
     | 
    
         
            -
              rm -f ${ 
     | 
| 
       10 
     | 
    
         
            -
              ln -fs "$ 
     | 
| 
      
 8 
     | 
    
         
            +
            if [[ -s "$rvm_bin_path/$rvm_ruby_string" ]] ; then
         
     | 
| 
      
 9 
     | 
    
         
            +
              rm -f ${rvm_bin_path}/${flag}_*
         
     | 
| 
      
 10 
     | 
    
         
            +
              ln -fs "$rvm_bin_path/$rvm_ruby_string" "$rvm_bin_path/${flag}_ruby"
         
     | 
| 
       11 
11 
     | 
    
         
             
              for binary in gem irb rake ; do
         
     | 
| 
       12 
     | 
    
         
            -
                ln -fs "$rvm_ruby_home/bin/${binary}" "$ 
     | 
| 
      
 12 
     | 
    
         
            +
                ln -fs "$rvm_ruby_home/bin/${binary}" "$rvm_bin_path/${flag}_${binary}"
         
     | 
| 
       13 
13 
     | 
    
         
             
              done
         
     | 
| 
       14 
14 
     | 
    
         
             
              exit 0
         
     | 
| 
       15 
15 
     | 
    
         
             
            else
         
     | 
| 
       16 
     | 
    
         
            -
              $rvm_scripts_path/log "error" "Cannot set ${flag}_ruby since $ 
     | 
| 
      
 16 
     | 
    
         
            +
              $rvm_scripts_path/log "error" "Cannot set ${flag}_ruby since $rvm_bin_path/$rvm_ruby_string is missing."
         
     | 
| 
       17 
17 
     | 
    
         
             
              exit 1
         
     | 
| 
       18 
18 
     | 
    
         
             
            fi
         
     | 
    
        data/scripts/update
    CHANGED
    
    | 
         @@ -64,7 +64,7 @@ cp -f "$source_path/README" "$rvm_path/" 
     | 
|
| 
       64 
64 
     | 
    
         
             
            #
         
     | 
| 
       65 
65 
     | 
    
         
             
            # Scripts
         
     | 
| 
       66 
66 
     | 
    
         
             
            #
         
     | 
| 
       67 
     | 
    
         
            -
            rm -rf $ 
     | 
| 
      
 67 
     | 
    
         
            +
            rm -rf $rvm_scripts_path # Clear the old scripts directory so that the old style rvm- scripts are cleared out.
         
     | 
| 
       68 
68 
     | 
    
         
             
            for dir_name in config scripts examples lib hooks ; do
         
     | 
| 
       69 
69 
     | 
    
         
             
              mkdir -p "$rvm_path/$dir_name"
         
     | 
| 
       70 
70 
     | 
    
         
             
              if [[ -d "$source_path/$dir_name" ]] ; then
         
     | 
| 
         @@ -72,19 +72,19 @@ for dir_name in config scripts examples lib hooks ; do 
     | 
|
| 
       72 
72 
     | 
    
         
             
              fi
         
     | 
| 
       73 
73 
     | 
    
         
             
            done ; unset dir_name
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
     | 
    
         
            -
            if [[ ! -s "$ 
     | 
| 
       76 
     | 
    
         
            -
              echo '# Users settings file, overrides db file settings and persists across installs.' >> $ 
     | 
| 
      
 75 
     | 
    
         
            +
            if [[ ! -s "$rvm_config_path/user" ]] ; then
         
     | 
| 
      
 76 
     | 
    
         
            +
              echo '# Users settings file, overrides db file settings and persists across installs.' >> $rvm_config_path/user
         
     | 
| 
       77 
77 
     | 
    
         
             
            fi
         
     | 
| 
       78 
78 
     | 
    
         | 
| 
       79 
79 
     | 
    
         
             
            #
         
     | 
| 
       80 
80 
     | 
    
         
             
            # Bin Scripts
         
     | 
| 
       81 
81 
     | 
    
         
             
            #
         
     | 
| 
       82 
82 
     | 
    
         
             
            # Cleanse and purge...
         
     | 
| 
       83 
     | 
    
         
            -
            rm -f $ 
     | 
| 
      
 83 
     | 
    
         
            +
            rm -f $rvm_bin_path/rvm ; rm -rf $rvm_bin_path/binscripts
         
     | 
| 
       84 
84 
     | 
    
         
             
            for file in rvm-prompt rvm rvmsudo ; do
         
     | 
| 
       85 
     | 
    
         
            -
              cp -f "$source_path/binscripts/$file" $ 
     | 
| 
      
 85 
     | 
    
         
            +
              cp -f "$source_path/binscripts/$file" $rvm_bin_path/
         
     | 
| 
       86 
86 
     | 
    
         
             
            done
         
     | 
| 
       87 
     | 
    
         
            -
            chmod +x $ 
     | 
| 
      
 87 
     | 
    
         
            +
            chmod +x $rvm_bin_path/*
         
     | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
89 
     | 
    
         
             
            #
         
     | 
| 
       90 
90 
     | 
    
         
             
            # RC Files
         
     | 
| 
         @@ -101,37 +101,50 @@ if [[ ! -z "$rvm_auto_flag" ]] ; then 
     | 
|
| 
       101 
101 
     | 
    
         
             
                    fi
         
     | 
| 
       102 
102 
     | 
    
         
             
                  fi
         
     | 
| 
       103 
103 
     | 
    
         
             
                  if ! grep -q "scripts\/rvm" "$rcfile" ; then
         
     | 
| 
       104 
     | 
    
         
            -
                    echo "    Adding 'if [[ -s $ 
     | 
| 
       105 
     | 
    
         
            -
                    echo -e "\n# rvm-install added:\nif [[ -s $ 
     | 
| 
      
 104 
     | 
    
         
            +
                    echo "    Adding 'if [[ -s $rvm_scripts_path/rvm ]] ; then source $rvm_scripts_path/rvm ; fi' to $rcfile."
         
     | 
| 
      
 105 
     | 
    
         
            +
                    echo -e "\n# rvm-install added:\nif [[ -s $rvm_scripts_path/rvm ]] ; then source $rvm_scripts_path/rvm ; fi\n" >> $rcfile
         
     | 
| 
       106 
106 
     | 
    
         
             
                  fi
         
     | 
| 
       107 
107 
     | 
    
         
             
                done
         
     | 
| 
       108 
108 
     | 
    
         
             
              fi
         
     | 
| 
       109 
109 
     | 
    
         
             
            fi
         
     | 
| 
       110 
110 
     | 
    
         | 
| 
       111 
111 
     | 
    
         
             
            #
         
     | 
| 
       112 
     | 
    
         
            -
            #  
     | 
| 
      
 112 
     | 
    
         
            +
            # Migrate ~/.rvm/ruby-X,jruby-X,... to ~/.rvm/rubies/ for 0.1.0.
         
     | 
| 
      
 113 
     | 
    
         
            +
            #
         
     | 
| 
      
 114 
     | 
    
         
            +
            rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
         
     | 
| 
      
 115 
     | 
    
         
            +
            mkdir -p "$rvm_rubies_path/"
         
     | 
| 
      
 116 
     | 
    
         
            +
            for ruby in $rvm_path/ruby-* $rvm_path/jruby-* $rvm_path/mput-* $rvm_path/rbx-* $rvm_path/maglev-* $rvm_path/ree-* ; do
         
     | 
| 
      
 117 
     | 
    
         
            +
              if [[ -d "$ruby" ]] ; then
         
     | 
| 
      
 118 
     | 
    
         
            +
                mv "$ruby" "$rvm_rubies_path/"
         
     | 
| 
      
 119 
     | 
    
         
            +
                new_path="$rvm_rubies_path/$(basename $ruby)"
         
     | 
| 
      
 120 
     | 
    
         
            +
                for file in gem rake ; do
         
     | 
| 
      
 121 
     | 
    
         
            +
                  if [[ -s "$new_path/bin/$file" ]] ; then
         
     | 
| 
      
 122 
     | 
    
         
            +
                    sed -i -e '1,1s=.*=#!'"$new_path/bin/ruby=" "$new_path/bin/$file"
         
     | 
| 
      
 123 
     | 
    
         
            +
                    rm -f "$new_path/bin/$file.orig"
         
     | 
| 
      
 124 
     | 
    
         
            +
                    chmod +x "$new_path/bin/$file"
         
     | 
| 
      
 125 
     | 
    
         
            +
                  fi
         
     | 
| 
      
 126 
     | 
    
         
            +
                done
         
     | 
| 
      
 127 
     | 
    
         
            +
              fi
         
     | 
| 
      
 128 
     | 
    
         
            +
            done
         
     | 
| 
      
 129 
     | 
    
         
            +
            #
         
     | 
| 
      
 130 
     | 
    
         
            +
            # End of migration.
         
     | 
| 
       113 
131 
     | 
    
         
             
            #
         
     | 
| 
       114 
     | 
    
         
            -
            #rvm_rubies_path="${rvm_rubies_path:-"$rvm_path/rubies"}"
         
     | 
| 
       115 
     | 
    
         
            -
            #mkdir -p $rvm_rubies_path
         
     | 
| 
       116 
     | 
    
         
            -
            #for ruby in "$rvm_path"/ruby-* "$rvm_path"/jruby-* "$rvm_path"/mput-* "$rvm_path"/rbx-* ; do
         
     | 
| 
       117 
     | 
    
         
            -
            #  if [[ -d "$ruby" ]] ; then mv "$ruby" "$rvm_rubies_path" ; fi
         
     | 
| 
       118 
     | 
    
         
            -
            #done
         
     | 
| 
       119 
132 
     | 
    
         | 
| 
       120 
133 
     | 
    
         
             
            if [[ "root" = "$(whoami)" ]] ; then
         
     | 
| 
       121 
134 
     | 
    
         
             
              echo -e "\n    Symlinking rvm to $rvm_symlink_path/rvm ..."
         
     | 
| 
       122 
135 
     | 
    
         
             
              mkdir -p $rvm_symlink_path
         
     | 
| 
       123 
     | 
    
         
            -
              ln -nfs $ 
     | 
| 
       124 
     | 
    
         
            -
              ln -nfs $ 
     | 
| 
      
 136 
     | 
    
         
            +
              ln -nfs $rvm_bin_path/rvm $rvm_symlink_path/rvm
         
     | 
| 
      
 137 
     | 
    
         
            +
              ln -nfs $rvm_bin_path/rvmsudo $rvm_symlink_path/rvmsudo
         
     | 
| 
       125 
138 
     | 
    
         
             
              chmod +x $rvm_symlink_path/rvm
         
     | 
| 
       126 
139 
     | 
    
         
             
              chmod +x $rvm_symlink_path/rvmsudo
         
     | 
| 
       127 
140 
     | 
    
         
             
            fi
         
     | 
| 
       128 
141 
     | 
    
         | 
| 
       129 
142 
     | 
    
         
             
            echo -e "\n$(tput setaf 2)rvm$(tput sgr0) - shell scripts that allows a user to manage multiple ruby versions in their own account."
         
     | 
| 
       130 
     | 
    
         
            -
            $ 
     | 
| 
      
 143 
     | 
    
         
            +
            $rvm_scripts_path/notes
         
     | 
| 
       131 
144 
     | 
    
         | 
| 
       132 
145 
     | 
    
         
             
            echo -e "$(tput setaf 2)RTFM: $(tput sgr0) http://rvm.beginrescueend.com/"
         
     | 
| 
       133 
146 
     | 
    
         
             
            echo -e "\n$(tput setaf 2)HELP: $(tput sgr0) http://webchat.freenode.net/?channels=rvm "
         
     | 
| 
       134 
     | 
    
         
            -
            echo " 
     | 
| 
      
 147 
     | 
    
         
            +
            echo -e "\n********************************************************************************"
         
     | 
| 
       135 
148 
     | 
    
         
             
            name="$(awk -F= '/^[[:space:]]*name/{print $2}' ~/.gitconfig 2>/dev/null)"
         
     | 
| 
       136 
149 
     | 
    
         
             
            echo -e "\n${name:-"$(whoami)"},\n"
         
     | 
| 
       137 
150 
     | 
    
         
             
            echo -e "\nThank you for using rvm. I hope that it makes your work easier and more enjoyable."
         
     | 
| 
         @@ -139,13 +152,8 @@ echo -e "If you have any questions, issues and/or ideas for improvement please h 
     | 
|
| 
       139 
152 
     | 
    
         
             
            echo -e "My irc nickname is 'wayneeseguin' and I hang out from ~09:00-17:00EST and again from ~21:00EST-~00:00EST."
         
     | 
| 
       140 
153 
     | 
    
         
             
            echo -e "If I do not respond right away, please hang around after asking your question, I will respond as soon as I am back."
         
     | 
| 
       141 
154 
     | 
    
         
             
            echo -e "\n  w$(tput setaf 2)⦿‿⦿$(tput sgr0)t!"
         
     | 
| 
       142 
     | 
    
         
            -
            echo -e "\n    ~ Wayne 
     | 
| 
       143 
     | 
    
         
            -
            echo " 
     | 
| 
       144 
     | 
    
         
            -
            echo -e "Upgrades"
         
     | 
| 
       145 
     | 
    
         
            -
            echo -e "Gems are now per interpreter installation instead of per interpreter/version"
         
     | 
| 
       146 
     | 
    
         
            -
            echo -e "so for example to upgrade an older install of 1.8.6 and preserve gems:"
         
     | 
| 
       147 
     | 
    
         
            -
            echo -e "rm -rf ~/.rvm/gems/ruby-1.8.6-p383 ;  mv ~/.rvm/gems/ruby/1.8.6 ~/.rvm/gems/ruby-1.8.6-p383"
         
     | 
| 
       148 
     | 
    
         
            -
            echo "================================================================================"
         
     | 
| 
      
 155 
     | 
    
         
            +
            echo -e "\n    ~ Wayne"
         
     | 
| 
      
 156 
     | 
    
         
            +
            echo -e "\n********************************************************************************"
         
     | 
| 
       149 
157 
     | 
    
         
             
            echo -e "\n$(tput setaf 1)You must now finish the install manually:$(tput sgr0)"
         
     | 
| 
       150 
158 
     | 
    
         
             
            echo -e "\n1) Place the folowing line at the end of your shell's loading files(.bashrc and then .bash_profile for bash and .zshrc for zsh), after all path/variable settings:"
         
     | 
| 
       151 
159 
     | 
    
         
             
            echo -e "\n     if [[ -s $rvm_path/scripts/rvm ]] ; then source $rvm_path/scripts/rvm ; fi"
         
     | 
    
        data/scripts/utility
    CHANGED
    
    | 
         @@ -76,9 +76,9 @@ __rvm_debug() { 
     | 
|
| 
       76 
76 
     | 
    
         
             
              done
         
     | 
| 
       77 
77 
     | 
    
         | 
| 
       78 
78 
     | 
    
         
             
              if [[ "root" = "$(whoami)" ]] ; then
         
     | 
| 
       79 
     | 
    
         
            -
                debug_files="$rvm_path/default $rvm_path/system $ 
     | 
| 
      
 79 
     | 
    
         
            +
                debug_files="$rvm_path/default $rvm_path/system $rvm_config_path/db /etc/rvmrc /etc/gemrc"
         
     | 
| 
       80 
80 
     | 
    
         
             
              else
         
     | 
| 
       81 
     | 
    
         
            -
                debug_files="$rvm_path/default $rvm_path/system $ 
     | 
| 
      
 81 
     | 
    
         
            +
                debug_files="$rvm_path/default $rvm_path/system $rvm_config_path/db $HOME/.rvmrc $HOME/.gemrc"
         
     | 
| 
       82 
82 
     | 
    
         
             
              fi
         
     | 
| 
       83 
83 
     | 
    
         | 
| 
       84 
84 
     | 
    
         
             
              for file_name in $(echo $debug_files); do
         
     | 
| 
         @@ -113,7 +113,7 @@ __rvm_gi() { gem install $rvm_gem_options $* ; } 
     | 
|
| 
       113 
113 
     | 
    
         | 
| 
       114 
114 
     | 
    
         
             
            __rvm_run() {
         
     | 
| 
       115 
115 
     | 
    
         
             
              log_file_name="$1" ; command="$2" ; message="$3"
         
     | 
| 
       116 
     | 
    
         
            -
              rvm_ruby_log_path="${rvm_ruby_log_path:-$ 
     | 
| 
      
 116 
     | 
    
         
            +
              rvm_ruby_log_path="${rvm_ruby_log_path:-$rvm_log_path}"
         
     | 
| 
       117 
117 
     | 
    
         
             
              mkdir -p $(dirname "$rvm_ruby_log_path/$log_file_name.log")
         
     | 
| 
       118 
118 
     | 
    
         | 
| 
       119 
119 
     | 
    
         
             
              if [[ ! -z "$message" ]] ; then $rvm_scripts_path/log "info" "$message" ; fi
         
     | 
| 
         @@ -147,7 +147,7 @@ __rvm_load_rvmrc() { 
     | 
|
| 
       147 
147 
     | 
    
         
             
            }
         
     | 
| 
       148 
148 
     | 
    
         | 
| 
       149 
149 
     | 
    
         
             
            __rvm_bin_scripts() {
         
     | 
| 
       150 
     | 
    
         
            -
              for rvm_ruby_binary in $ 
     | 
| 
      
 150 
     | 
    
         
            +
              for rvm_ruby_binary in $rvm_rubies_path/*/bin/ruby ; do
         
     | 
| 
       151 
151 
     | 
    
         
             
              if [[ -x "$rvm_ruby_binary" ]] ; then
         
     | 
| 
       152 
152 
     | 
    
         
             
                rvm_ruby_string=$(dirname "$rvm_ruby_binary" | xargs dirname | xargs basename)
         
     | 
| 
       153 
153 
     | 
    
         
             
                __rvm_select
         
     | 
| 
         @@ -169,10 +169,10 @@ PATH=$rvm_ruby_home/bin:$rvm_ruby_gem_home/bin:\$PATH ; export PATH 
     | 
|
| 
       169 
169 
     | 
    
         
             
            exec "$rvm_ruby_binary" "\$@"
         
     | 
| 
       170 
170 
     | 
    
         
             
            RubyWrapper
         
     | 
| 
       171 
171 
     | 
    
         
             
            )
         
     | 
| 
       172 
     | 
    
         
            -
              rm -f $ 
     | 
| 
       173 
     | 
    
         
            -
              echo "$ruby_wrapper" > $ 
     | 
| 
      
 172 
     | 
    
         
            +
              rm -f $rvm_bin_path/$rvm_ruby_package_name
         
     | 
| 
      
 173 
     | 
    
         
            +
              echo "$ruby_wrapper" > $rvm_bin_path/$rvm_ruby_package_name
         
     | 
| 
       174 
174 
     | 
    
         
             
              unset ruby_wrapper
         
     | 
| 
       175 
     | 
    
         
            -
              chmod +x $ 
     | 
| 
      
 175 
     | 
    
         
            +
              chmod +x $rvm_bin_path/$rvm_ruby_package_name
         
     | 
| 
       176 
176 
     | 
    
         
             
            }
         
     | 
| 
       177 
177 
     | 
    
         | 
| 
       178 
178 
     | 
    
         
             
            __rvm_load_defaults() {
         
     | 
| 
         @@ -232,7 +232,7 @@ __rvm_reset() { 
     | 
|
| 
       232 
232 
     | 
    
         
             
                $rvm_scripts_path/db "$rvm_config_path/user" "$system_config" "delete"
         
     | 
| 
       233 
233 
     | 
    
         
             
              done ; unset system_config variable
         
     | 
| 
       234 
234 
     | 
    
         | 
| 
       235 
     | 
    
         
            -
              rm -f $ 
     | 
| 
      
 235 
     | 
    
         
            +
              rm -f $rvm_bin_path/ruby $rvm_bin_path/gem $rvm_bin_path/rake $rvm_bin_path/irb $rvm_bin_path/default*
         
     | 
| 
       236 
236 
     | 
    
         
             
            }
         
     | 
| 
       237 
237 
     | 
    
         | 
| 
       238 
238 
     | 
    
         
             
            __rvm_implode() {
         
     | 
| 
         @@ -281,6 +281,7 @@ __rvm_list() { 
     | 
|
| 
       281 
281 
     | 
    
         
             
                echo -e "jruby-1.2.0\njruby-1.3.0\njruby-1.3.1\njruby(-1.4.0) # the default\njruby-head"
         
     | 
| 
       282 
282 
     | 
    
         
             
                echo -e "rbx(-prc1) # default\nrbx-head"
         
     | 
| 
       283 
283 
     | 
    
         
             
                echo -e "ree-1.8.6\nree(-1.8.7) # the default\nree-1.8.6-head\nree-1.8.7-head"
         
     | 
| 
      
 284 
     | 
    
         
            +
                echo -e "maglev(-22725)"
         
     | 
| 
       284 
285 
     | 
    
         
             
                echo -e "mput(-head) # shyouhei head, the default mput"
         
     | 
| 
       285 
286 
     | 
    
         
             
                echo -e "ironruby-0.9.3 # (1.0 RC1)\nironruby-head"
         
     | 
| 
       286 
287 
     | 
    
         
             
                if [[ "Darwin" = "$(uname)" ]] ; then
         
     | 
| 
         @@ -292,11 +293,11 @@ __rvm_list() { 
     | 
|
| 
       292 
293 
     | 
    
         
             
                  current_ruby="$(echo $ruby | xargs dirname | xargs dirname | xargs basename 2> /dev/null)"
         
     | 
| 
       293 
294 
     | 
    
         
             
                fi
         
     | 
| 
       294 
295 
     | 
    
         | 
| 
       295 
     | 
    
         
            -
                for version in $(\ls $ 
     | 
| 
      
 296 
     | 
    
         
            +
                for version in $(\ls $rvm_rubies_path/ 2> /dev/null | awk '/[a-z]*-.*/ {print $NF}') ; do
         
     | 
| 
       296 
297 
     | 
    
         
             
                  if [[ ! -z "$(echo $version | awk '/^jruby-/')" ]] ; then
         
     | 
| 
       297 
     | 
    
         
            -
                    string="$($ 
     | 
| 
      
 298 
     | 
    
         
            +
                    string="$($rvm_rubies_path/$version/bin/ruby -v | awk '{print $NF}')"
         
     | 
| 
       298 
299 
     | 
    
         
             
                  else
         
     | 
| 
       299 
     | 
    
         
            -
                    string="[ $(file $ 
     | 
| 
      
 300 
     | 
    
         
            +
                    string="[ $(file $rvm_rubies_path/$version/bin/ruby | awk '/x86.64/ {print "x86_64"} /386/ {print "i386"} /ppc/ {print "ppc"}' | tr "\n" ' ')]"
         
     | 
| 
       300 
301 
     | 
    
         
             
                  fi
         
     | 
| 
       301 
302 
     | 
    
         
             
                  if [[ "$version" = "$current_ruby" ]] ; then
         
     | 
| 
       302 
303 
     | 
    
         
             
                    echo -e "=> $(tput setaf 2)$version$(tput sgr0) $string"
         
     | 
| 
         @@ -309,7 +310,7 @@ __rvm_list() { 
     | 
|
| 
       309 
310 
     | 
    
         
             
                if [[ -f "$rvm_path/default" ]] && [[ -s $rvm_path/default ]] ; then
         
     | 
| 
       310 
311 
     | 
    
         
             
                  version=$(grep 'MY_RUBY_HOME' $rvm_path/default | awk -F"'" '{print $2}' | xargs basename)
         
     | 
| 
       311 
312 
     | 
    
         
             
                  if [[ ! -z "$version" ]] ; then
         
     | 
| 
       312 
     | 
    
         
            -
                    string="[ $(file $ 
     | 
| 
      
 313 
     | 
    
         
            +
                    string="[ $(file $rvm_rubies_path/$version/bin/ruby | awk '/x86.64/ {print "x86_64"} /386/ {print "i386"} /ppc/ {print "ppc"}' | tr "\n" ' ')]"
         
     | 
| 
       313 
314 
     | 
    
         
             
                    if [[ "$version" = "$current_ruby" ]] ; then
         
     | 
| 
       314 
315 
     | 
    
         
             
                      echo -e "=> $(tput setaf 3)(default)$(tput sgr0) $(tput setaf 2)$version$(tput sgr0) $string"
         
     | 
| 
       315 
316 
     | 
    
         
             
                      selected="1"
         
     | 
| 
         @@ -493,7 +494,7 @@ __rvm_do() { 
     | 
|
| 
       493 
494 
     | 
    
         
             
                  unset rvm_ruby_string rvm_ruby_version
         
     | 
| 
       494 
495 
     | 
    
         
             
                  __rvm_ruby_do
         
     | 
| 
       495 
496 
     | 
    
         
             
              else # all
         
     | 
| 
       496 
     | 
    
         
            -
                for full_binary in $ 
     | 
| 
      
 497 
     | 
    
         
            +
                for full_binary in $rvm_rubies_path/*/bin/ruby ; do
         
     | 
| 
       497 
498 
     | 
    
         
             
                  if [[ -x "$full_binary" ]] ; then
         
     | 
| 
       498 
499 
     | 
    
         
             
                    rvm_ruby_string="$(dirname $full_binary | xargs dirname | xargs basename)"
         
     | 
| 
       499 
500 
     | 
    
         
             
                    __rvm_ruby_do
         
     | 
| 
         @@ -588,7 +589,7 @@ __rvm_benchmark() { 
     | 
|
| 
       588 
589 
     | 
    
         
             
            __rvm_irbrc() {
         
     | 
| 
       589 
590 
     | 
    
         
             
              # Create the irbrc for the currently selected ruby installation.
         
     | 
| 
       590 
591 
     | 
    
         
             
              if [[ -d "$rvm_ruby_home" ]] && [[ ! -s "$rvm_ruby_irbrc" ]] ; then
         
     | 
| 
       591 
     | 
    
         
            -
                cp $ 
     | 
| 
      
 592 
     | 
    
         
            +
                cp $rvm_scripts_path/irbrc $rvm_ruby_irbrc
         
     | 
| 
       592 
593 
     | 
    
         
             
              fi
         
     | 
| 
       593 
594 
     | 
    
         
             
            }
         
     | 
| 
       594 
595 
     | 
    
         | 
| 
         @@ -602,7 +603,7 @@ __rvm_pushpop() { 
     | 
|
| 
       602 
603 
     | 
    
         | 
| 
       603 
604 
     | 
    
         
             
            __rvm_state() {
         
     | 
| 
       604 
605 
     | 
    
         
             
              if [[ -z "$rvm_state" ]] ; then
         
     | 
| 
       605 
     | 
    
         
            -
                if [[ -z "$(which ruby 2>/dev/null | awk /$(basename $ 
     | 
| 
      
 606 
     | 
    
         
            +
                if [[ -z "$(which ruby 2>/dev/null | awk /$(basename $rvm_rubies_path)/)" ]] ; then
         
     | 
| 
       606 
607 
     | 
    
         
             
                  rvm_state=system
         
     | 
| 
       607 
608 
     | 
    
         
             
                else
         
     | 
| 
       608 
609 
     | 
    
         
             
                  rvm_state="$(dirname "$(which ruby 2>/dev/null)" | xargs dirname | xargs basename)"
         
     |