-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathTODO
68 lines (66 loc) · 2.12 KB
/
TODO
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
58
59
60
61
62
63
64
65
66
67
TODO: fix dependencies in rake files
TODO: put in timeout when installing gems
TODO: check for network connection
TODO: perhaps look in installed rubygems cache first
TODO: make rubygems dependency fail immediately and gracefully?
* in bin/sandbox?
TODO: replace backticks for gem installs with open4 library?
TODO: allow for sandbox to be rerun against existing sandbox to update it?
TODO: test against various OS platforms
* BSD
* OSX
* Gentoo
* Debian/Ubuntu
* Could it work on Windows?
* ?
TODO: test against other shells
* csh
* zsh
TODO: test against other ruby versions?
* jruby
TODO: allow gem versions to be specified when installing
TODO: better documentation
* of the codebase
* in the readme
TODO: improve ui output
* use verbosity level
* include more messages about status
TODO: user config
* set list of ruby variants to query?
* list of gems to install
~/.sandbox/config
TODO: allow for install of ruby/rubygems
* how
* select dynamically?
* preset in config file?
* MRI, JRuby, Rubinius?
* each would have their own install method
* rubygems install would vary then
TODO: perhaps the following could be added to the activate script???
# function not_sourced() {
# ## ZSH source check
# test -n "$ZSH_NAME" -a "$HISTCMD" = "0" && return 0
# ## BASH source check
# test "`basename $1 2>/dev/null`" = "activate_sandbox" && return 0
# ## script was not sourced
# return 1
# }
# function exit_with_warning() {
# echo "You must source this script (ie. source bin/activate_sandbox)"
# exit 1
# }
# not_sourced $0 && exit_with_warning
# unset not_sourced
# unset exit_with_warning
# OTHER WAYS
# ====
# ONLY WORKS FOR BASH
# if [[ "$BASH_SOURCE" == "$0" ]]
# then
# echo "script was executed, not sourced"
# fi
# ====
# COULD WORK FOR BASH:
# if [ -n `readlink -f $0` ]; then
# echo "script was executed, not sourced"
# fi