Forum: Ruby Newer versions of Hpricot issue a warning.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Feee221f9eb7818d90625ea141bfd60c?d=identicon&s=25 bbiker (Guest)
on 2006-12-28 05:36
(Received via mailing list)
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.
19fdf8bd123216b5056fb856cf1a5771?d=identicon&s=25 _why (Guest)
on 2006-12-28 07:11
(Received via mailing list)
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.

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
This topic is locked and can not be replied to.