Posted By: Justin Bailey
Date: 2007-03-06 07:15
Summary: Problem with RubyGems 0.9.2 and RubySSPI 1.0.6
Project: Ruby Win32 SSPI

As discovered in the thread

http://rubyforge.org/forum/forum.php?thread_id=12223&forum_id=7869

RubyGems 0.9.2 breaks the net/http "patch" included with RubySSPI. The problem manifests as the following error when "gem" commands are run (or any ruby script if RUBYOPT is set to "-rubygems", which includes rubygems automatically):

D:/wwwdev/Ruby/lib/ruby/1.8/net/http.rb:7:in `require': no such file to load -- rubysspi/proxy_auth (LoadError)
from D:/wwwdev/Ruby/lib/ruby/1.8/net/http.rb:7
...

To fix the error, change the patch "net/http.rb" found in the lib directory like so:

unless defined? DISABLE_RUBY_SSPI_PATCH
if defined? Gem
$: << "#{Gem.path}/gems/rubysspi-1.0.6-i386-mswin32/lib"
require 'rubysspi/proxy_auth'
end
end

This ensures that the rubysspi/proxy_auth file will be loaded correctly.

Latest News
TZInfo v1.0.0 and TZInfo::Data v1.2013.3 Released
    Philip Ross - 2013-06-02 17:12
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11

 

Forums | Admin

Discussion Forums: problem-with-rubygems-0.9.2-and-rubysspi-1.0.6

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post