From b40dd6f44677d3d69494d56148a7c5440ca09ee5 Mon Sep 17 00:00:00 2001 From: Per Lundberg Date: Tue, 15 May 2018 18:45:30 +0300 Subject: [PATCH 1/2] Update gemspec - Fix homepage URL - Get the version from version.rb (less duplication) Closes #341 --- git.gemspec | 12 +++++++----- lib/git/version.rb | 2 -- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/git.gemspec b/git.gemspec index 5e90626e..bad8a496 100644 --- a/git.gemspec +++ b/git.gemspec @@ -1,16 +1,18 @@ +$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) +require 'git/version' + Gem::Specification.new do |s| - s.authors = ['Scott Chacon'] - s.date = '2016-02-25' + s.author = 'Scott Chacon and others' s.email = 'schacon@gmail.com' - s.homepage = 'http://github.com/schacon/ruby-git' + s.homepage = 'http://github.com/ruby-git/ruby-git' s.license = 'MIT' s.name = 'git' 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.' - s.version = '1.3.0' + s.version = Git::VERSION s.require_paths = ['lib'] s.required_ruby_version = '>= 1.9' - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= + s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to?(:required_rubygems_version=) s.requirements = ['git 1.6.0.0, or greater'] s.add_development_dependency 'rake' diff --git a/lib/git/version.rb b/lib/git/version.rb index 4f4add63..23fd03a5 100644 --- a/lib/git/version.rb +++ b/lib/git/version.rb @@ -1,7 +1,5 @@ module Git - # The current gem version # @return [String] the current gem version. VERSION='1.3.0' - end From 1962b763c40f7d571c5b70e5a9ceaeb05d138b28 Mon Sep 17 00:00:00 2001 From: Per Lundberg Date: Wed, 16 May 2018 08:25:04 +0300 Subject: [PATCH 2/2] Update README.md URLs also --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6758d5ee..7dc5682c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Library for using Git in Ruby. Git public hosting of the project source code is at: -http://github.com/schacon/ruby-git +http://github.com/ruby-git/ruby-git ## Install @@ -17,9 +17,8 @@ You can install Ruby/Git like this: ## Code Status * [![Build Status](https://travis-ci.org/ruby-git/ruby-git.svg?branch=master)](https://travis-ci.org/ruby-git/ruby-git) -* [![Code Climate](https://codeclimate.com/github/schacon/ruby-git.png)](https://codeclimate.com/github/schacon/ruby-git) +* [![Code Climate](https://codeclimate.com/github/ruby-git/ruby-git.png)](https://codeclimate.com/github/ruby-git/ruby-git) * [![Gem Version](https://badge.fury.io/rb/git.png)](http://badge.fury.io/rb/git) -* [![Dependencies](https://gemnasium.com/schacon/ruby-git.png?travis)](https://gemnasium.com/schacon/ruby-git) ## Major Objects @@ -155,7 +154,7 @@ Here are the operations that need read permission only. g.show('HEAD') g.show('v2.8', 'README.md') - Git.ls_remote('https://github.com/schacon/ruby-git.git') # returns a hash containing the available references of the repo. + Git.ls_remote('https://github.com/ruby-git/ruby-git.git') # returns a hash containing the available references of the repo. Git.ls_remote('/path/to/local/repo') Git.ls_remote() # same as Git.ls_remote('.')