rvm 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/bash/rvm +8 -8
  2. data/bash/rvm-install +12 -12
  3. data/bash/rvm-update +2 -2
  4. data/rvm.gemspec +1 -1
  5. metadata +1 -1
data/bash/rvm CHANGED
@@ -3,7 +3,7 @@
3
3
  rvm_author="Wayne E. Seguin"
4
4
  rvm_author_email="wayneeseguin@gmail.com"
5
5
  rvm_website="http://rvm.beginrescueend.com/"
6
- rvm_version="0.0.21"
6
+ rvm_version="0.0.22"
7
7
  rvm_updated="2009.08.25"
8
8
 
9
9
  #
@@ -126,12 +126,12 @@ Usage
126
126
  }
127
127
 
128
128
  # Logging functions based on level
129
- function rvm-log { echo -e "\n $* \e[0m" ; }
130
- function rvm-log-debug { rvm-log "\e[4;34m <d> \e[0m$*" ; }
131
- function rvm-log-info { rvm-log "\e[0;32m <i> \e[0m$*" ; }
132
- function rvm-log-warn { rvm-log "\e[0;33m <w> \e[0m$*" ; }
133
- function rvm-log-error { rvm-log "\e[0;31m <e> \e[0m$*" ; }
134
- function rvm-log-fail { rvm-log "\e[0;31m <e> \e[0m$*" ; return 1 ; }
129
+ function rvm-log { echo -e "\n $* \033[0m" ; }
130
+ function rvm-log-debug { rvm-log "\033[4;34m <d> \033[0m$*" ; }
131
+ function rvm-log-info { rvm-log "\033[0;32m <i> \033[0m$*" ; }
132
+ function rvm-log-warn { rvm-log "\033[0;33m <w> \033[0m$*" ; }
133
+ function rvm-log-error { rvm-log "\033[0;31m <e> \033[0m$*" ; }
134
+ function rvm-log-fail { rvm-log "\033[0;31m <e> \033[0m$*" ; return 1 ; }
135
135
 
136
136
  function rvm-gi { gem install -q --no-rdoc --no-ri $* ; }
137
137
 
