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 +1 -1
- data/lib/yard-nowpunk.rb +11 -9
- data/yard-nowpunk.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
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
|
|
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
|
-
|
|
9
|
+
def github_url
|
|
10
|
+
"http://" + parse_github_url_from_git_config
|
|
11
|
+
end
|
|
6
12
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
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.
|
|
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:
|
|
98
|
+
hash: 830109377216466356
|
|
99
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
none: false
|
|
101
101
|
requirements:
|