yard-nowpunk 0.2.23 → 0.2.24
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 +6 -0
- data/templates/default/layout/html/layout.erb +3 -3
- data/yard-nowpunk.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.24
|
data/lib/yard-nowpunk.rb
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
::YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/../templates'
|
|
2
2
|
|
|
3
|
+
# TODO (farleyknight@gmail.com): Rename this to yard-github
|
|
3
4
|
class YARD::Nowpunk
|
|
4
5
|
class << self
|
|
6
|
+
# TODO (farleyknight@gmail.com): Possibly use git gem to grab this value.
|
|
5
7
|
def parse_github_url_from_git_config
|
|
6
8
|
File.read(".git/config").match(/url = git:\/\/(.*).git/)[1]
|
|
7
9
|
end
|
|
8
10
|
|
|
11
|
+
def project_name
|
|
12
|
+
parse_github_url_from_git_config.match(/github\.com\/(.*)\/(.*)/)[2]
|
|
13
|
+
end
|
|
14
|
+
|
|
9
15
|
def github_url
|
|
10
16
|
"http://" + parse_github_url_from_git_config
|
|
11
17
|
end
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=<%= charset %>" />
|
|
9
9
|
<title>
|
|
10
|
+
<%= YARD::Nowpunk.project_name %> -
|
|
10
11
|
<%= h @page_title %>
|
|
11
12
|
<% if options.title && @page_title != options.title %>
|
|
12
13
|
— <%= h options.title %>
|
|
@@ -56,9 +57,8 @@
|
|
|
56
57
|
</li>
|
|
57
58
|
</ul>
|
|
58
59
|
<form class="navbar-form pull-right">
|
|
59
|
-
<input class="span2" type="text" placeholder="
|
|
60
|
-
<
|
|
61
|
-
<button type="submit" class="btn">Sign in</button>
|
|
60
|
+
<input class="span2" type="text" placeholder="Search">
|
|
61
|
+
<button type="submit" class="btn">Go</button>
|
|
62
62
|
</form>
|
|
63
63
|
</div><!--/.nav-collapse -->
|
|
64
64
|
</div>
|
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.24
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -99,7 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
99
99
|
version: '0'
|
|
100
100
|
segments:
|
|
101
101
|
- 0
|
|
102
|
-
hash: -
|
|
102
|
+
hash: -3944095386554140929
|
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
none: false
|
|
105
105
|
requirements:
|