yard-nowpunk 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
data/lib/yard-nowpunk.rb CHANGED
@@ -1,15 +1,17 @@
1
1
  ::YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/../templates'
2
2
 
3
- class YARD::Nowpunk; end
3
+ class YARD::Nowpunk
4
+ class << self
5
+ def parse_github_url_from_git_config
6
+ File.read(".git/config").match(/url = git:\/\/(.*).git/)[1]
7
+ end
4
8
 
5
- url = File.read(".git/config").match(/url = git:\/\/(.*).git/)[1]
9
+ def github_url
10
+ "http://" + parse_github_url_from_git_config
11
+ end
6
12
 
7
- YARD::Nowpunk.instance_eval do
8
- define_method :github_url do
9
- "http://" + url
10
- end
11
-
12
- define_method :github_master do
13
- github_url + "/tree/master/"
13
+ def github_master
14
+ github_url + "/tree/master/"
15
+ end
14
16
  end
15
17
  end
data/yard-nowpunk.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "yard-nowpunk"
8
- s.version = "0.2.6"
8
+ s.version = "0.2.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Farley Knight"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yard-nowpunk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -95,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  segments:
97
97
  - 0
98
- hash: 2978510322033082246
98
+ hash: 830109377216466356
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  none: false
101
101
  requirements: