yard-nowpunk 0.2.26 → 0.2.27

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,6 +3,9 @@ source "http://rubygems.org"
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
5
 
6
+
7
+ gem "ruby-git", :require => "git"
8
+
6
9
  # Add dependencies to develop your gem here.
7
10
  # Include everything needed to run rake, tests, features, etc.
8
11
  group :development do
data/Gemfile.lock CHANGED
@@ -11,6 +11,7 @@ GEM
11
11
  rake (10.0.3)
12
12
  rdoc (3.12)
13
13
  json (~> 1.4)
14
+ ruby-git (0.2.2)
14
15
  yard (0.8.3)
15
16
 
16
17
  PLATFORMS
@@ -19,4 +20,5 @@ PLATFORMS
19
20
  DEPENDENCIES
20
21
  bundler
21
22
  jeweler (~> 1.8.4)
23
+ ruby-git
22
24
  yard
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.26
1
+ 0.2.27
data/lib/yard-nowpunk.rb CHANGED
@@ -3,9 +3,8 @@
3
3
  # TODO (farleyknight@gmail.com): Rename this to yard-github
4
4
  class YARD::Nowpunk
5
5
  class << self
6
- # TODO (farleyknight@gmail.com): Possibly use git gem to grab this value.
7
6
  def parse_github_url_from_git_config
8
- File.read(".git/config").match(/url = git:\/\/(.*).git/)[1]
7
+ Git.open(Dir.pwd).config["remote.origin.url"].gsub("git://", "").gsub("git@", "")
9
8
  end
10
9
 
11
10
  def project_name
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.26"
8
+ s.version = "0.2.27"
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"]
@@ -45,15 +45,18 @@ Gem::Specification.new do |s|
45
45
  s.specification_version = 3
46
46
 
47
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
+ s.add_runtime_dependency(%q<ruby-git>, [">= 0"])
48
49
  s.add_development_dependency(%q<yard>, [">= 0"])
49
50
  s.add_development_dependency(%q<bundler>, [">= 0"])
50
51
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
51
52
  else
53
+ s.add_dependency(%q<ruby-git>, [">= 0"])
52
54
  s.add_dependency(%q<yard>, [">= 0"])
53
55
  s.add_dependency(%q<bundler>, [">= 0"])
54
56
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
55
57
  end
56
58
  else
59
+ s.add_dependency(%q<ruby-git>, [">= 0"])
57
60
  s.add_dependency(%q<yard>, [">= 0"])
58
61
  s.add_dependency(%q<bundler>, [">= 0"])
59
62
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
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.26
4
+ version: 0.2.27
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,6 +11,22 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2012-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: ruby-git
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: yard
16
32
  requirement: !ruby/object:Gem::Requirement
@@ -99,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
115
  version: '0'
100
116
  segments:
101
117
  - 0
102
- hash: 504478564603962801
118
+ hash: 667567213909708679
103
119
  required_rubygems_version: !ruby/object:Gem::Requirement
104
120
  none: false
105
121
  requirements: