gs 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/gs +5 -4
  2. metadata +2 -2
data/bin/gs CHANGED
@@ -33,11 +33,12 @@ when "init" then Dir.mkdir(".gs")
33
33
  when "help" then puts help
34
34
  else
35
35
  if File.directory?(".gs")
36
+ pwd = Dir.pwd
36
37
  env = ENV.to_hash
37
- env["GS_NAME"] = `basename $PWD`.strip
38
- env["GEM_HOME"] = "#{ENV['PWD']}/.gs"
39
- env["GEM_PATH"] = "#{ENV['PWD']}/.gs:#{`gem env path`}"
40
- env["PATH"] = "#{ENV['PWD']}/.gs/bin:#{ENV['PATH']}"
38
+ env["GS_NAME"] = File.basename(pwd)
39
+ env["GEM_HOME"] = pwd + "/.gs"
40
+ env["GEM_PATH"] = pwd + "/.gs:#{`gem env path`}"
41
+ env["PATH"] = pwd + "/.gs/bin:#{ENV['PATH']}"
41
42
 
42
43
  if ARGV.length > 0
43
44
  exec env, *ARGV
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.1.2
4
+ version: 0.1.3
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-05-15 00:00:00.000000000 Z
12
+ date: 2012-05-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Gemset management
15
15
  email: