Sha256: fb902d212c1dc405c7c949c1f087de90b30b9e8389807deb3fc5b0d4635c5491
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
require "active_support/all" require 'fileutils' require "eeepub" require "erb" require "logger" require "nokogiri" require "notifier" require "open3" require "optparse" require "ostruct" require "tempfile" require "kramdown" require "pathname" require "thor" require "thor/group" require "yaml" require "cgi" require 'psych' require "safe_yaml" module Verku ROOT = Pathname.new(File.dirname(__FILE__) + "/..") require "verku/extensions/string" require "verku/cli" require "verku/dependency" require "verku/exporter" require "verku/exporter/base" require "verku/exporter/pdf" require "verku/exporter/html" require "verku/exporter/epub" require "verku/exporter/mobi" require "verku/generator" require "verku/stats" require "verku/stream" require "verku/toc" require 'verku/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("_verku.yml") raise "Invalid Verku directory; couldn't found #{path} file." unless File.file?(path) content = File.read(path) erb = ERB.new(content).result SafeYAML::OPTIONS[:default_mode] = true YAML.load(erb, :safe => true) end def self.logger @logger ||= Logger.new(File.open("/tmp/verku.log", "a")) end def self.hi puts "hi" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
verku-0.16.10 | lib/verku.rb |
verku-0.16.9 | lib/verku.rb |