Skip to content

Commit 64c6fa0

Browse files
authored
Update gemspec (ruby-git#366)
* Update gemspec - Fix homepage URL - Get the version from version.rb (less duplication) Closes ruby-git#341 * Update README.md URLs also
1 parent b48231e commit 64c6fa0

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Library for using Git in Ruby.
66

77
Git public hosting of the project source code is at:
88

9-
http://github.com/schacon/ruby-git
9+
http://github.com/ruby-git/ruby-git
1010

1111
## Install
1212

@@ -17,9 +17,8 @@ You can install Ruby/Git like this:
1717
## Code Status
1818

1919
* [![Build Status](https://travis-ci.org/ruby-git/ruby-git.svg?branch=master)](https://travis-ci.org/ruby-git/ruby-git)
20-
* [![Code Climate](https://codeclimate.com/github/schacon/ruby-git.png)](https://codeclimate.com/github/schacon/ruby-git)
20+
* [![Code Climate](https://codeclimate.com/github/ruby-git/ruby-git.png)](https://codeclimate.com/github/ruby-git/ruby-git)
2121
* [![Gem Version](https://badge.fury.io/rb/git.png)](http://badge.fury.io/rb/git)
22-
* [![Dependencies](https://gemnasium.com/schacon/ruby-git.png?travis)](https://gemnasium.com/schacon/ruby-git)
2322

2423
## Major Objects
2524

@@ -155,7 +154,7 @@ Here are the operations that need read permission only.
155154
g.show('HEAD')
156155
g.show('v2.8', 'README.md')
157156

158-
Git.ls_remote('https://github.com/schacon/ruby-git.git') # returns a hash containing the available references of the repo.
157+
Git.ls_remote('https://github.com/ruby-git/ruby-git.git') # returns a hash containing the available references of the repo.
159158
Git.ls_remote('/path/to/local/repo')
160159
Git.ls_remote() # same as Git.ls_remote('.')
161160

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)