Sha256: 779db54e83215db17d6ddd8cdc1760a65e6c65c3392bfb1170b9d164e270b52b
Contents?: true
Size: 1.39 KB
Versions: 2
Compression:
Stored size: 1.39 KB
Contents
# require "bookmaker/version" require "active_support/all" #require "awesome_print" 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" module Bookmaker require "bookmaker/extensions/string" ROOT = Pathname.new(File.dirname(__FILE__) + "/..") autoload :Cli, "bookmaker/cli" autoload :Dependency, "bookmaker/dependency" autoload :Exporter, "bookmaker/exporter" autoload :Generator, "bookmaker/generator" autoload :Markdown, "bookmaker/adapters/markdown" autoload :Parser, "bookmaker/parser" autoload :Stats, "bookmaker/stats" autoload :Stream, "bookmaker/stream" autoload :TOC, "bookmaker/toc" autoload :Version, "bookmaker/version" Encoding.default_internal = "utf-8" Encoding.default_external = "utf-8" def self.config(root_dir = nil) root_dir ||= Pathname.new(Dir.pwd) path = root_dir.join("_bookmaker.yml") raise "Invalid Bookmaker directory; couldn't found #{path} 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/bookmaker.log", "a")) end def self.hi puts "hi" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bookmaker-0.6.0 | lib/bookmaker.rb |
bookmaker-0.5.5 | lib/bookmaker.rb |