@@ -477,7 +477,7 @@ function rvm-use {
477
477
  done
478
478
  fi
479
479
 
480
- rvm-log-info "Switching to $implementation $version $patchlevel ..."
480
+ rvm-log-info "Switching to $implementation $version $patchlevel ...\n"
481
481
  if [ ! -z "$BASH_VERSION" ] ; then
482
482
  exec bash -l
483
483
  elif [ ! -z "$ZSH_VERSION" ] ; then
@@ -2,22 +2,22 @@
2
2
 
3
3
  user=`whoami`
4
4
  if [ "$user" = "root" ] ; then
5
- echo -e "\e[0;31m <e> \e[0mroot user support is not yet implemented.\e[0m"
5
+ echo -e "\033[0;31m <e> \033[0mroot user support is not yet implemented.\033[0m"
6
6
  exit 1
7
7
  fi
8
8
 
9
- info="\n\e[0;32m<i>\e[0m"
10
- question="\n\e[0;32m<?>\e[0m"
9
+ info="\n\033[0;32m<i>\033[0m"
10
+ question="\n\033[0;32m<?>\033[0m"
11
11
 
12
12
  echo -e "Installing rvm source to ~/.rvm/bin/rvm..."
13
13
  mkdir -p ~/.rvm/src ~/.rvm/bin
14
14
  cp $(pwd)/bash/rvm ~/.rvm/bin/
15
15
 
16
16
  # State what is required to use rvm
17
- echo -e "\n\e[0;32mrvm\e[0m is a shell script that allows a user to manage multiple ruby versions in their own account."
17
+ echo -e "\n\033[0;32mrvm\033[0m is a shell script that allows a user to manage multiple ruby versions in their own account."
18
18
  echo -e "$info In order to use rvm two items must occur in your shell's load paths:"
19
- echo -e "\n\e[0;32m (a)\e[0m if [ -f ~/.rvm/bin/rvm ] ; then source ~/.rvm/bin/rvm ; fi"
20
- echo -e "\e[0;32m (b)\e[0m if [ -f ~/.rvm/current ] ; then source ~/.rvm/current ; fi"
19
+ echo -e "\n\033[0;32m (a)\033[0m if [ -f ~/.rvm/bin/rvm ] ; then source ~/.rvm/bin/rvm ; fi"
20
+ echo -e "\033[0;32m (b)\033[0m if [ -f ~/.rvm/current ] ; then source ~/.rvm/current ; fi"
21
21
 
22
22
  while : ; do
23
23
  echo -n -e "$question Do you want this (s)cript to set this up for you, or do it (m)anually yourself ('s' or 'm')? "
@@ -78,7 +78,7 @@ if [ "${response:0:1}" = "s" ] ; then
78
78
 
79
79
  else
80
80
 
81
- echo -e "\n\e[0;31m<e> An error has occurred, we were expecting either bash or zsh however we encountered $user_shell \e[0m"
81
+ echo -e "\n\033[0;31m<e> An error has occurred, we were expecting either bash or zsh however we encountered $user_shell \033[0m"
82
82
  return 1
83
83
 
84
84
  fi
@@ -87,13 +87,13 @@ fi
87
87
  system=`uname`
88
88
  if [ "$system" = "Linux" ] ; then
89
89
  echo -e "For jRuby (if you wish to use it) you will need:"
90
- if [ ! -z "`which apt-get`" ] ; then
90
+ if [ ! -z "`which apt-get 2>/dev/null`" ] ; then
91
91
  echo -e " sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk "
92
- elif [ ! -z "`which emerge`" ] ; then
92
+ elif [ ! -z "`which emerge 2>/dev/null`" ] ; then
93
93
  echo -e "emerge dev-java/sun-jdk dev-java/sun-jre-bin"
94
- elif [ ! -z "`which pacman`" ] ; then
94
+ elif [ ! -z "`which pacman 2>/dev/null`" ] ; then
95
95
  echo -e "pacman -Sy jdk jre"
96
- elif [ ! -z "`which yum`" ] ; then
96
+ elif [ ! -z "`which yum 2>/dev/null`" ] ; then
97
97
  echo -e "yum install -y rpm-build gcc gcc-c++ redhat-rpm-config ; then download and rpmbuild and install the sdk, Have fun..."
98
98
  else
99
99
  echo -e "The SUN java runtime environment and development kit."
@@ -112,5 +112,5 @@ echo -e "$info Contact wayneeseguin on irc.freenod.net in #rvm for any questions
112
112
  echo -e " I truly hope that you find rvm helpful! Thank you very much for using rvm. \n"
113
113
  echo -e " ~ Wayne"
114
114
 
115
- echo -e "$info To start using rvm see: \e[0;32m rvm usage\e[0m, Now close this login shell and open a new one."
115
+ echo -e "$info To start using rvm see: \033[0;32m rvm usage\033[0m, Now close this login shell and open a new one."
116
116
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  user=`whoami`
4
4
  if [ "$user" = "root" ] ; then
5
- echo -e "\e[0;31m <e> \e[0mroot user support is not yet implemented.\e[0m"
5
+ echo -e "\033[0;31m <e> \033[0mroot user support is not yet implemented.\033[0m"
6
6
  exit 1
7
7
  fi
8
8
 
9
- info="\n\e[0;32m<i>\e[0m"
9
+ info="\n\033[0;32m<i>\033[0m"
10
10
 
11
11
  echo -e "$info Updating rvm source ~/.rvm/bin/rvm ..."
12
12
  mkdir -p ~/.rvm/src ~/.rvm/bin
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.21"
8
+ s.version = "0.0.22"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wayne E. Seguin"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin