lib/rvmpow.rb in rvmpow-0.0.3 vs lib/rvmpow.rb in rvmpow-0.0.4
- old
+ new
@@ -142,10 +142,10 @@
def rvmInfo
rvm = {}
rg = `rvm-prompt`
if !rg.include?('@')
- rvm[:ruby] = rg.chomp
+ rvm[:ruby] = rg.chomp.split('-')[1]
rvm[:gemset] = ''
else
rvmArray = rg.chomp.split('@')
rvm[:ruby] = rvmArray[0].split('-')[1]
rvm[:gemset] = rvmArray[1]
\ No newline at end of file