Permalink
Browse files

Changed the way to get the current RVM version.

  • Loading branch information...
1 parent 15c5837 commit 13e2c0a7a9383e937b94dc5e0b49f82602bdf1e8 @carlosbrando carlosbrando committed Jun 9, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Support/lib/rvm/rvm.rb
View
@@ -6,7 +6,7 @@
module TextMate
class RVM
- CURRENT_RVM_VERSION = "0.1.37"
+ CURRENT_RVM_VERSION = "0.1.38"
BUTTON_OK = '1'
BUTTON_NEW_GEMSET = '3'
@@ -42,7 +42,7 @@ def installed?
def version
@version ||= if installed?
rvm_version = File.open("#{TextMate.project_directory}/.rvmrc").read
- rvm_version.sub('rvm use', '').strip
+ rvm_version[/use\s+(.*)/, 1].gsub('"', '')
end
return @version

0 comments on commit 13e2c0a

Please sign in to comment.