Sha256: c658cb40c898e02d6030446d5ff780fcdc9533cee1e132dcca1b16a848de01d7

Contents?: true

Size: 397 Bytes

Versions: 17

Compression:

Stored size: 397 Bytes

Contents

::YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/../templates'

class YARD::Nowpunk
  class << self
    def parse_github_url_from_git_config
      File.read(".git/config").match(/url = git:\/\/(.*).git/)[1]
    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

17 entries across 17 versions & 1 rubygems

Version Path
yard-nowpunk-0.2.23 lib/yard-nowpunk.rb
yard-nowpunk-0.2.22 lib/yard-nowpunk.rb
yard-nowpunk-0.2.21 lib/yard-nowpunk.rb
yard-nowpunk-0.2.20 lib/yard-nowpunk.rb
yard-nowpunk-0.2.19 lib/yard-nowpunk.rb
yard-nowpunk-0.2.18 lib/yard-nowpunk.rb
yard-nowpunk-0.2.17 lib/yard-nowpunk.rb
yard-nowpunk-0.2.16 lib/yard-nowpunk.rb
yard-nowpunk-0.2.15 lib/yard-nowpunk.rb
yard-nowpunk-0.2.14 lib/yard-nowpunk.rb
yard-nowpunk-0.2.13 lib/yard-nowpunk.rb
yard-nowpunk-0.2.12 lib/yard-nowpunk.rb
yard-nowpunk-0.2.11 lib/yard-nowpunk.rb
yard-nowpunk-0.2.10 lib/yard-nowpunk.rb
yard-nowpunk-0.2.9 lib/yard-nowpunk.rb
yard-nowpunk-0.2.8 lib/yard-nowpunk.rb
yard-nowpunk-0.2.7 lib/yard-nowpunk.rb