Skip to content

Commit

Permalink
Changed the way to get the current RVM version.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosbrando committed Jun 9, 2010
1 parent 15c5837 commit 13e2c0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Support/lib/rvm/rvm.rb
Expand Up @@ -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'

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 13e2c0a

Please sign in to comment.