Git 'dashed' commands are deprecated and no longer available with new installs from...
[git-blog.git] / lib / git-blog / core.rb
blobbcd6b3f166337b9cdfd2904228f27be240ea3eba
1 require 'rubygems'
2 require 'git' # Ruby/Git
3 require 'git-blog/core_ext'
5 module GitBlog
6   TitleRegexen = {
7     'xhtml'     => /^<[^>]+>(.*)<[^>]+>$/,
8     'haml'      => /^%[^\s\{]+(?:\{[^\}]\})? (.*)$/,
9     'textile'   => /^h\d(?:[^\s\{]|\{[^\}]*\})*\. (.*)$/,
10     'markdown'  => /^(.*)$/ # Also works for other
11   }
12   
13   # Returns the path of file relative to the git-blog root.
14   # 'Borrowed' mostly wholesale from Haml 2.0.0 d-:
15   # def self.Scope path
16   #   File.join(File.expand_path( File.dirname(__FILE__) / '..' / '..' ), path.to_s)
17   # end
18   # Fuck that, using a constant. LAWL.
19   Scope = File.expand_path( File.dirname(__FILE__) / '..' / '..' )
20 end
22 require 'git-blog/parsers'