Newer versions of Hpricot issue a warning

I have written a script that requires 'hpricot'. I use mswin32 versions

It runs without issuing any warnings when using hpricot 0.4, 0.4.43,
0.4.52, 0.4.59

With newer versions of hpricot it issues the following warning.

0.4.76
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.76-mswin32/lib/hpricot/tag.rb:34:
warning: `*' interpreted as argument prefix
ARGV[0] USI_Segment1.htm <- script output

0.4.86
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.86-mswin32/lib/hpricot/tag.rb:34:
warning: `*' interpreted as argument prefix
ARGV[0] USI_Segment1.htm <- script output

0.4.90
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.90-mswin32/lib/hpricot/tag.rb:35:
warning: `*' interpreted as argument prefix
ARGV[0] USI_Segment1.htm <- script output

0.4.92
c:/ruby/lib/ruby/gems/1.8/gems/hpricot-0.4.92-mswin32/lib/hpricot/tag.rb:35:
warning: `*' interpreted as argument prefix
ARGV[0] USI_Segment1.htm <- script output

#######################################################################3
Portion of the code where the warning is issued.

#!c:/ruby/bin/ruby -w

# -*- coding: ISO-8859-1 -*-
require 'hpricot'

···

######################################################################
# module definitions eliminated since they do cause the warnings to be
issued
######################################################################

# #####################################################################
# main
# #####################################################################

# obtain the filename of the html file to process
input_file = ARGV[0] || 'USI_Segment1.htm'
puts "ARGV[0] #{ARGV[0]}"
# derive the filename of the csv output file
basename = File.basename(input_file, 'htm')
output_file = basename + 'csv'

__END__
the rest of the code snipped since it does not cause the warning to be
issued.
#######################################################################

I believe that this demonstrates a bug in hpricot rather than in my
code. I did try to post a bug report on code.whytheluckystiff.net
webpage. However I do not have an account.

Please forward to the appropriate destination.

Okay, there is a fix in Subversion. Thankyou!

As far as submitting tickets, you simply need a Rubyforge account.
<http://code.whytheluckystiff.net/access/>

_why

···

On Thu, Dec 28, 2006 at 01:35:12PM +0900, bbiker wrote:

I have written a script that requires 'hpricot'. I use mswin32 versions

It runs without issuing any warnings when using hpricot 0.4, 0.4.43,
0.4.52, 0.4.59

With newer versions of hpricot it issues the following warning.