arsh 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/libs/rvm.rb +2 -2
- data/libs/version.rb +1 -1
- metadata +3 -3
data/libs/rvm.rb
CHANGED
@@ -3,7 +3,7 @@ module ArshCommands
|
|
3
3
|
command = command.is_a?(Array) ? command.join(' ') : command
|
4
4
|
case command
|
5
5
|
when /^use /
|
6
|
-
@output = %x{bash -c "source #{ENV['
|
6
|
+
@output = %x{bash -c "source #{ENV['HOME']}/.rvm/scripts/rvm; rvm #{command}; env | grep -i rvm"}
|
7
7
|
@output.split("\n").select { |l| l[/=/] }.each do |n|
|
8
8
|
var, value = n.split(/=/,2)
|
9
9
|
ENV[var] = value
|
@@ -15,7 +15,7 @@ module ArshCommands
|
|
15
15
|
Process.fork do
|
16
16
|
pid = Process.pid
|
17
17
|
print "\n"
|
18
|
-
exec %Q{bash -c "source #{ENV['
|
18
|
+
exec %Q{bash -c "source #{ENV['HOME']}/.rvm/scripts/rvm; rvm #{command}"}
|
19
19
|
end
|
20
20
|
Process.waitpid(pid.to_i)
|
21
21
|
end
|
data/libs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ date: 2012-01-18 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rb-readline
|
18
|
-
requirement: &
|
18
|
+
requirement: &7508760 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *7508760
|
27
27
|
description: Provides a shell that can run pure Ruby code as well as ordinary linux
|
28
28
|
commands.
|
29
29
|
email:
|