gs 0.0.1
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/README +23 -0
- data/bin/gs +60 -0
- metadata +48 -0
data/README
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
GS(1)
|
2
|
+
|
3
|
+
NAME
|
4
|
+
gs -- Gemset management
|
5
|
+
|
6
|
+
SYNOPSIS
|
7
|
+
gs
|
8
|
+
gs init
|
9
|
+
gs help
|
10
|
+
|
11
|
+
DESCRIPTION
|
12
|
+
When called with no arguments, it starts a shell session and
|
13
|
+
configures the variables GEM_HOME, GEM_PATH and PATH to point to
|
14
|
+
the $PWD/.gemset directory.
|
15
|
+
|
16
|
+
init
|
17
|
+
Creates the $PWD/.gemset directory.
|
18
|
+
|
19
|
+
help
|
20
|
+
Displays this message.
|
21
|
+
|
22
|
+
INSTALLATION
|
23
|
+
$ gem install gs
|
data/bin/gs
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
help = <<EOS
|
4
|
+
GS(1)
|
5
|
+
|
6
|
+
NAME
|
7
|
+
gs -- Gemset management
|
8
|
+
|
9
|
+
SYNOPSIS
|
10
|
+
gs
|
11
|
+
gs init
|
12
|
+
gs help
|
13
|
+
|
14
|
+
DESCRIPTION
|
15
|
+
When called with no arguments, it starts a shell session and
|
16
|
+
configures the variables GEM_HOME, GEM_PATH and PATH to point to
|
17
|
+
the $PWD/.gemset directory.
|
18
|
+
|
19
|
+
init
|
20
|
+
Creates the $PWD/.gemset directory.
|
21
|
+
|
22
|
+
help
|
23
|
+
Displays this message.
|
24
|
+
EOS
|
25
|
+
|
26
|
+
rc = <<EOS
|
27
|
+
. ~/.bashrc
|
28
|
+
|
29
|
+
GEM_HOME="$PWD/.gemset"
|
30
|
+
GEM_PATH="$PWD/.gemset"
|
31
|
+
GEM_SET=`basename $PWD`
|
32
|
+
PATH="$PWD/.gemset/bin:$PATH"
|
33
|
+
EOS
|
34
|
+
|
35
|
+
# Start a subshell with the init file .gs. If the file doesn't exist,
|
36
|
+
# exit with an error.
|
37
|
+
def use
|
38
|
+
if File.exists?(".gs")
|
39
|
+
exec "bash --init-file .gs"
|
40
|
+
else
|
41
|
+
puts "File .gs not found. Try `gs help`."
|
42
|
+
exit 1
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# Create the .gemset directory and the .gs init file.
|
47
|
+
def init(rc)
|
48
|
+
Dir.mkdir(".gemset")
|
49
|
+
File.write(".gs", rc)
|
50
|
+
end
|
51
|
+
|
52
|
+
def help
|
53
|
+
puts help
|
54
|
+
end
|
55
|
+
|
56
|
+
case ARGV[0]
|
57
|
+
when "init" then init(rc)
|
58
|
+
when "help" then puts help
|
59
|
+
else use
|
60
|
+
end
|
metadata
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Michel Martens
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-30 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Gemset management
|
15
|
+
email:
|
16
|
+
- soveran@gmail.com
|
17
|
+
executables:
|
18
|
+
- gs
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- README
|
23
|
+
- bin/gs
|
24
|
+
homepage: http://github.com/soveran/gs
|
25
|
+
licenses: []
|
26
|
+
post_install_message:
|
27
|
+
rdoc_options: []
|
28
|
+
require_paths:
|
29
|
+
- lib
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ! '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
requirements: []
|
43
|
+
rubyforge_project:
|
44
|
+
rubygems_version: 1.8.10
|
45
|
+
signing_key:
|
46
|
+
specification_version: 3
|
47
|
+
summary: Gemset management
|
48
|
+
test_files: []
|