Created
          November 18, 2010 14:05 
        
      - 
      
- 
        Save sunny/705002 to your computer and use it in GitHub Desktop. 
    Load libraries in ruby or retry with rubygems
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | retried = false | |
| begin | |
| require 'foo' | |
| require 'bar' | |
| require 'spam' | |
| rescue LoadError => e | |
| raise if retried | |
| require 'rubygems' | |
| retried = true | |
| retry | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment