toastyapps-gembox 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/gembox.rb +6 -2
  2. data/test/test_gembox.rb +8 -0
  3. 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 "system(\"gem --config-file #{dir}/.gemrc #\{command\} #\{ARGV.join(' ')\}\")"
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
 
@@ -0,0 +1,8 @@
1
+ require "test/unit"
2
+ require "gembox"
3
+
4
+ class TestGembox < Test::Unit::TestCase
5
+ def test_sanity
6
+ flunk "write tests or I will kneecap you"
7
+ end
8
+ end
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.1
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: Create an interactive shell to use as a sandbox for managing gems
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://halogenandtast.com
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: Create an interactive shell to use as a sandbox for managing gems
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