Sha256: 3ba9e1c58dc759a7fb406c41e4bbc3193cc9b4e2ffdb70c4c4783dc483400f03

Contents?: true

Size: 923 Bytes

Versions: 1

Compression:

Stored size: 923 Bytes

Contents

# encoding: utf-8
require "yaml"
require "erb"
require "ostruct"
require "rexml/streamlistener"
require "rexml/document"

begin
  require "active_support/all"
rescue LoadError
  require "active_support"
end

$:.unshift File.dirname(__FILE__)

require "kitabu/base"
require "kitabu/toc"
require "kitabu/syntax"
require "kitabu/templates"

vendor = File.dirname(__FILE__) + "/kitabu/vendor/"

dir = RUBY_VERSION =~ /^1.9/ ? "ruby1.9" : "ruby1.8"

$:.unshift File.join(vendor, dir, "plist")
$:.unshift File.join(vendor, dir, "textpow")
$:.unshift File.join(vendor, dir, "uv")
$:.unshift File.join(vendor, "colorize")

begin
  require "nokogiri"
rescue LoadError
  nil
end

begin
  require "hpricot"
rescue LoadError
  nil
end unless defined?(Nokogiri)

require "colorize"

begin
  require "plist"
  require "textpow"
  require "uv"
rescue LoadError => e
  NO_SYNTAX_HIGHLIGHT = true
end

module Kitabu
  VERSION = "0.4.7"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kitabu-0.4.7 lib/kitabu.rb