rvm 0.0.76 → 0.0.77

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.
@@ -1,4 +1,4 @@
1
- #/bin/bash
1
+ #!/usr/bin/env bash
2
2
  #
3
3
  # gemsync - Standalone gemsync utility.
4
4
  #
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  add(){
4
4
  token="$1"
data/install CHANGED
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  rc_files="$HOME/.bash_profile $HOME/.bashrc $HOME/.zshrc"
4
4
  if [[ "root" = "$(whoami)" ]] ; then
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 76
4
+ :patch: 77
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.76"
8
+ s.version = "0.0.77"
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"]
12
- s.date = %q{2009-11-11}
12
+ s.date = %q{2009-11-12}
13
13
  s.default_executable = %q{rvm-install}
14
14
  s.description = %q{Manages Ruby interpreter installations and switching between them.}
15
15
  s.email = %q{wayneeseguin@gmail.com}
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  __rvm_meta() {
4
4
  rvm_meta_author="Wayne E. Seguin"
@@ -17,7 +17,7 @@ __rvm_parse_args() {
17
17
  while [[ $# -gt 0 ]] ; do
18
18
  rvm_token="$1" ; shift
19
19
  case "$rvm_token" in
20
- install|uninstall|path|info|setup|version|srcdir|list|reset|debug|reload|implode|readline|gemsync|update|iconv|openssl|ncurses|zlib|readline)
20
+ install|uninstall|path|info|setup|version|srcdir|list|reset|debug|reload|implode|readline|gemsync|update|iconv|curl|openssl|ncurses|zlib|readline)
21
21
  rvm_action=$rvm_token
22
22
  ;;
23
23
 
@@ -376,7 +376,7 @@ rvm() {
376
376
  install|uninstall) __rvm_manage_rubies ; result=$? ;;
377
377
  tests|specs) rvm_action="rake" ; __rvm_do ; result=$? ;;
378
378
 
379
- iconv|openssl|ncurses|zlib|readline)
379
+ iconv|openssl|ncurses|zlib|readline|curl)
380
380
  __rvm_${rvm_action}_install
381
381
  result=$?
