Subject: Don’t require 'rubygems'
From: Michael Schutte <michi@debian.org>

Debian packages are available for all used Ruby libraries.  The Rubygems
system is not needed.

Index: ticgit/bin/ti
===================================================================
--- ticgit.orig/bin/ti	2011-07-15 14:39:00.000000000 +0200
+++ ticgit/bin/ti	2011-07-15 14:39:23.000000000 +0200
@@ -1,5 +1,4 @@
 #!/usr/bin/env ruby
-require 'rubygems'
 require 'fileutils'
 
 # Add the library from the source tree to the front of the load path.
Index: ticgit/bin/ticgitweb
===================================================================
--- ticgit.orig/bin/ticgitweb	2011-07-15 14:39:00.000000000 +0200
+++ ticgit/bin/ticgitweb	2011-07-15 14:39:08.000000000 +0200
@@ -13,7 +13,7 @@
 # which is important when testing multiple branches of development.
 $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
 
-%w(rubygems sinatra git ticgit-ng haml sass).each do |dependency|
+%w(sinatra git ticgit-ng haml sass).each do |dependency|
   begin
     require dependency
   rescue LoadError => e
Index: ticgit/lib/ticgit-ng.rb
===================================================================
--- ticgit.orig/lib/ticgit-ng.rb	2011-07-15 14:38:58.000000000 +0200
+++ ticgit/lib/ticgit-ng.rb	2011-07-15 14:39:08.000000000 +0200
@@ -4,13 +4,13 @@
 require 'ostruct'
 require 'set'
 require 'yaml'
+require 'rbconfig'
 
 # Add the directory containing this file to the start of the load path if it
 # isn't there already.
 $:.unshift(File.dirname(__FILE__)) unless
   $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
 
-require 'rubygems'
 # requires git >= 1.0.5
 require 'git'
 
