2009/7/21 Iñaki Baz Castillo <ibc / aliax.net>:
> This is really annoying. Why does a library writes to standar/error
> output by itself? It shouldn't occur!

It's even worse, there are more "puts" into the module:

/usr/local/lib/ruby1.9/gems/1.9.1/gems/httpclient-2.1.5.2/lib$ grep -r putsttpclient/ssl_config.rb:        puts "#{ is_ok ? 'ok' : 'ng' }:
#{ctx.current_cert.subject}"
httpclient/ssl_config.rb:        STDERR.puts "at depth #{depth} -
#{code}: #{msg}"
httpclient/ssl_config.rb:        STDERR.puts "at depth #{depth} -
#{code}: #{msg}" if $DEBUG
httpclient/ssl_config.rb:        STDERR.puts 'self signing CA' if $DEBUG
httpclient/ssl_config.rb:        STDERR.puts 'middle level CA' if $DEBUG
httpclient/ssl_config.rb:        STDERR.puts 'for server
authentication' if $DEBUG
httpclient/ssl_config.rb:      STDERR.puts("cacerts loading failed")
httpclient.rb:    puts "redirect to: #{newuri}" if $DEBUG
httpclient.rb:      STDERR.puts("could be a relative URI in location
header which is not recommended")
httpclient.rb:      STDERR.puts("'The field value consists of a single
absolute URI' in HTTP spec")
httpclient.rb:    puts "redirect to: #{newuri}" if $DEBUG


-- 
Iñaki Baz Castillo
<ibc / aliax.net>