382
382
  ;;
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  __color() {
4
4
  case "$1" in
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  complete -o default -o nospace -F _rvm rvm
4
4
 
@@ -1,10 +1 @@
1
- # http://rvm.beginrescueend.com/gems/
2
- # Thanks for the awesome idea batasrki
3
- function gemdir {
4
- if [ -z "$1" ] ; then
5
- cd `gem env gemdir`
6
- else
7
- cd `rvm $1 ; rvm gemdir`
8
- pwd
9
- fi
10
- }
1
+ #!/usr/bin/env bash
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  __rvm_gems_select() {
4
4
  if [[ -z "$rvm_gem_set_name" ]] ; then
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  rc_files="$HOME/.bash_profile $HOME/.bashrc $HOME/.zshrc"
4
4
  if [[ "root" = "$(whoami)" ]] ; then
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  __rvm_install_source() {
4
4
  if [[ -z "$rvm_ruby_selected_flag" ]] ; then __rvm_select $* ; fi
@@ -197,6 +197,11 @@ RubyWrapper
197
197
  if [[ ! -z "$rvm_ruby_configure_flags" ]] ; then
198
198
  rvm_ruby_configure_flags="$(echo $rvm_ruby_configure_flags | sed 's#--#-c --#g')"
199
199
  fi
200
+
201
+ if [[ "Darwin" = "$(uname)" ]] && [[ "1.8.6" = "$rvm_ruby_version" ]] && [[ -z "$rvm_ree_options" ]] ; then
202
+ rvm_ree_options="${rvm_ree_options} --no-tcmalloc"
203
+ fi
204
+
200
205
  __rvm_run "install" "./installer -a $rvm_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)..." # --no-tcmalloc
201
206
  if [[ $? -gt 0 ]] ; then result=$? ; return $result ; fi
202
207
  chmod +x $rvm_ruby_home/bin/*
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  #
4
4
  # rvm : Ruby Version Manager
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  rc_files="$HOME/.bash_profile $HOME/.bashrc $HOME/.zshrc"
4
4
  if [[ "root" = "$(whoami)" ]] ; then
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  # __rvm_select implementation version patch_level
4
4
  __rvm_select() {
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  rc_files="$HOME/.bash_profile $HOME/.bashrc $HOME/.zshrc"
4
4
  if [[ "root" = "$(whoami)" ]] ; then
@@ -1,4 +1,4 @@
1
- #!/bin/bash
1
+ #!/usr/bin/env bash
2
2
 
3
3
  __rvm_info() {
4
4
  full_version=$(ruby -v)
@@ -593,7 +593,7 @@ __rvm_ruby_do() {
593
593
  fi
594
594
  fi
595
595
  rvm_command="$rvm_ruby_home/bin/$binary $rvm_ruby_require -I$load_path $rvm_ruby_args"
596
- elif [[ "gem" = "$binary" ]] && match "$rvm_ruby_args" 'install' ; then
596
+ elif [[ "gem" = "$binary" ]] && match "$rvm_ruby_args" '^install' ; then
597
597
  rvm_command="$rvm_ruby_home/bin/$binary $rvm_ruby_args --no-rdoc --no-ri"
598
598
  else
599
599
  rvm_command="$rvm_ruby_home/bin/$binary $rvm_ruby_args"
@@ -604,7 +604,7 @@ __rvm_ruby_do() {
604
604
  touch ./log/$rvm_ruby_string/$rvm_action.log ./log/$rvm_ruby_string/$rvm_action.error.log
605
605
  eval "$rvm_command" >> ./log/$rvm_ruby_string/$rvm_action.log 2>> ./log/$rvm_ruby_string/$rvm_action.error.log
606
606
  else
607
- echo -e "\n\n\033[0;32m$rvm_ruby_string: $($rvm_ruby_home/bin/$binary -v | tr "\n" ' ')\033[0m\n"
607
+ echo -e "\n\n\033[0;32m$rvm_ruby_string: $($rvm_ruby_home/bin/ruby -v | tr "\n" ' ')\033[0m\n"
608
608
  eval "$rvm_command"
609
609
  fi
610
610
  result=$?
@@ -807,6 +807,21 @@ __rvm_iconv_install() {
807
807
  __rvm_pushpop
808
808
  }
809
809
 
810
+ __rvm_curl_install() {
811
+ __rvm_make_flags
812
+ __rvm_pushpop $rvm_src_path
813
+ package="curl" ; version=7.19.7 ; archive_format="tar.gz"
814
+ __rvm_log "info" "Retrieving $package-$version.$archive_format"
815
+ __rvm_fetch "http://curl.haxx.se/download/$package-$version.$archive_format"
816
+ __rvm_run "$package/extract" "tar zxf $rvm_archives_path/$package-$version.$archive_format -C $rvm_src_path" "Extracting $package-$version.$archive_format"
817
+ cd "$rvm_src_path/$package-$version"
818
+ __rvm_run "$package/configure" "./configure --prefix=$rvm_path/usr" "Configuring $package."
819
+ __rvm_run "$package/make" "/usr/bin/make $rvm_make_flags" "Compiling $package"
820
+ __rvm_run "$package/make.install" "/usr/bin/make install" "Installing $package to $rvm_path/usr"
821
+ __rvm_pushpop
822
+ }
823
+
824
+
810
825
  __rvm_openssl_install() {
811
826
  __rvm_make_flags
812
827
  if match "$rvm_archflags" "x86_64" ; then
@@ -952,16 +967,16 @@ array_push() {
952
967
  }
953
968
 
954
969
  match() {
955
- if [[ ! -z "$BASH_VERSION" ]] && [[ ${BASH_VERSION:0:1} -gt 2 ]] && [[ ${BASH_VERSION:2:1} -ge 1 ]] ; then
956
- [[ "$1" =~ $2 ]] ; return $?
970
+ #if [[ ! -z "$BASH_VERSION" ]] && [[ ${BASH_VERSION:0:1} -gt 2 ]] && [[ ${BASH_VERSION:2:1} -ge 1 ]] ; then
971
+ #[[ "$1" =~ $2 ]] ; return $?
957
972
  # elif [[ ! -z "$ZSH_VERSION"]] && [[ ${ZSH_VERSION:0:1} -gt 3 ]] && [[ ${ZSH_VERSION:2:1} -ge 2 ]] && [[ ${ZSH_VERSION:4:1} -ge 4 ]] ; then
958
973
  # return [[ "$1" =~ "$2" ]]
974
+ #else
975
+ if [ ! -z "$(echo "$1" | awk "/${2}/")" ] ; then
976
+ return 0
959
977
  else
960
- if [ ! -z "$(echo "$1" | awk "/${2}/")" ] ; then
961
- return 0
962
- else
963
- return 1
964
- fi
978
+ return 1
965
979
  fi
980
+ #fi
966
981
  }
967
982
 
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.76
4
+ version: 0.0.77
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne E. Seguin
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-11 00:00:00 -05:00
12
+ date: 2009-11-12 00:00:00 -05:00
13
13
  default_executable: rvm-install
14
14
  dependencies: []
15
15