Sha256: da5eb95de52966ef29d4781534dfd21041cf2e52def13984ed6a9f01166d57f5
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
::YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/../templates' # TODO (farleyknight@gmail.com): Rename this to yard-github class YARD::Nowpunk class << self # TODO (farleyknight@gmail.com): Possibly use git gem to grab this value. def parse_github_url_from_git_config File.read(".git/config").match(/url = git:\/\/(.*).git/)[1] end def project_name parse_github_url_from_git_config.match(/github\.com\/(.*)\/(.*)/)[2] end def github_url "http://" + parse_github_url_from_git_config end def github_master github_url + "/tree/master/" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yard-nowpunk-0.2.26 | lib/yard-nowpunk.rb |
yard-nowpunk-0.2.25 | lib/yard-nowpunk.rb |
yard-nowpunk-0.2.24 | lib/yard-nowpunk.rb |