Skip to content

Commit

Permalink
Rescue was failing. Changed the rescue to rescue LoadError specifical…
Browse files Browse the repository at this point in the history
…ly. Also added require line for 1.9 to replace rdoc/ri/ri_paths

Signed-off-by: Jake Scruggs <jake.scruggs@gmail.com>
  • Loading branch information
Scyllinice authored and jscruggs committed Jul 14, 2009
1 parent dcf9bde commit 55b5476
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vendor/saikuro/saikuro.rb
Expand Up @@ -1108,8 +1108,10 @@ def Saikuro.analyze(files, state_formater, token_count_formater, output_dir)
begin begin
require 'rdoc/ri/ri_paths' require 'rdoc/ri/ri_paths'
require 'rdoc/usage' require 'rdoc/usage'
rescue rescue LoadError
# these requires cause problems in Ruby 1.9x that I'm not really sure how to fix # these requires cause problems in Ruby 1.9x that I'm not really sure how to fix
require 'rdoc/ri/paths'
#Still not sure what the equivalent of rdoc/usage is. I know it has been removed from 1.9
end end
include ResultIndexGenerator include ResultIndexGenerator


Expand Down

0 comments on commit 55b5476

Please sign in to comment.