rvm 0.0.83 → 0.0.84

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
1
  ---
2
2
  :major: 0
3
3
  :minor: 0
4
- :patch: 83
4
+ :patch: 84
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rvm}
8
- s.version = "0.0.83"
8
+ s.version = "0.0.84"
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-26}
12
+ s.date = %q{2009-11-27}
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}
@@ -73,3 +73,4 @@ Gem::Specification.new do |s|
73
73
  else
74
74
  end
75
75
  end
76
+
@@ -17,7 +17,7 @@ array_length() {
17
17
  array=$1
18
18
  eval "length=\${#${array}[*]}"
19
19
  echo $length
20
- return length
20
+ return $length
21
21
  }
22
22
 
23
23
  array_push() {
@@ -358,7 +358,10 @@ rvm() {
358
358
  $rvm_scripts_path/monitor ; result=$?
359
359
  ;;
360
360
  notes) $rvm_scripts_path/notes ; result=$? ;;
361
- reload) source "$rvm_path/scripts/rvm" ;;
361
+ reload)
362
+ shift;shift;unset rvm_action;
363
+ source "$rvm_path/scripts/rvm"
364
+ ;;
362
365
  install|uninstall) __rvm_manage_rubies ; result=$? ;;
363
366
  tests|specs) rvm_action="rake" ; __rvm_do ; result=$? ;;
364
367
 
@@ -1,11 +1,14 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- rvm_monitor_sleep=3
4
3
  original_ruby_version=$rvm_ruby_version
5
4
  original_ruby_string=$rvm_ruby_string
6
5
 
7
6
  source $rvm_scripts_path/rvm
8
7
 
8
+ rvm_monitor_sleep="${rvm_monitor_sleep:-2}"
9
+
10
+ trap "rm -f $rvm_path/$$* > /dev/null 2>&1 ; exit" 0 1 2 3 15
11
+
9
12
  timestamp() {
10
13
  if [[ "Darwin" = "$(uname)" ]] ; then
11
14
  echo $(stat -f "%m" $1)
@@ -26,8 +29,8 @@ push_if_timestamp_changed() {
26
29
 
27
30
  update_timestamp() {
28
31
  if [[ -d "${1}/" ]] ; then
29
- touch "$rvm_path/${1}_timestamp"
30
- eval "${1}_timestamp=\$(timestamp \"$rvm_path/${1}_timestamp\")"
32
+ touch "$rvm_path/${$}_${1}_timestamp"
33
+ eval "${1}_timestamp=\$(timestamp \"$rvm_path/${$}_${1}_timestamp\")"
31
34
  fi
32
35
  }
33
36
 
@@ -41,8 +44,8 @@ while : ; do
41
44
 
42
45
  if [[ -d "$framework/" ]] ; then
43
46
 
44
- files=($(\ls ${framework}/**/*_${framework}.rb))
45
- for file in $files ; do
47
+ files=($(\ls ${framework}/**/*_${framework}.rb) $(ls ${framework}/*_${framework}.rb))
48
+ for file in "${files[@]}" ; do
46
49
  push_if_timestamp_changed $file $framework
47
50
  done
48
51
 
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.83
4
+ version: 0.0.84
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-26 00:00:00 -05:00
12
+ date: 2009-11-27 00:00:00 -05:00
13
13
  default_executable: rvm-install
14
14
  dependencies: []
15
15