Package: mhc / 1.1.1-2

010_rubygems.patch Patch series | download
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
Subject: Drop rubygems dependency
Author: Tatsuya Kinoshita <tats@debian.org>

diff --git a/bin/mhc b/bin/mhc
index f20174b..606e993 100755
--- a/bin/mhc
+++ b/bin/mhc
@@ -15,14 +15,14 @@ if File.symlink?(__FILE__) and ENV["RBENV_VERSION"]
   exec(File.readlink(__FILE__), *ARGV)
 end
 
-gemfile = File.expand_path("../../Gemfile", __FILE__)
-
-if File.exists?(gemfile + ".lock")
-  ENV["BUNDLE_GEMFILE"] = gemfile
-  require "bundler/setup"
-end
+#gemfile = File.expand_path("../../Gemfile", __FILE__)
+#
+#if File.exists?(gemfile + ".lock")
+#  ENV["BUNDLE_GEMFILE"] = gemfile
+#  require "bundler/setup"
+#end
 
-require "rubygems"
+#require "rubygems"
 require "thor"
 require "mhc"