On Thu, May 12, 2011 at 3:36 PM, Martin Hansen <mail@maasha.dk> wrote:
Can we somehow test if Ruby has SSL support - without using digest -
which appears to be broken?
--
Phillip Gawlowski
Though the folk I have met,
(Ah, how soon!) they forget
When I've moved on to some other place,
There may be one or two,
When I've played and passed through,
Who'll remember my song or my face.
Can we somehow test if Ruby has SSL support - without using digest -
which appears to be broken?
Sure. Try to access a website that uses HTTPS, like so:
irb(main):001:0> require 'httpclient'
ArgumentError: undefined class/module Digest::Base
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from
/home/maasha/Install/src/Martin/lib/ruby/gems/1.9.1/gems/httpclient-2.2.0.2/lib/httpclient.rb:11:in
`<top (required)>'
from <internal:lib/rubygems/custom_require>:33:in `require'
from <internal:lib/rubygems/custom_require>:33:in `rescue in
require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from (irb):1
from ./irb:12:in `<main>'
OK, so something ssl is probably fubar. It is strange that it appears to
be a problem with both the precompiled debian packages and my ruby
do-it-yourself compile.
Grrr. I need some systematic approach to track down this issue.