gemrage 0.1.1 → 0.1.2
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/Gemfile +2 -0
- data/Gemfile.lock +5 -0
- data/VERSION +1 -1
- data/gemrage.gemspec +148 -3
- data/lib/rubygems/commands/scan_command.rb +77 -4
- data/vendor/ruby/1.8/bin/rvm-install +19 -0
- data/vendor/ruby/1.8/cache/macaddr-1.0.0.gem +0 -0
- data/vendor/ruby/1.8/cache/rvm-1.0.14.gem +0 -0
- data/vendor/ruby/1.8/gems/macaddr-1.0.0/README +33 -0
- data/vendor/ruby/1.8/gems/macaddr-1.0.0/gemspec.rb +27 -0
- data/vendor/ruby/1.8/gems/macaddr-1.0.0/install.rb +210 -0
- data/vendor/ruby/1.8/gems/macaddr-1.0.0/lib/macaddr.rb +69 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/LICENCE +18 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/README +127 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/bin/rvm-install +5 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm +76 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-auto-ruby +24 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-prompt +204 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-shell +35 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-update-head +35 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvm-update-latest +27 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/binscripts/rvmsudo +24 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/config/db +71 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/config/known +55 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/config/md5 +87 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/contrib/gemset_snapshot +25 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/contrib/install-system-wide +191 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/contrib/r +44 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/examples/rvmrc +47 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/gemsets/default.gems +1 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/gemsets/global.gems +1 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/alias +46 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/benchmark +17 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/cleanup +23 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/debug +8 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/disk-usage +15 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/docs +22 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/exec +33 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/fetch +5 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/gem +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/gemdir +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/gemset +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/implode +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/info +64 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/install +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/list +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/migrate +15 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/monitor +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/notes +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/package +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/rake +14 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/remove +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/repair +23 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/reset +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/ruby +84 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/rubygems +11 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/rvmrc +34 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/snapshot +15 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/specs +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/srcdir +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/tests +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/tools +22 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/uninstall +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/update +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/upgrade +18 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/use +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/help/wrapper +41 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/install +631 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/VERSION.yml +4 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/capistrano.rb +45 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/alias.rb +69 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/cleanup.rb +54 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/configuration.rb +60 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/env.rb +52 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/gemset.rb +222 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/info.rb +13 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/list.rb +124 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/rubies.rb +50 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/sets.rb +123 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/tools.rb +68 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/utility.rb +173 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment/wrapper.rb +23 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/environment.rb +64 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/errors.rb +31 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/install_command_dumper.rb +51 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/abstract_wrapper.rb +145 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/calculate_rvm_path.sh +26 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/result.rb +42 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/shell_wrapper.sh +10 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/single_shot_wrapper.rb +56 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell/utility.rb +37 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/shell.rb +25 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm/version.rb +19 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/lib/rvm.rb +156 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/man/man1/rvm.1 +385 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/man/man1/rvm.1.gz +0 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/rvm.gemspec +184 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/alias +225 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/aliases +4 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/array +32 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/base +49 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/cd +87 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/cleanup +58 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/cli +781 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/color +49 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/completion +151 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/db +87 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/default +64 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/disk-usage +60 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/docs +115 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/env +46 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/environment-convertor +74 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/fetch +229 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/gemsets +950 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/hash +37 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/help +46 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/hook +23 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/info +214 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/initialize +29 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/install +631 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/irbrc +9 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/irbrc.rb +63 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/list +315 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/log +38 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/maglev +193 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/manage +2094 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/match +6 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/md5 +22 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/migrate +175 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/monitor +105 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/notes +121 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/override_gem +14 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/package +301 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/patches +64 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/patchsets +87 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/repair +199 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/rubygems +157 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/rvm +120 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/rvm-install +631 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/selector +818 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/set +301 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/snapshot +262 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/tools +58 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/update +631 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/upgrade +144 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/utility +1557 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/version +17 -0
- data/vendor/ruby/1.8/gems/rvm-1.0.14/scripts/wrapper +210 -0
- data/vendor/ruby/1.8/specifications/macaddr-1.0.0.gemspec +27 -0
- data/vendor/ruby/1.8/specifications/rvm-1.0.14.gemspec +42 -0
- metadata +149 -4
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm exec some-command
|
|
3
|
+
|
|
4
|
+
Executes arbitrary commands against rvm set operations. If given a set that
|
|
5
|
+
matches a single ruby command, it will exec the command directly without printing
|
|
6
|
+
out extra rvm information.
|
|
7
|
+
|
|
8
|
+
Examples:
|
|
9
|
+
|
|
10
|
+
To execute 'ruby -v' against all installed rubies and aliases, you would run:
|
|
11
|
+
|
|
12
|
+
∴ rvm exec ruby -v
|
|
13
|
+
|
|
14
|
+
If you instead want to execute it against a specific ruby (without extra logging
|
|
15
|
+
/ data printed by rvm as is done with normal set operations), you can instead do:
|
|
16
|
+
|
|
17
|
+
∴ rvm ree exec ruby -v
|
|
18
|
+
|
|
19
|
+
Since it is a set operation, normal ruby specifiers will work. As an example, to run
|
|
20
|
+
it against 1.9.2 and 1.8.7, you would run:
|
|
21
|
+
|
|
22
|
+
∴ rvm 1.9.2,1.8.7 exec ruby -v
|
|
23
|
+
|
|
24
|
+
Or, to execute 'gem env' against all gemsets:
|
|
25
|
+
|
|
26
|
+
∴ rvm --with-rubies all-gemsets exec gem env
|
|
27
|
+
|
|
28
|
+
To execute 'which ruby' in the current directory, loading a .rvmrc and falling back
|
|
29
|
+
to the default ruby:
|
|
30
|
+
|
|
31
|
+
∴ rvm --with-rubies default-with-rvmrc exec which ruby
|
|
32
|
+
|
|
33
|
+
For more information, look up the rvm set operations.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm info [ruby_string[,ruby_string[,...] [section,[section[,...]
|
|
3
|
+
|
|
4
|
+
where sections are one of:
|
|
5
|
+
|
|
6
|
+
system rvm ruby homes binaries environment debug
|
|
7
|
+
|
|
8
|
+
Both ruby strings and sections are optional arguments.
|
|
9
|
+
|
|
10
|
+
By default with no parameters rvm info will output all sections except debug.
|
|
11
|
+
|
|
12
|
+
To display system rvm debug information:
|
|
13
|
+
|
|
14
|
+
∴ rvm debug
|
|
15
|
+
|
|
16
|
+
which will display all sections including debug for the current or specified interpreters.
|
|
17
|
+
|
|
18
|
+
Example:
|
|
19
|
+
|
|
20
|
+
∴ rvm info 1.9.2-head,1.8.7 homes,binaries,environment
|
|
21
|
+
|
|
22
|
+
ruby-1.9.2-head:
|
|
23
|
+
|
|
24
|
+
homes:
|
|
25
|
+
gem: "/Users/wayne/.rvm/gems/ruby-1.9.2-head"
|
|
26
|
+
ruby: "/Users/wayne/.rvm/rubies/ruby-1.9.2-head"
|
|
27
|
+
|
|
28
|
+
binaries:
|
|
29
|
+
ruby: "/Users/wayne/.rvm/rubies/ruby-1.9.2-head/bin/ruby"
|
|
30
|
+
irb: "/Users/wayne/.rvm/rubies/ruby-1.9.2-head/bin/irb"
|
|
31
|
+
gem: "/Users/wayne/.rvm/rubies/ruby-1.9.2-head/bin/gem"
|
|
32
|
+
rake: "/Users/wayne/.rvm/gems/ruby-1.9.2-head/bin/rake"
|
|
33
|
+
|
|
34
|
+
environment:
|
|
35
|
+
GEM_HOME: "/Users/wayne/.rvm/gems/ruby-1.9.2-head"
|
|
36
|
+
GEM_PATH: "/Users/wayne/.rvm/gems/ruby-1.9.2-head:/Users/wayne/.rvm/gems/ruby-1.9.2-head@global"
|
|
37
|
+
BUNDLE_PATH: "/Users/wayne/.rvm/gems/ruby-1.9.2-head"
|
|
38
|
+
MY_RUBY_HOME: "/Users/wayne/.rvm/rubies/ruby-1.9.2-head"
|
|
39
|
+
IRBRC: "/Users/wayne/.rvm/rubies/ruby-1.9.2-head/.irbrc"
|
|
40
|
+
RUBYOPT: ""
|
|
41
|
+
gemset: ""
|
|
42
|
+
|
|
43
|
+
ruby-1.8.7-p249:
|
|
44
|
+
|
|
45
|
+
homes:
|
|
46
|
+
gem: "/Users/wayne/.rvm/gems/ruby-1.8.7-p249"
|
|
47
|
+
ruby: "/Users/wayne/.rvm/rubies/ruby-1.8.7-p249"
|
|
48
|
+
|
|
49
|
+
binaries:
|
|
50
|
+
ruby: "/Users/wayne/.rvm/rubies/ruby-1.8.7-p249/bin/ruby"
|
|
51
|
+
irb: "/Users/wayne/.rvm/rubies/ruby-1.8.7-p249/bin/irb"
|
|
52
|
+
gem: "/Users/wayne/.rvm/rubies/ruby-1.8.7-p249/bin/gem"
|
|
53
|
+
rake: "/Users/wayne/.rvm/gems/ruby-1.8.7-p249/bin/rake"
|
|
54
|
+
|
|
55
|
+
environment:
|
|
56
|
+
GEM_HOME: "/Users/wayne/.rvm/gems/ruby-1.8.7-p249"
|
|
57
|
+
GEM_PATH: "/Users/wayne/.rvm/gems/ruby-1.8.7-p249:/Users/wayne/.rvm/gems/ruby-1.8.7-p249@global"
|
|
58
|
+
BUNDLE_PATH: "/Users/wayne/.rvm/gems/ruby-1.8.7-p249"
|
|
59
|
+
MY_RUBY_HOME: "/Users/wayne/.rvm/rubies/ruby-1.8.7-p249"
|
|
60
|
+
IRBRC: "/Users/wayne/.rvm/rubies/ruby-1.8.7-p249/.irbrc"
|
|
61
|
+
RUBYOPT: ""
|
|
62
|
+
gemset: ""
|
|
63
|
+
|
|
64
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm migrate from to
|
|
3
|
+
|
|
4
|
+
Efficiently moves the gems from one ruby to another.
|
|
5
|
+
Like 'rvm gemset copy' but removes the gems from the source
|
|
6
|
+
ruby afterwards and runs it against all gemsets for a given
|
|
7
|
+
ruby.
|
|
8
|
+
|
|
9
|
+
Examples:
|
|
10
|
+
|
|
11
|
+
To migrate all gemsets from rc2 of 1.9.2 to the first release, p0,
|
|
12
|
+
you'd run:
|
|
13
|
+
|
|
14
|
+
∴ rvm migrate 1.9.2-rc2 1.9.2-p0
|
|
15
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Rake
|
|
2
|
+
|
|
3
|
+
RVM allows you to run rake tasks across multiple ruby versions, for example:
|
|
4
|
+
|
|
5
|
+
∴ rvm 1.8.6,1.9.1 rake spec
|
|
6
|
+
|
|
7
|
+
JSON Summary
|
|
8
|
+
|
|
9
|
+
Adding a --json flag prior to the word 'rake' and a JSON summary will be printed out at the end of the run.
|
|
10
|
+
|
|
11
|
+
YAML Summary
|
|
12
|
+
|
|
13
|
+
Adding a --yaml flag prior to the word 'rake' and a YAML summary will be printed out at the end of the run.
|
|
14
|
+
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm repair {symlinks,environments,archives,all}
|
|
3
|
+
|
|
4
|
+
Runs generate repair processes against given parts of rvm.
|
|
5
|
+
|
|
6
|
+
Examples:
|
|
7
|
+
|
|
8
|
+
To regenerate all of the environment files inside your rvm/environments
|
|
9
|
+
directory, you'd run:
|
|
10
|
+
|
|
11
|
+
∴ rvm repair environments
|
|
12
|
+
|
|
13
|
+
To check for stale symlinks caused by rvm in your rvm_bin_path, you'd run:
|
|
14
|
+
|
|
15
|
+
∴ rvm repair symlinks
|
|
16
|
+
|
|
17
|
+
To verify all downloaded archives have the correct md5, you'd run:
|
|
18
|
+
|
|
19
|
+
∴ rvm repair archives
|
|
20
|
+
|
|
21
|
+
Or, to do all of the above, you'd run:
|
|
22
|
+
|
|
23
|
+
∴ rvm repair all
|
|
File without changes
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'rvm ruby'
|
|
2
|
+
|
|
3
|
+
Given:
|
|
4
|
+
|
|
5
|
+
∴ cat test.rb
|
|
6
|
+
puts "patchlevel: #{RUBY_PATCHLEVEL}, release_date: #{RUBY_RELEASE_DATE}, ruby_version: #{RUBY_VERSION}, ruby_platform: #{RUBY_PLATFORM}"
|
|
7
|
+
|
|
8
|
+
∴ rvm list
|
|
9
|
+
|
|
10
|
+
ruby:
|
|
11
|
+
|
|
12
|
+
ruby-1.8.6-p383 [x86_64]
|
|
13
|
+
ruby-1.8.7-p174 [x86_64]
|
|
14
|
+
ruby-1.9.1-head [x86_64]
|
|
15
|
+
=> ruby-1.9.1-p243 [x86_64]
|
|
16
|
+
ruby-1.9.2-preview3 [x86_64]
|
|
17
|
+
|
|
18
|
+
jruby:
|
|
19
|
+
|
|
20
|
+
jruby-1.3.1 [x86_64]
|
|
21
|
+
jruby-1.4.0RC3 [x86_64]
|
|
22
|
+
|
|
23
|
+
ree:
|
|
24
|
+
|
|
25
|
+
ree-1.8.6-20090610 [x86_64]
|
|
26
|
+
ree-1.8.7-20090928 [x86_64]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
We can run the ruby program 'test.rb' against all versions of ruby installed by RVM very simply:
|
|
30
|
+
|
|
31
|
+
∴ rvm ruby test.rb
|
|
32
|
+
|
|
33
|
+
jruby-1.3.1: jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_15) [x86_64-java]
|
|
34
|
+
|
|
35
|
+
patchlevel: 287, release_date: 2009-06-15, ruby_version: 1.8.6, ruby_platform: java
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
jruby-1.4.0RC3: jruby 1.4.0RC3 (ruby 1.8.7 patchlevel 174) (2009-09-30 80c263b) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_15) [x86_64-java]
|
|
39
|
+
|
|
40
|
+
patchlevel: 174, release_date: 2009-09-30, ruby_version: 1.8.7, ruby_platform: java
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
ree-1.8.6-20090610: ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin10.0.0] Ruby Enterprise Edition 20090610
|
|
44
|
+
|
|
45
|
+
patchlevel: 287, release_date: 2008-08-11, ruby_version: 1.8.6, ruby_platform: i686-darwin10.0.0
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
ree-1.8.7-20090928: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0], MBARI 0x6770, Ruby Enterprise Edition 20090928
|
|
49
|
+
|
|
50
|
+
patchlevel: 174, release_date: 2009-06-12, ruby_version: 1.8.7, ruby_platform: i686-darwin10.0.0
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
ruby-1.8.6-p383: ruby 1.8.6 (2009-08-04 patchlevel 383) [i686-darwin10.0.0]
|
|
54
|
+
|
|
55
|
+
patchlevel: 383, release_date: 2009-08-04, ruby_version: 1.8.6, ruby_platform: i686-darwin10.0.0
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
ruby-1.8.7-p174: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0]
|
|
59
|
+
|
|
60
|
+
patchlevel: 174, release_date: 2009-06-12, ruby_version: 1.8.7, ruby_platform: i686-darwin10.0.0
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
ruby-1.9.1-head: ruby 1.9.2dev (2009-09-26 trunk 25103) [x86_64-darwin10.0.0]
|
|
64
|
+
|
|
65
|
+
patchlevel: -1, release_date: 2009-09-26, ruby_version: 1.9.2, ruby_platform: x86_64-darwin10.0.0
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
ruby-1.9.1-p243: ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10.0.0]
|
|
69
|
+
|
|
70
|
+
patchlevel: 243, release_date: 2009-07-16, ruby_version: 1.9.1, ruby_platform: i386-darwin10.0.0
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
ruby-1.9.2-preview3: ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-darwin10.3.0]
|
|
74
|
+
|
|
75
|
+
patchlevel: -1, release_date: 2010-05-31, ruby_version: 1.9.2, ruby_platform: x86_64-darwin10.3.0
|
|
76
|
+
|
|
77
|
+
ree-1.8.7-20090928: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.0.0], MBARI 0x6770, Ruby Enterprise Edition 20090928
|
|
78
|
+
|
|
79
|
+
patchlevel: 174, release_date: 2009-06-12, ruby_version: 1.8.7, ruby_platform: i686-darwin10.0.0
|
|
80
|
+
|
|
81
|
+
If we want we can also restrict the above to a subset of named top level selections:
|
|
82
|
+
|
|
83
|
+
∴ rvm 1.9.1,1.8.7,jruby test.rb
|
|
84
|
+
...
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm rubygems [version]
|
|
3
|
+
|
|
4
|
+
Installs a specific rubygems version in the current ruby. If
|
|
5
|
+
current is specified, will install the most current rubygems
|
|
6
|
+
as known by rvm.
|
|
7
|
+
|
|
8
|
+
Please note that currently this is only compatible with ruby
|
|
9
|
+
1.8.* and ruby enterprise edition. If your system isn't supported,
|
|
10
|
+
running the command will generate an error message.
|
|
11
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm rvmrc {trust,untrust,trusted,load,reset} [optional-path]
|
|
3
|
+
|
|
4
|
+
Tools for dealing with and loading the rvmrc trust for a given directory.
|
|
5
|
+
All actions take an optional path to a directory to check.
|
|
6
|
+
|
|
7
|
+
Examples:
|
|
8
|
+
|
|
9
|
+
To check the status of ~/My/project, you'd run:
|
|
10
|
+
|
|
11
|
+
∴ rvm rvmrc trusted ~/My/project
|
|
12
|
+
|
|
13
|
+
Or, more conventionally,
|
|
14
|
+
|
|
15
|
+
∴ cd ~/My/project && rvm rvmrc trusted
|
|
16
|
+
|
|
17
|
+
To manually set it as trusted:
|
|
18
|
+
|
|
19
|
+
∴ rvm rvmrc trust ~/My/project
|
|
20
|
+
|
|
21
|
+
Or, to reset the trust and force a prompt:
|
|
22
|
+
|
|
23
|
+
∴ rvm rvmrc reset ~/My/project
|
|
24
|
+
|
|
25
|
+
Finally, to load the rvmrc in a directory, you'd run:
|
|
26
|
+
|
|
27
|
+
∴ rvm rvmrc load ~/My/project
|
|
28
|
+
|
|
29
|
+
Or,
|
|
30
|
+
|
|
31
|
+
∴ cd ~/My/project && rvm rvmrc load
|
|
32
|
+
|
|
33
|
+
Note that this replaces 'rvm load-rvmrc'. Note that load implicity trusts the
|
|
34
|
+
rvmrc, even if it is set to untrusted.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm snapshot {load,save} filename
|
|
3
|
+
|
|
4
|
+
Saves or creates a snapshot of the given rvm install. This includes:
|
|
5
|
+
|
|
6
|
+
* Settings
|
|
7
|
+
* Aliases
|
|
8
|
+
* Rubies
|
|
9
|
+
* Gemsets
|
|
10
|
+
* Packages
|
|
11
|
+
* Your Default
|
|
12
|
+
|
|
13
|
+
Ideally to make it easy to have a consistent environment among machines
|
|
14
|
+
/ to back up your environment. Please note that this is still considered
|
|
15
|
+
experimental to a large degree.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm tools {identifier,path-identifier,strings}
|
|
3
|
+
|
|
4
|
+
Provides generic tools related to rvm environments for getting information
|
|
5
|
+
about your current environment. Primarily used for scripting rvm.
|
|
6
|
+
|
|
7
|
+
Examples:
|
|
8
|
+
|
|
9
|
+
To get the expanded ruby string of the current environment, we'd run:
|
|
10
|
+
|
|
11
|
+
∴ rvm tools identifier
|
|
12
|
+
|
|
13
|
+
To get the identifier for a folder (taking into account rvmrc files and the like),
|
|
14
|
+
we're instead run:
|
|
15
|
+
|
|
16
|
+
∴ rvm tools path-identifier ~/path/to/directory
|
|
17
|
+
|
|
18
|
+
Lastly, we can example ruby strings. E.g., to get the current ree version, we'd
|
|
19
|
+
run:
|
|
20
|
+
|
|
21
|
+
∴ rvm tools strings ree
|
|
22
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm upgrade ruby-prefix [optional-source]
|
|
3
|
+
|
|
4
|
+
Attempts to install the latest version of a given ruby (still experimental).
|
|
5
|
+
|
|
6
|
+
Given a ruby prefix (e.g. 1.9.2), it attempts to upgrade your last installed
|
|
7
|
+
version, migrating gemsets.
|
|
8
|
+
|
|
9
|
+
The process will prompt you at each stage - if the versions look incorrect,
|
|
10
|
+
please cancel and perform it manually.
|
|
11
|
+
|
|
12
|
+
Examples:
|
|
13
|
+
|
|
14
|
+
If you have 1.9.2-rc2 installed and want to switch it to 1.9.2-p0,
|
|
15
|
+
|
|
16
|
+
∴ rvm upgrade 1.9.2
|
|
17
|
+
|
|
18
|
+
Will install 1.9.2-p0 and migrate the gemsets.
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
∴ rvm wrapper [ruby_string] [wrapper_prefix] [binary[ binary[ ...]]]
|
|
3
|
+
|
|
4
|
+
Where ruby_string is the ruby version and gemset combination to wrap,
|
|
5
|
+
wrapper prefix is what to prepend to the name of the generated wrapper
|
|
6
|
+
binaries and binaries is the names of the binaries you wish to provide
|
|
7
|
+
a wrapper for (e.g. gem).
|
|
8
|
+
|
|
9
|
+
When no binaries are provided, rvm will by default generate wrappers for
|
|
10
|
+
ruby, gem, rake, irb, rdoc, ri, and testrb.
|
|
11
|
+
|
|
12
|
+
Examples:
|
|
13
|
+
|
|
14
|
+
If you wish to provide an environment-specific wrapper for rspec with a
|
|
15
|
+
rails 3 gemset, you could do:
|
|
16
|
+
|
|
17
|
+
∴ rvm --create ree@rails3
|
|
18
|
+
∴ rvm wrapper ree@rails3 r3 spec
|
|
19
|
+
|
|
20
|
+
Which would add r3_spec with the specified environment to your the bin
|
|
21
|
+
directory where you installed rvm.
|
|
22
|
+
|
|
23
|
+
Alternatively, if you do:
|
|
24
|
+
|
|
25
|
+
∴ rvm wrapper ruby-1.9.2-head
|
|
26
|
+
|
|
27
|
+
It will create binaries named ruby,gem, rake, irb, rdoc, ri and tesrb
|
|
28
|
+
in the rvm bin directory.
|
|
29
|
+
|
|
30
|
+
Finally, to show another real and common use, you can use wrapper
|
|
31
|
+
to generate ruby executables and gems for passenger to use. Namely:
|
|
32
|
+
|
|
33
|
+
∴ rvm use ree@rails3 --passenger
|
|
34
|
+
|
|
35
|
+
is equivelant to:
|
|
36
|
+
|
|
37
|
+
∴ rvm use ree@rails3
|
|
38
|
+
∴ rvm wrapper ree@rails3 passenger
|
|
39
|
+
|
|
40
|
+
Which creates passenger_* binaries in the rvm bin directory using
|
|
41
|
+
ree and the rails3 gemset.
|