old_contents: # -*- coding: utf-8 -*- 
  
  from __future__ import with_statement
  
  from revolver.core import run
  from revolver.tool import ruby_build
  from revolver.tool import ruby_rbenv
  
  def install(version, _update=True):
      ruby_rbenv.ensure()
      ruby_build.ensure()
  
      status = run("rbenv global %s; true" % version)           
      if not status == "" or _update:
          run("rbenv install %s" % version)      
          run("rbenv global %s" % version)           
  
      run("rbenv rehash")                        
      run("gem install bundler")                  
  
  def ensure(version):
      install(version, _update=False)
  
new_contents: # -*- coding: utf-8 -*- 
  
  from __future__ import with_statement
  
  from revolver.core import run
  from revolver.tool import ruby_build
  from revolver.tool import ruby_rbenv
  
  def install(version, _update=True):
      ruby_rbenv.ensure()
      ruby_build.ensure()
  
      status = run("rbenv global %s; true" % version)           
      if not status == "" or _update:
          run("rbenv install %s" % version)      
          run("rbenv global %s" % version)           
  
      run("rbenv rehash")                        
      run("gem install --no-ri --no-rdoc bundler")                  
  
  def ensure(version):
      install(version, _update=False)
  
subject: Install bundler with --no-(ri|rdoc) in tool.ruby