File: 01-dont-requires-rubygems.patch

package info (click to toggle)
libinline-ruby 3.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 180 kB
  • ctags: 147
  • sloc: ruby: 1,467; makefile: 8
file content (28 lines) | stat: -rw-r--r-- 830 bytes parent folder | 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
dont require rubygems

Index: libinline-ruby-3.8.3/lib/inline.rb
===================================================================
--- libinline-ruby-3.8.3.orig/lib/inline.rb	2009-12-06 00:50:06.000000000 +0100
+++ libinline-ruby-3.8.3/lib/inline.rb	2009-12-06 00:50:35.000000000 +0100
@@ -50,7 +50,6 @@
 require "rbconfig"
 require "digest/md5"
 require 'fileutils'
-require 'rubygems'
 
 require 'zentest_mapping'
 
@@ -71,13 +70,6 @@
   RUBINIUS = defined? RUBY_ENGINE
   DEV_NULL = (WINDOZE ? 'nul'      : '/dev/null')
   GEM      = (WINDOZE ? 'gem.bat'  : 'gem')
-  RAKE     = if WINDOZE then
-               'rake.bat'
-             elsif RUBINIUS then
-               File.join(Gem.bindir, 'rake')
-             else
-               "#{Gem.ruby} -S rake"
-             end
 
   warn "RubyInline v #{VERSION}" if $DEBUG