Sha256: c52b22e698a784091d9c0d0da9ea3491136237ef759416dce1228450b1723161
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
require "active_support/all" require "digest/md5" require "eeepub" require "erb" require "logger" require "nokogiri" require "notifier" require "open3" require "optparse" require "ostruct" require "tempfile" require "pathname" require "thor" require "thor/group" require "yaml" require "cgi" require "erb" require "redcarpet" require "rouge" require "rouge/plugins/redcarpet" require "sass" require "sass-globbing" I18n.enforce_available_locales = false Encoding.default_internal = "utf-8" Encoding.default_external = "utf-8" module Kitabu ROOT = Pathname.new(File.dirname(__FILE__) + "/..") require "kitabu/extensions/string" require "kitabu/extensions/rouge" require "kitabu/errors" require "kitabu/version" require "kitabu/generator" require "kitabu/toc" require "kitabu/cli" require "kitabu/markdown" require "kitabu/parser" require "kitabu/exporter" require "kitabu/stream" require "kitabu/dependency" require "kitabu/stats" require "kitabu/helpers" def self.config(root_dir = nil) root_dir ||= Pathname.new(Dir.pwd) path = root_dir.join("config/kitabu.yml") raise "Invalid Kitabu directory; couldn't found config/kitabu.yml file." unless File.file?(path) content = File.read(path) erb = ERB.new(content).result YAML.load(erb).with_indifferent_access end def self.logger @logger ||= Logger.new(File.open("/tmp/kitabu.log", "a")) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kitabu-2.0.0 | lib/kitabu.rb |