1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
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: devel/bin/ti
===================================================================
--- devel.orig/bin/ti 2013-06-27 18:00:38.000000000 +0200
+++ devel/bin/ti 2013-06-27 18:00:38.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: devel/bin/ticgitweb
===================================================================
--- devel.orig/bin/ticgitweb 2013-06-27 18:00:38.000000000 +0200
+++ devel/bin/ticgitweb 2013-06-27 18:00:38.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: devel/lib/ticgit-ng.rb
===================================================================
--- devel.orig/lib/ticgit-ng.rb 2013-06-27 18:00:38.000000000 +0200
+++ devel/lib/ticgit-ng.rb 2013-06-27 18:01:14.000000000 +0200
@@ -5,13 +5,13 @@
require 'set'
require 'yaml'
require 'pp'
+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'
|