debian/0000755000000000000000000000000012246612531007170 5ustar debian/control0000644000000000000000000000314012246612324010571 0ustar Source: ruby-git Section: ruby Priority: optional Maintainer: Michael Schutte Uploaders: Paul van Tilburg Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.3) Build-Depends-Indep: rdoc Standards-Version: 3.9.5 Homepage: http://github.com/schacon/ruby-git Vcs-Git: git://anonscm.debian.org/users/michi/ruby-git.git Vcs-Browser: http://anonscm.debian.org/?p=users/michi/ruby-git.git;a=summary XS-Ruby-Versions: all Package: ruby-git Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, git Replaces: libgit-ruby (<< 1.2.5-2), libgit-ruby1.8 (<< 1.2.5-2) Breaks: libgit-ruby (<< 1.2.5-2), libgit-ruby1.8 (<< 1.2.5-2) Provides: libgit-ruby, libgit-ruby1.8 Description: Ruby interface to the Git revision control system Ruby/Git allows Ruby applications to access and manipulate Git repositories. It provides an object-oriented interface to Git’s data storage system and is capable of reading from and writing to the index, managing branches, or obtaining information about the history of a project. Package: libgit-ruby Section: oldlibs Priority: extra Architecture: all Depends: ruby-git, ${misc:Depends} Description: Transitional package for ruby-git This is a dummy transitional package to facilitate upgrades to ruby-git. It can be safely removed. Package: libgit-ruby1.8 Section: oldlibs Priority: extra Architecture: all Depends: ruby-git, ${misc:Depends} Description: Transitional package for ruby-git This is a dummy transitional package to facilitate upgrades to ruby-git. It can be safely removed. debian/rules0000755000000000000000000000110312246604157010250 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_clean: rm -f ruby-git.gemspec dh_auto_clean override_dh_installchangelogs: dh_installchangelogs History.txt debian/patches/0000755000000000000000000000000012246605624010624 5ustar debian/patches/no_color_pipes.diff0000644000000000000000000000404312246605230014462 0ustar Subject: Use “--no-color” on certain Git commands From: Michael Schutte Bug-Debian: http://bugs.debian.org/592673 “color.* = always” settings in the users’ Git configuration messes up ruby-git’s parsing of the output of commands like “git branch” and “git diff”. Avoid the problem by overriding this behaviour through the “--no-color” switch. Index: devel/lib/git/lib.rb =================================================================== --- devel.orig/lib/git/lib.rb 2013-12-01 11:02:49.000000000 +0100 +++ devel/lib/git/lib.rb 2013-12-01 11:02:49.000000000 +0100 @@ -202,7 +202,7 @@ def branches_all arr = [] - command_lines('branch', '-a').each do |b| + command_lines('branch', ['--no-color', '-a']).each do |b| current = (b[0, 2] == '* ') arr << [b.gsub('* ', '').strip, current] end @@ -227,7 +227,7 @@ def grep(string, opts = {}) opts[:object] ||= 'HEAD' - grep_opts = ['-n'] + grep_opts = ['--no-color', '-n'] grep_opts << '-i' if opts[:ignore_case] grep_opts << '-v' if opts[:invert_match] grep_opts << '-e' @@ -246,7 +246,7 @@ end def diff_full(obj1 = 'HEAD', obj2 = nil, opts = {}) - diff_opts = ['-p'] + diff_opts = ['--no-color', '-p'] diff_opts << obj1 diff_opts << obj2 if obj2.is_a?(String) diff_opts << '--' << opts[:path_limiter] if opts[:path_limiter].is_a? String @@ -255,7 +255,7 @@ end def diff_stats(obj1 = 'HEAD', obj2 = nil, opts = {}) - diff_opts = ['--numstat'] + diff_opts = ['--no-color', '--numstat'] diff_opts << obj1 diff_opts << obj2 if obj2.is_a?(String) diff_opts << '--' << opts[:path_limiter] if opts[:path_limiter].is_a? String @@ -521,7 +521,7 @@ def unmerged unmerged = [] - command_lines('diff', ["--cached"]).each do |line| + command_lines('diff', ['--no-color', "--cached"]).each do |line| unmerged << $1 if line =~ /^\* Unmerged path (.*)/ end unmerged debian/patches/series0000644000000000000000000000002412246605624012035 0ustar no_color_pipes.diff debian/changelog0000644000000000000000000000551612246612375011057 0ustar ruby-git (1.2.6-1) unstable; urgency=low * New upstream version. - Fully supports Ruby 2.0; drop requirement on Ruby 1.8 through XS-Ruby-Versions, closes: #730887. - Install README.md instead of README. * Rename patches/no_color_pipes to patches/no_color_pipes.diff and update. * Bump Standards-Version to 3.9.5, no changes needed. * Use the anonscm.debian.org hostname in Vcs-* URLs. * Point to the correct URL for the 1.0 machine-readable copyright spec in debian/copyright. * Depend on git instead of git-core. * Make transitional packages Priority: extra. -- Michael Schutte Sun, 01 Dec 2013 11:52:43 +0100 ruby-git (1.2.5-2) unstable; urgency=low * Rename to ruby-git and switch to dh_ruby packaging, see . * Drop the API documentation according to the decision reported there. * Point Vcs-* to the renamed repo. * Turn libgit-ruby{,1.8} into empty transitional packages, taking over the entire libgit-ruby source package. * Update debian/copyright to the frozen revision of DEP 5. * Bump Standards-Version to 3.9.2, no changes needed. -- Michael Schutte Sun, 12 Jun 2011 10:51:37 +0200 libgit-ruby (1.2.5-1) unstable; urgency=low * New upstream version. * New patch no_color_pipes, closes: #592673. Use the “--no-color” switch on commands like “git branch” and “git diff” to avoid problems in parsing their output when “color.* = always”. * Convert package to the 3.0 (quilt) source format. * Use debhelper 7.0.50 override features in debian/rules, adjust build-dependency accordingly. * Move libgit-ruby to section ruby (formerly libs). * Change description so the package cannot be mistaken for a pure Ruby implementation of Git. * Use githubredir in the watchfile as no tarballs are provided by upstream (gems are the primary path of distribution). * Change the maintainer e-mail address in control and copyright. * Remove Homepage: field from debian/control (seems to be gone). * Simplify debian/copyright to the current DEP-5 draft. * Distinguish libgit-ruby{,1.8} in their short descriptions. * Add ${misc:Depends}. * Bump Standards-Version to 3.9.1, no changes needed. * Update Vcs-* headers (changed username on Alioth). * Document quilt patches according to DEP-3. -- Michael Schutte Wed, 16 Feb 2011 14:21:15 +0100 libgit-ruby (1.0.7-2) unstable; urgency=low * Depend on git-core, closes: #486681. * Add Paul van Tilburg to Uploaders. * Bump Standards-Version to 3.8.0 (no changes needed). -- Michael Schutte Sun, 22 Jun 2008 16:16:00 +0200 libgit-ruby (1.0.7-1) unstable; urgency=low * Initial release, closes: #483002. -- Michael Schutte Wed, 04 Jun 2008 20:45:47 +0200 debian/watch0000644000000000000000000000016412246604157010227 0ustar version=3 http://githubredir.debian.net/githubredir.cgi?author=schacon&project=ruby-git .*ruby-git/v?(.*)\.tar\.gz$ debian/ruby-git.docs0000644000000000000000000000001212246611440011573 0ustar README.md debian/source/0000755000000000000000000000000012246604157010475 5ustar debian/source/format0000644000000000000000000000001412246604157011703 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212246604157010373 0ustar 7 debian/copyright0000644000000000000000000000261312246606442011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Ruby/Git Upstream-Contact: Scott Chacon Source: http://github.com/schacon/ruby-git/ Files: * Copyright: © 2007-2009 Scott Chacon License: MIT Files: debian/* Copyright: © 2008-2013 Michael Schutte License: MIT License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.