yard-nowpunk 0.2.23 → 0.2.24

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.23
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
  &mdash; <%= 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="Email">
60
- <input class="span2" type="password" placeholder="Password">
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "yard-nowpunk"
8
- s.version = "0.2.23"
8
+ s.version = "0.2.24"
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.23
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: -104355848987316212
102
+ hash: -3944095386554140929
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  none: false
105
105
  requirements: