lib/ox.rb in ox-2.14.11 vs lib/ox.rb in ox-2.14.12
- old
+ new
@@ -74,6 +74,11 @@
require 'ox/element'
require 'ox/document'
require 'ox/bag'
require 'ox/sax'
-require 'ox/ox' # C extension
+# C extension
+begin
+ require_relative 'ox.so'
+rescue LoadError
+ require 'ox/ox'
+end