Skip to content

Commit b40dd6f

Browse files
committed
Update gemspec
- Fix homepage URL - Get the version from version.rb (less duplication) Closes #341
1 parent b48231e commit b40dd6f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

git.gemspec

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1+
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
2+
require 'git/version'
3+
14
Gem::Specification.new do |s|
2-
s.authors = ['Scott Chacon']
3-
s.date = '2016-02-25'
5+
s.author = 'Scott Chacon and others'
46
s.email = 'schacon@gmail.com'
5-
s.homepage = 'http://github.com/schacon/ruby-git'
7+
s.homepage = 'http://github.com/ruby-git/ruby-git'
68
s.license = 'MIT'
79
s.name = 'git'
810
s.summary = 'Ruby/Git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git binary.'
9-
s.version = '1.3.0'
11+
s.version = Git::VERSION
1012

1113
s.require_paths = ['lib']
1214
s.required_ruby_version = '>= 1.9'
13-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
15+
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to?(:required_rubygems_version=)
1416
s.requirements = ['git 1.6.0.0, or greater']
1517

1618
s.add_development_dependency 'rake'

lib/git/version.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
module Git
2-
32
# The current gem version
43
# @return [String] the current gem version.
54
VERSION='1.3.0'
6-
75
end

0 commit comments

Comments
 (0)