about summary refs log tree commit homepage
path: root/lib/olddoc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/olddoc.rb')
-rw-r--r--lib/olddoc.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/olddoc.rb b/lib/olddoc.rb
new file mode 100644
index 0000000..f230cbf
--- /dev/null
+++ b/lib/olddoc.rb
@@ -0,0 +1,21 @@
+# Copyright (C) 2015, all contributors <olddoc-public@80x24.org>
+# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
+module Olddoc
+  VERSION = '1.0.0'
+
+  autoload :Changelog, 'olddoc/changelog'
+  autoload :Gemspec, 'olddoc/gemspec'
+  autoload :History, 'olddoc/history'
+  autoload :Merge, 'olddoc/merge'
+  autoload :NewsAtom, 'olddoc/news_atom'
+  autoload :NewsRdoc, 'olddoc/news_rdoc'
+  autoload :Prepare, 'olddoc/prepare'
+  autoload :Readme, 'olddoc/readme'
+
+  def self.config(path = ".olddoc.yml")
+    File.readable?(path) and return YAML.load(File.read(path))
+    warn "#{path} not found in current directory"
+    {}
+  end
+end
+require_relative 'oldweb'