Sha256: bde86f650c34394959ee172282e170998f88c369446b2745ac88213058b2b01e
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 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 def parse_github_url_from_git_config Git.open(Dir.pwd).config["remote.origin.url"].gsub("git://", "").gsub("git@", "") 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yard-nowpunk-0.2.27 | lib/yard-nowpunk.rb |