Digest::Base problem

https://rvm.beginrescueend.com/

It grabs source code for Ruby implementations, and compiles it.

I think, that I want to get my ruby working the "old fashioned" way
before going fancy.

ruby -rdigest -e "p Digest.const_defined? :Base" => true

I get false on three different systems. Just tested on my office mate's
mac where it returns 'true' (though ruby 1.8.7).

Could it be a problem with old libs sitting around?

Bleh :o(

Martin

···

--
Posted via http://www.ruby-forum.com/\.

Sure. Try to access a website that uses HTTPS, like so:

http://olabini.com/blog/2008/08/ruby-https-web-calls/

···

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.

Martin

···

--
Posted via http://www.ruby-forum.com/\.