Newer versions of Hpricot issue a warning.

B

bbiker

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.
 
W

_why

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.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top