Bug #7439 ยป 0001-Revert-r32841.patch
| tool/rbinstall.rb | ||
|---|---|---|
|
require 'shellwords'
|
||
|
require 'optparse'
|
||
|
require 'optparse/shellwords'
|
||
|
require 'ostruct'
|
||
|
STDOUT.sync = true
|
||
|
File.umask(0)
|
||
| ... | ... | |
|
end
|
||
|
# :stopdoc:
|
||
|
module Gem
|
||
|
if defined?(Specification)
|
||
|
remove_const(:Specification)
|
||
|
end
|
||
|
class Specification < OpenStruct
|
||
|
def initialize(*)
|
||
|
super
|
||
|
yield(self) if defined?(yield)
|
||
|
self.executables ||= []
|
||
|
end
|
||
|
def self.load(path)
|
||
|
src = File.open(path, "rb") {|f| f.read}
|
||
|
src.sub!(/\A#.*/, '')
|
||
|
eval(src, nil, path)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
module RbInstall
|
||
|
module Specs
|
||
|
class Reader < Struct.new(:src)
|
||