-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
57 lines (38 loc) · 1.42 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
=== Description
A (simple) ruby manager.
Very alpha. no tests :(
but "works"
=== Install
$ git clone [email protected]:bhenderson/mine.git ~/.mine
$ source ~/.mine/bin/mine setup
=== Usage
ruby strings are expanded
$ mine use 192p18
same as
$ mine use ruby-1.9.2-p180
For other options:
$ mine help
=== Gems
rubygems 1.3.7 (it's what came with 1.9.2 so I went with it) is the hardcoded
version that gets installed. The thought being that rubygems is now realy easy
for users to manage themselves. If you want a different version:
$ gem update --system # latest
Specific version?
$ gem update --system <version> (requires >= 1.5.2)
see http://rubygems.rubyforge.org/rubygems-update/UPGRADING_rdoc.html
=== Considerations
I like rvm (thank you wayne!)
I wanted to see if I could simplify it a little.
I wanted 99.9% of the work to be done in a subshell/script. The problem with
this is that a subshell can't update it's parent's env. So mine has to be a
function. See head of main bin.
=== TODO
* tests!!!
* copy # doing a straight cp -a does not work because of shebangs
* get "current" ruby from CWD (allowing for .minerc files)
* this is now possible since we're using a shim for ruby
* string_search does not choose exact match if longer match also exists
* ie. 'ruby19, ruby192'
* I want to clean up option parsing
* lots of other things I can't think of right now
* should I just use `hash -r`?