Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > d23b094cf0cf990f39431223c02c92fe > files > 2

rubygem-linecache-0.43-3.fc13.src.rpm

--- lib/tracelines.rb.fedora	2009-11-17 01:58:10.000000000 +0900
+++ lib/tracelines.rb	2009-11-17 02:17:25.000000000 +0900
@@ -9,7 +9,12 @@
     require File.join(@@SRC_DIR, '..', 'ext', 'trace_nums')
   rescue LoadError
     # MSWindows seems to put this in lib rather than ext.
-    require File.join(@@SRC_DIR, '..', 'lib', 'trace_nums')
+    begin
+      require File.join(@@SRC_DIR, '..', 'lib', 'trace_nums')
+    rescue LoadError
+      # Fedora moves trace_nums.so into ruby_sitearch
+      require 'trace_nums.so'
+    end
   end
 
   # Return an array of lines numbers that could be