Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
[PATCH] RubyGems' string contains null byte issue
Mauricio Fernández
11/28/2004 9:57:00 PM
For those who don't have the dir.c fix:
--- loadpath_manager.rb.orig 2004-11-28 22:34:43.000000000 +0100
+++ loadpath_manager.rb 2004-11-28 22:38:19.000000000 +0100
@@ -60,13 +60,13 @@
end
def self.search_loadpath(file)
- result = Dir.glob("{#{($LOAD_PATH).join(',')}}/#{file}{,.rb,.so}").delete_if {|f| File.directory?(f)}.size > 0
+ result = Dir.glob("{#{($LOAD_PATH).join(',')}}/#{file}{,.rb,.so}").map{|x| Marshal.load(Marshal.dump(x))}.delete_if {|f| File.directory?(f)}.size > 0
result
end
def self.search_gempath(file)
build_paths unless @paths
- fullname = Dir.glob("{#{(@paths).join(',')}}/#{file}{,.rb,.so}").delete_if {|f| File.directory?(f)}.first
+ fullname = Dir.glob("{#{(@paths).join(',')}}/#{file}{,.rb,.so}").map{|x| Marshal.load(Marshal.dump(x))}.delete_if {|f| File.directory?(f)}.first
return false unless fullname
@specs.each do |spec|
if fullname.include?("/#{spec.full_name}/")
--
Hassle-free packages for Ruby?
RPA is available from
http://www.rubyar...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[PATCH] RubyGems' string contains null byte issue
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password