gs 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -2
- data/bin/gs +13 -13
- metadata +2 -2
data/README
CHANGED
@@ -11,10 +11,10 @@ SYNOPSIS
|
|
11
11
|
DESCRIPTION
|
12
12
|
When called with no arguments, it starts a shell session and
|
13
13
|
configures the variables GEM_HOME, GEM_PATH and PATH to point to
|
14
|
-
the $PWD/.
|
14
|
+
the $PWD/.gs directory.
|
15
15
|
|
16
16
|
init
|
17
|
-
Creates the $PWD/.
|
17
|
+
Creates the $PWD/.gs directory.
|
18
18
|
|
19
19
|
help
|
20
20
|
Displays this message.
|
data/bin/gs
CHANGED
@@ -14,10 +14,10 @@ SYNOPSIS
|
|
14
14
|
DESCRIPTION
|
15
15
|
When called with no arguments, it starts a shell session and
|
16
16
|
configures the variables GEM_HOME, GEM_PATH and PATH to point to
|
17
|
-
the $PWD/.
|
17
|
+
the $PWD/.gs directory.
|
18
18
|
|
19
19
|
init
|
20
|
-
Creates the $PWD/.
|
20
|
+
Creates the $PWD/.gs directory.
|
21
21
|
|
22
22
|
help
|
23
23
|
Displays this message.
|
@@ -26,27 +26,27 @@ EOS
|
|
26
26
|
rc = <<EOS
|
27
27
|
. ~/.bashrc
|
28
28
|
|
29
|
-
export GEM_HOME="$PWD/.
|
30
|
-
export GEM_PATH="$PWD/.
|
29
|
+
export GEM_HOME="$PWD/.gs"
|
30
|
+
export GEM_PATH="$PWD/.gs:`gem env path`"
|
31
31
|
export GEM_SET="`basename $PWD`"
|
32
|
-
export PATH="$PWD/.
|
32
|
+
export PATH="$PWD/.gs/bin:$PATH"
|
33
33
|
EOS
|
34
34
|
|
35
|
-
# Start a subshell with the init file .gs. If the file doesn't
|
36
|
-
# exit with an error.
|
35
|
+
# Start a subshell with the init file .gs/config. If the file doesn't
|
36
|
+
# exist, exit with an error.
|
37
37
|
def use
|
38
|
-
if
|
39
|
-
exec "bash --init-file .gs"
|
38
|
+
if Dir.exists?(".gs")
|
39
|
+
exec "bash --init-file .gs/config"
|
40
40
|
else
|
41
|
-
puts "
|
41
|
+
puts "Directory .gs not found. Try `gs help`."
|
42
42
|
exit 1
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
# Create the .
|
46
|
+
# Create the .gs directory and the .gs/config file.
|
47
47
|
def init(rc)
|
48
|
-
Dir.mkdir(".
|
49
|
-
File.write(".gs", rc)
|
48
|
+
Dir.mkdir(".gs")
|
49
|
+
File.write(".gs/config", rc)
|
50
50
|
end
|
51
51
|
|
52
52
|
def help
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Gemset management
|
15
15
|
email:
|