require "dimensions"
require "nokogiri"
require "xml/xslt"
require "zip"

require "rodt/image"
require "rodt/odt"
require "rodt/version"

module Rodt
  XHTML2ODT_XSL = File.join(File.dirname(__FILE__), "..", "xsl", "xhtml2odt.xsl")
  XHTML2ODT_STYLES_XSL = File.join(File.dirname(__FILE__), "..", "xsl", "styles.xsl")
  ODT_TEMPLATE  = File.join(File.dirname(__FILE__), "..", "odt", "template.odt")
end

require "dimensions"
require "nokogiri"
require "xml/xslt"
require "zip"

module Rodt
  XHTML2ODT_XSL = File.join(File.dirname(__FILE__), "..", "xsl", "xhtml2odt.xsl")
  XHTML2ODT_STYLES_XSL = File.join(File.dirname(__FILE__), "..", "xsl", "styles.xsl")
  ODT_TEMPLATE  = File.join(File.dirname(__FILE__), "..", "odt", "template.odt")
end

require "rodt/image"
require "rodt/odt"
require "rodt/version"

Make sure to define module before extending it
Make sure to define module before extending it

This enables loading the code without rubygems/bundler, i.e. executing the gemspec, e.g. when executing a single test file.