toastyapps-gembox 1.0.1 → 1.0.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/lib/gembox.rb +6 -2
- data/test/test_gembox.rb +8 -0
- metadata +6 -4
data/lib/gembox.rb
CHANGED
@@ -10,7 +10,6 @@ class Gembox
|
|
10
10
|
File.open("#{dir}/.gemrc", 'w') do |f|
|
11
11
|
f.puts "gempath:"
|
12
12
|
f.puts " - #{dir}/gems"
|
13
|
-
f.puts "gemhome: #{dir}/usr/bin"
|
14
13
|
end
|
15
14
|
File.open("#{dir}/.bashrc", "w") do |f|
|
16
15
|
f.puts "PS1=\"gembox:\\w> \""
|
@@ -26,7 +25,12 @@ class Gembox
|
|
26
25
|
f.puts "#!/usr/bin/ruby"
|
27
26
|
f.puts "args=ARGV"
|
28
27
|
f.puts "command=args.shift"
|
29
|
-
f.puts "
|
28
|
+
f.puts "case command"
|
29
|
+
f.puts "when 'install'"
|
30
|
+
f.puts " system(\"gem --config-file #{dir}/.gemrc #\{command\} --bindir #{dir}/usr/bin #\{ARGV.join(' ')\}\")"
|
31
|
+
f.puts "else"
|
32
|
+
f.puts " system(\"gem --config-file #{dir}/.gemrc #\{command\} #\{ARGV.join(' ')\}\")"
|
33
|
+
f.puts "end"
|
30
34
|
end
|
31
35
|
end
|
32
36
|
|
data/test/test_gembox.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toastyapps-gembox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Mongeau
|
@@ -12,7 +12,7 @@ cert_chain: []
|
|
12
12
|
date: 2009-03-18 21:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
|
-
description:
|
15
|
+
description: Gembox allows you to create a sandbox for installing and using gems using an interactive shell. Simple run "gembox create ." and then "gembox shell"
|
16
16
|
email:
|
17
17
|
- halogenandtoast@gmail.com
|
18
18
|
executables:
|
@@ -30,8 +30,9 @@ files:
|
|
30
30
|
- Rakefile
|
31
31
|
- bin/gembox
|
32
32
|
- lib/gembox.rb
|
33
|
+
- test/test_gembox.rb
|
33
34
|
has_rdoc: true
|
34
|
-
homepage: http://
|
35
|
+
homepage: http://www.halogenandtoast.com
|
35
36
|
post_install_message:
|
36
37
|
rdoc_options:
|
37
38
|
- --main
|
@@ -56,5 +57,6 @@ rubyforge_project: gembox
|
|
56
57
|
rubygems_version: 1.2.0
|
57
58
|
signing_key:
|
58
59
|
specification_version: 2
|
59
|
-
summary:
|
60
|
+
summary: Gembox allows you to create a sandbox for installing and using gems using an interactive shell
|
60
61
|
test_files:
|
62
|
+
- test/test_gembox.rb
|