Skip to content
Browse files

Undef source_index safely

  • Loading branch information...
1 parent c2f276c commit 8406cd7ada637a0eda4c17429dd2e4caf3d06902 @lsegal committed Aug 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/yard/rubygems/backports/gem.rb
View
2 lib/yard/rubygems/backports/gem.rb
@@ -1,6 +1,6 @@
module Gem
class << self
- undef source_index
+ undef source_index if method_defined?(:source_index)
# Returns the Gem::SourceIndex of specifications that are in the Gem.path
def source_index
@@source_index ||= SourceIndex.from_installed_gems

0 comments on commit 8406cd7

Please sign in to comment.
Something went wrong with that request. Please try again.