yard-nowpunk 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/yard-nowpunk.rb +11 -1
- data/templates/default/module/html/defines.erb +3 -0
- data/yard-nowpunk.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/lib/yard-nowpunk.rb
CHANGED
@@ -1,3 +1,13 @@
|
|
1
1
|
YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/../templates'
|
2
2
|
|
3
|
-
|
3
|
+
url = File.read(".git/config").match(/url = git:\/\/(.*).git/)[1]
|
4
|
+
|
5
|
+
YARD::Templates::Engine.class_eval do
|
6
|
+
define_method :github_url do
|
7
|
+
"http://" + url
|
8
|
+
end
|
9
|
+
|
10
|
+
define_method :github_master do
|
11
|
+
github_url + "/tree/master/"
|
12
|
+
end
|
13
|
+
end
|
@@ -1,3 +1,6 @@
|
|
1
|
+
URL : <%= YARD::Templates::Engine.github_url %>
|
2
|
+
Master : <%= YARD::Templates::Engine.github_master %>
|
3
|
+
|
1
4
|
<%= object.file ? object.file : '(unknown)' %><% if object.files.size > 1 %><span class="defines">,<br />
|
2
5
|
<%= object.files[1..-1].map {|f| f.first }.join(",<br /> ") %></span>
|
3
6
|
<% 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.3
|
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: 144150703882603657
|
99
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
100
|
none: false
|
101
101
|
requirements:
|