rvm 1.9.2 → 1.11.3

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1,10 +1,13 @@
1
+ {<img src="https://secure.travis-ci.org/wayneeseguin/rvm.png" alt="Build Status" />}[http://travis-ci.org/wayneeseguin/rvm]
2
+
1
3
  = rvm
2
4
 
3
- * http://github.com/wayneeseguin/rvm
5
+ * https://github.com/wayneeseguin/rvm
4
6
 
5
7
  == DESCRIPTION:
6
8
 
7
9
  RVM is the Ruby enVironment Manager (rvm).
10
+
8
11
  It manages Ruby application environments and switching between them.
9
12
 
10
13
  == Usage
@@ -13,130 +16,146 @@ It manages Ruby application environments and switching between them.
13
16
 
14
17
  == Flags
15
18
 
16
- --default - with 'rvm use X', sets the default ruby for new shells to X.
17
- --debug - Toggle debug mode on for very verbose output.
18
- --trace - Toggle trace mode on to see EVERYTHING rvm is doing.
19
- --force - Force install, removes old install & source before install.
20
- --summary - Used with rubydo to print out a summary of the commands run.
21
- --latest - with gemset --dump skips version strings for latest gem.
22
- --gems - with uninstall/remove removes gems with the interpreter.
23
- --docs - with install, attempt to generate ri after installation.
24
- --reconfigure - Force ./configure on install even if Makefile already exists.
19
+ --default :: with 'rvm use X', sets the default ruby for new shells to X.
20
+ --debug :: Toggle debug mode on for very verbose output.
21
+ --trace :: Toggle trace mode on to see EVERYTHING rvm is doing.
22
+ --force :: Force install, removes old install & source before install.
23
+ --summary :: Used with rubydo to print out a summary of the commands run.
24
+ --latest :: with gemset --dump skips version strings for latest gem.
25
+ --gems :: with uninstall/remove removes gems with the interpreter.
26
+ --docs :: with install, attempt to generate ri after installation.
27
+ --reconfigure :: Force ./configure on install even if Makefile already exists.
25
28
 
26
29
  == Options
27
30
 
28
- -v|--version - Emit rvm version loaded for current shell
29
- -l|--level - patch level to use with rvm use / install
30
- --bin - path for binaries to be placed (~/.rvm/bin/)
31
- -S - Specify a script file to attempt to load and run (rubydo)
32
- -e - Execute code from the command line.
33
- --gems - Used to set the 'gems_flag', use with 'remove' to remove gems
34
- --archive - Used to set the 'archive_flag', use with 'remove' to remove archive
35
- --patch - With MRI Rubies you may specify one or more full paths to patches
31
+ -v|--version :: Emit rvm version loaded for current shell
32
+ -l|--level :: patch level to use with rvm use / install
33
+ --bin :: path for binaries to be placed (~/.rvm/bin/)
34
+ -S :: Specify a script file to attempt to load and run (rubydo)
35
+ -e :: Execute code from the command line.
36
+ --gems :: Used to set the 'gems_flag', use with 'remove' to remove gems
37
+ --archive :: Used to set the 'archive_flag', use with 'remove' to remove archive
38
+ --patch :: With MRI Rubies you may specify one or more full paths to patches
36
39
  for multiple, specify comma separated:
37
- --patch /.../.../a.patch[%prefix],/.../.../.../b.patch
40
+
41
+ --patch /.../.../a.patch[%prefix],/.../.../.../b.patch
42
+
38
43
  'prefix' is an optional argument, which will be bypassed
39
44
  to the '-p' argument of the 'patch' command. It is separated
40
45
  from patch file name with '%' symbol.
41
- -C|--configure - custom configure options. If you need to pass several configure
42
- options then append them comma separated: -C --...,--...,--...
43
- --nice - process niceness (for slow computers, default 0)
44
- --ree-options - Options passed directly to ree's './installer' on the command line.
45
- --with-rubies - Specifies a string for rvm to attempt to expand for set operations.
46
+ -C|--configure :: custom configure options. If you need to pass several configure
47
+ options then append them comma separated:
48
+
49
+ -C --...,--...,--...
50
+
51
+ --nice :: process niceness (for slow computers, default 0)
52
+ --ree-options :: Options passed directly to ree's './installer' on the command line.
53
+ --with-rubies :: Specifies a string for rvm to attempt to expand for set operations.
46
54
 
47
55
  == Action
48
56
 
49
- (Note that for most actions, 'rvm help action-name' may provide more information.)
57
+ (Note that for most actions, 'rvm help action-name' may provide more information.)
58
+
59
+ *usage* :: show this usage information
60
+ version :: show the rvm version installed in rvm_path
61
+ use :: setup current shell to use a specific ruby version
62
+ reload :: reload rvm source itself (useful after changing rvm source)
63
+ implode :: (seppuku) removes the rvm installation completely.
50
64
 
51
- * usage - show this usage information
52
- version - show the rvm version installed in rvm_path
53
- use - setup current shell to use a specific ruby version
54
- reload - reload rvm source itself (useful after changing rvm source)
55
- implode - (seppuku) removes the rvm installation completely.
56
65
  This means everything in $rvm_path (~/.rvm || /usr/local/rvm).
66
+
57
67
  This does not touch your profiles. However, this means that you
58
- must manually clean up your profiles and remove the lines which source RVM.
59
- get - {head,latest} upgrades rvm to latest head or release version.
68
+ must manually clean up your profiles and remove the lines which source RVM.
69
+ get :: {head,stable} upgrades rvm to latest head or stable version.
70
+
71
+ Check 'rvm help get' for more details.
72
+
60
73
  (If you experience bugs try this first with head version, then
61
- ask for help in #rvm on irc.freenode.net and hang around)
62
- reset - remove current and stored default & system settings.
74
+ ask for help in #rvm on irc.freenode.net and hang around)
75
+ reset :: remove current and stored default & system settings.
76
+
63
77
  (If you experience odd behavior try this second)
64
- info - show the *current* environment information for current ruby
65
- current - print the *current* ruby version and the name of any gemset being used.
66
- debug - show info plus additional information for common issues
78
+ info :: show the *current* environment information for current ruby
79
+ current :: print the *current* ruby version and the name of any gemset being used.
80
+ debug :: show info plus additional information for common issues
81
+
82
+ install :: install one or many ruby versions
67
83
 
68
- install - install one or many ruby versions
69
84
  See also: http://rvm.beginrescueend.com/rubies/installing/
70
- uninstall - uninstall one or many ruby versions, leaves their sources
71
- remove - uninstall one or many ruby versions and remove their sources
85
+ uninstall :: uninstall one or many ruby versions, leaves their sources
86
+ remove :: uninstall one or many ruby versions and remove their sources
72
87
 
73
- migrate - Lets you migrate all gemsets from one ruby to another.
74
- upgrade - Lets you upgrade from one version of a ruby to another, including
88
+ migrate :: Lets you migrate all gemsets from one ruby to another.
89
+ upgrade :: Lets you upgrade from one version of a ruby to another, including
75
90
  migrating your gemsets semi-automatically.
76
91
 
77
- wrapper - generates a set of wrapper executables for a given ruby with the
92
+ wrapper :: generates a set of wrapper executables for a given ruby with the
78
93
  specified ruby and gemset combination. Used under the hood for
79
94
  passenger support and the like.
80
95
 
81
- cleanup - Lets you remove stale source folders / archives and other miscellaneous
96
+ cleanup :: Lets you remove stale source folders / archives and other miscellaneous
82
97
  data associated with rvm.
83
- repair - Lets you repair parts of your environment e.g. wrappers, env files and
98
+ repair :: Lets you repair parts of your environment e.g. wrappers, env files and
84
99
  and similar files (e.g. general maintenance).
85
- snapshot - Lets your backup / restore an rvm installation in a lightweight manner.
100
+ snapshot :: Lets your backup / restore an rvm installation in a lightweight manner.
86
101
 
87
- disk-usage - Tells you how much disk space rvm install is using.
88
- tools - Provides general information about the ruby environment,
102
+ disk-usage :: Tells you how much disk space rvm install is using.
103
+ tools :: Provides general information about the ruby environment,
89
104
  primarily useful when scripting rvm.
90
- docs - Tools to make installing ri and rdoc documentation easier.
91
- rvmrc - Tools related to managing rvmrc trust and loading.
105
+ docs :: Tools to make installing ri and rdoc documentation easier.
106
+ rvmrc :: Tools related to managing rvmrc trust and loading.
92
107
 
93
- do - runs an arbitrary command against specified and/or all rubies
94
- tests - runs 'rake test' across selected ruby versions
95
- specs - runs 'rake spec' across selected ruby versions
96
- monitor - Monitor cwd for testing, run `rake {spec,test}` on changes.
108
+ do :: runs an arbitrary command against specified and/or all rubies
109
+ tests :: runs 'rake test' across selected ruby versions
110
+ specs :: runs 'rake spec' across selected ruby versions
111
+ monitor :: Monitor cwd for testing, run `rake {spec,test}` on changes.
97
112
 
98
- gemset - gemsets: http://rvm.beginrescueend.com/gemsets/
113
+ gemset :: gemsets: http://rvm.beginrescueend.com/gemsets/
99
114
 
100
- rubygems - Switches the installed version of rubygems for the current ruby.
115
+ rubygems :: Switches the installed version of rubygems for the current ruby.
101
116
 
102
- gemdir - display the path to the current gem directory (GEM_HOME).
103
- srcdir - display the path to rvm source directory (may be yanked)
117
+ gemdir :: display the path to the current gem directory (GEM_HOME).
118
+ srcdir :: display the path to rvm source directory (may be yanked)
119
+
120
+ fetch :: Performs an archive / src fetch only of the selected ruby.
121
+ list :: show currently installed rubies, interactive output.
104
122
 
105
- fetch - Performs an archive / src fetch only of the selected ruby.
106
- list - show currently installed rubies, interactive output.
107
123
  http://rvm.beginrescueend.com/rubies/list/
108
- pkg - Install a dependency package {readline,iconv,zlib,openssl}
124
+ pkg :: Install a dependency package {readline,iconv,zlib,openssl}
125
+
109
126
  http://rvm.beginrescueend.com/packages/
110
- notes - Display notes, with operating system specifics.
127
+ notes :: Display notes, with operating system specifics.
111
128
 
112
- export - Temporarily set an environment variable in the current shell.
113
- unexport - Undo changes made to the environment by 'rvm export'.
114
- requirements - Shows additional OS specific dependencies/requirementes for building various rubies.
129
+ export :: Temporarily set an environment variable in the current shell.
130
+ unexport :: Undo changes made to the environment by 'rvm export'.
131
+ requirements :: Shows additional OS specific dependencies/requirements for building various rubies.
115
132
 
116
133
  == Implementation
117
134
 
118
- * ruby - MRI/YARV Ruby (The Gold Standard) {1.8.6,1.8.7,1.9.1,1.9.2...}
119
- jruby - JRuby, Ruby interpreter on the Java Virtual Machine.
120
- rbx - Rubinius
121
- ree - Ruby Enterprise Edition, MRI Ruby with several custom
135
+ *ruby* :: MRI/YARV Ruby (The Gold Standard) {1.8.6,1.8.7,1.9.1,1.9.2...}
136
+ jruby :: JRuby, Ruby interpreter on the Java Virtual Machine.
137
+ rbx :: Rubinius
138
+ ree :: Ruby Enterprise Edition, MRI Ruby with several custom
122
139
  patches for performance, stability, and memory.
123
- macruby - MacRuby, insanely fast, can make real apps (Mac OS X Only).
124
- maglev - GemStone Ruby, awesome persistent ruby object store.
125
- ironruby - IronRuby, NOT supported yet. Looking for volunteers to help.
126
- system - use the system ruby (eg. pre-rvm state)
127
- default - use rvm set default ruby and system if it hasn't been set.
140
+ macruby :: MacRuby, insanely fast, can make real apps (Mac OS X Only).
141
+ maglev :: GemStone Ruby, awesome persistent ruby object store.
142
+ ironruby :: IronRuby, NOT supported yet. Looking for volunteers to help.
143
+ system :: use the system ruby (eg. pre-rvm state)
144
+ default :: use rvm set default ruby and system if it hasn't been set.
145
+
128
146
  http://rvm.beginrescueend.com/rubies/default/
129
147
 
130
148
  == Resources:
131
149
 
132
- http://rvm.beginrescueend.com/
133
- https://www.pivotaltracker.com/projects/26822
150
+ http://rvm.beginrescueend.com/
151
+
152
+ https://www.pivotaltracker.com/projects/26822
134
153
 
135
154
  == Contributions:
136
155
 
137
- Any and all contributions offered in any form, past present or future, to the
138
- RVM project are understood to be in complete agreement and acceptance with the
139
- Apache Licence v2.0.
156
+ Any and all contributions offered in any form, past present or future, to the
157
+ RVM project are understood to be in complete agreement and acceptance with the
158
+ Apache Licence v2.0.
140
159
 
141
160
  == INSTALL:
142
161
 
@@ -144,7 +163,7 @@ See http://rvm.beginrescueend.com/rvm/install/
144
163
 
145
164
  or just use:
146
165
 
147
- bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
166
+ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
148
167
 
149
168
  == LICENSE:
150
169
 
@@ -154,7 +173,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
154
173
  you may not use this file except in compliance with the License.
155
174
  You may obtain a copy of the License at
156
175
 
157
- http://www.apache.org/licenses/LICENSE-2.0
176
+ http://www.apache.org/licenses/LICENSE-2.0
158
177
 
159
178
  Unless required by applicable law or agreed to in writing, software
160
179
  distributed under the License is distributed on an "AS IS" BASIS,
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.9.2
1
+ 1.11.3
@@ -16,7 +16,11 @@ Capistrano::Configuration.instance(true).load do
16
16
  set :default_shell do
17
17
  shell = File.join(rvm_bin_path, "rvm-shell")
18
18
  ruby = rvm_ruby_string.to_s.strip
19
- shell = "rvm_path=#{rvm_path} #{shell} '#{ruby}'" unless ruby.empty?
19
+ if "#{ruby}" == "release_path"
20
+ shell = "rvm_path=#{rvm_path} #{shell} --path '#{release_path}'"
21
+ else
22
+ shell = "rvm_path=#{rvm_path} #{shell} '#{ruby}'" unless ruby.empty?
23
+ end
20
24
  shell
21
25
  end
22
26
 
@@ -52,6 +56,57 @@ Capistrano::Configuration.instance(true).load do
52
56
 
53
57
  # Use the default ruby on the server, by default :)
54
58
  _cset(:rvm_ruby_string, "default")
59
+
60
+ # Let users set the install type and shell of their choice.
61
+ _cset(:rvm_install_type, :stable)
62
+ _cset(:rvm_install_shell, :bash)
63
+
64
+ # Let users set the (re)install for ruby.
65
+ _cset(:rvm_install_ruby, :install)
66
+ _cset(:rvm_install_ruby_threads, "$(cat /proc/cpuinfo | grep vendor_id | wc -l)")
67
+
68
+ namespace :rvm do
69
+ desc <<-EOF
70
+ Install RVM of the given choice to the server.
71
+ By default RVM "stable" is installed, change with:
72
+
73
+ set :rvm_install_type, :head
74
+
75
+ By default BASH is used for installer, change with:
76
+
77
+ set :rvm_install_shell, :zsh
78
+ EOF
79
+ task :install_rvm do
80
+ run "#{rvm_install_shell} -s #{rvm_install_type} \
81
+ < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)", :shell => "#{rvm_install_shell}"
82
+ end
83
+
84
+ desc <<-EOF
85
+ Install RVM ruby to the server, create gemset if needed.
86
+ By default ruby is installed, you can reinstall with:
87
+
88
+ set :rvm_install_ruby, :reinstall
89
+
90
+ By default ruby is compiled using all CPU cores, change with:
91
+
92
+ set :rvm_install_ruby_threads, :reinstall
93
+
94
+ By default BASH is used for installer, change with:
95
+
96
+ set :rvm_install_shell, :zsh
97
+ EOF
98
+ task :install_ruby do
99
+ ruby, gemset = rvm_ruby_string.to_s.strip.split /@/
100
+ if %w( release_path default ).include? "#{ruby}"
101
+ raise "ruby can not be installed when using :rvm_ruby_string => :#{ruby}"
102
+ else
103
+ run "#{File.join(rvm_bin_path, "rvm")} #{rvm_install_ruby} #{ruby} -j #{rvm_install_ruby_threads}", :shell => "#{rvm_install_shell}"
104
+ if gemset
105
+ run "#{File.join(rvm_bin_path, "rvm")} #{ruby} do rvm gemset create #{gemset}", :shell => "#{rvm_install_shell}"
106
+ end
107
+ end
108
+ end
109
+ end
55
110
  end
56
111
 
57
112
  # E.g, to use ree and rails 3:
@@ -21,7 +21,7 @@ def normalize_argument(arg)
21
21
  end
22
22
 
23
23
  def arguments_for_install
24
- if ruby?(:ruby, :ree, :goruby)
24
+ if ruby?(:ruby, :ree, :goruby, :tcs)
25
25
  begin
26
26
  require 'rbconfig'
27
27
  require 'shellwords'
metadata CHANGED
@@ -1,126 +1,93 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rvm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 9
9
- - 2
10
- version: 1.9.2
8
+ - 11
9
+ - 3
10
+ version: 1.11.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wayne E. Seguin
14
+ - Michal Papis
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-10-31 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: hoe
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 23
29
- segments:
30
- - 2
31
- - 10
32
- version: "2.10"
33
- type: :development
34
- version_requirements: *id001
35
- description: |-
36
- RVM is the Ruby enVironment Manager (rvm).
37
- It manages Ruby application environments and switching between them.
19
+ date: 2012-03-26 00:00:00 Z
20
+ dependencies: []
21
+
22
+ description: RVM is the Ruby enVironment Manager (rvm). It manages Ruby application environments and switching between them.
38
23
  email:
39
24
  - wayneeseguin@gmail.com
25
+ - mpapis@gmail.com
40
26
  executables: []
41
27
 
42
28
  extensions: []
43
29
 
44
- extra_rdoc_files:
45
- - History.txt
46
- - Manifest.txt
30
+ extra_rdoc_files: []
31
+
47
32
  files:
48
- - History.txt
49
- - Manifest.txt
50
- - LICENCE
51
- - README
52
- - Rakefile
53
- - VERSION
54
- - sha1
55
- - lib/rvm.rb
33
+ - lib/rvm/errors.rb
34
+ - lib/rvm/shell/shell_wrapper.sh
35
+ - lib/rvm/shell/abstract_wrapper.rb
36
+ - lib/rvm/shell/single_shot_wrapper.rb
37
+ - lib/rvm/shell/calculate_rvm_path.sh
38
+ - lib/rvm/shell/utility.rb
39
+ - lib/rvm/shell/result.rb
56
40
  - lib/rvm/capistrano.rb
57
- - lib/rvm/environment.rb
58
- - lib/rvm/environment/alias.rb
59
- - lib/rvm/environment/cleanup.rb
60
- - lib/rvm/environment/configuration.rb
61
41
  - lib/rvm/environment/env.rb
62
42
  - lib/rvm/environment/gemset.rb
63
- - lib/rvm/environment/info.rb
64
43
  - lib/rvm/environment/list.rb
65
- - lib/rvm/environment/rubies.rb
44
+ - lib/rvm/environment/alias.rb
66
45
  - lib/rvm/environment/sets.rb
67
- - lib/rvm/environment/tools.rb
68
- - lib/rvm/environment/utility.rb
46
+ - lib/rvm/environment/info.rb
47
+ - lib/rvm/environment/rubies.rb
48
+ - lib/rvm/environment/cleanup.rb
69
49
  - lib/rvm/environment/wrapper.rb
70
- - lib/rvm/errors.rb
50
+ - lib/rvm/environment/utility.rb
51
+ - lib/rvm/environment/configuration.rb
52
+ - lib/rvm/environment/tools.rb
53
+ - lib/rvm/version.rb
71
54
  - lib/rvm/install_command_dumper.rb
72
55
  - lib/rvm/shell.rb
73
- - lib/rvm/shell/abstract_wrapper.rb
74
- - lib/rvm/shell/calculate_rvm_path.sh
75
- - lib/rvm/shell/result.rb
76
- - lib/rvm/shell/shell_wrapper.sh
77
- - lib/rvm/shell/single_shot_wrapper.rb
78
- - lib/rvm/shell/utility.rb
79
- - lib/rvm/version.rb
80
- - releases/rvm-1.9.2.tar.gz
81
- - releases/rvm-1.9.2.tar.gz.md5
82
- - .gemtest
83
- homepage: http://github.com/wayneeseguin/rvm
56
+ - lib/rvm/environment.rb
57
+ - lib/rvm.rb
58
+ - LICENCE
59
+ - README
60
+ - VERSION
61
+ homepage: https://rvm.beginrescueend.com/
84
62
  licenses: []
85
63
 
86
64
  post_install_message: |
87
- ********************************************************************************
65
+ ***********************************************************************************
88
66
 
89
- This gem contains only the Ruby libraries for the RVM Ruby API.
67
+ This gem contains only the Ruby libraries for the RVM Ruby API.
90
68
 
91
- In order to install RVM please use one of the methods listed in the
92
- documentation:
69
+ In order to install RVM please use one of the methods listed in the documentation:
93
70
 
94
71
  https://rvm.beginrescueend.com/rvm/install/
72
+
73
+ such as,
95
74
 
96
- such as,
97
-
98
- bash < <(curl -s -B https://rvm.beginrescueend.com/install/rvm)
99
-
100
- followed by placing the sourcing line in your ~/.bash_profile or wherever may
101
- be appropriate for your setup (example, .zshenv, /etc/profile, ...):
75
+ bash -s stable < <(curl -s \
76
+ https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
102
77
 
103
- # Load RVM into a shell session *as a function*
104
- [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
105
-
106
- After completing setup please open a new shell to use RVM and be sure to run
107
- 'rvm notes' to gain a list of dependencies to install before installing the
108
- first Ruby. You can read more details about this process on the above
109
- mentioned install page as well as the basics page:
78
+ You can read more details about this process on the above mentioned install page
79
+ as well as the basics page:
110
80
 
111
81
  https://rvm.beginrescueend.com/rvm/basics/
112
82
 
113
- Enjoy!
83
+ Enjoy!
114
84
 
115
85
  ~Wayne
116
86
 
117
- ********************************************************************************
87
+ ***********************************************************************************
88
+
89
+ rdoc_options: []
118
90
 
119
- rdoc_options:
120
- - --main
121
- - README.txt
122
- - --inline-source
123
- - --charset=UTF-8
124
91
  require_paths:
125
92
  - lib
126
93
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -143,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
110
  version: "0"
144
111
  requirements: []
145
112
 
146
- rubyforge_project: rvm
147
- rubygems_version: 1.8.10
113
+ rubyforge_project:
114
+ rubygems_version: 1.8.21
148
115
  signing_key:
149
116
  specification_version: 3
150
117
  summary: RVM is the Ruby enVironment Manager (rvm)