I''m just getting my bearings with Mechanize and Scrubyt and am receiving the following message: !!!!! DEPRECATION NOTICE !!!!! The WWW constant is deprecated, please switch to the new top-level Mechanize constant. WWW will be removed in Mechanize version 2.0 You''ve referenced the WWW constant from /opt/local/lib/ruby/gems/1.8/ gems/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb: 17:in `included'', please switch the "WWW" to "Mechanize". Thanks! Sincerely, Pew Pew Pew I would be happy to switch to the top-level Mechanize constant but have no idea how to do that, or what it means and several hours of searching online have not generated any results. Any help is much appreciated. Thanks Roger
I think all that is needed is that where you have "WWW::Mechanize.new" in your code, you just drop the WWW:: and write "Mechanize.new". Anyone else feel free to jump in and correct this if I''m mistaken. -Jimmy Roger Schoenman wrote:> I''m just getting my bearings with Mechanize and Scrubyt and am > receiving the following message: > > !!!!! DEPRECATION NOTICE !!!!! > The WWW constant is deprecated, please switch to the new top-level > Mechanize > constant. WWW will be removed in Mechanize version 2.0 > > You''ve referenced the WWW constant from > /opt/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb:17:in > `included'', please > switch the "WWW" to "Mechanize". Thanks! > > Sincerely, > > Pew Pew Pew > > I would be happy to switch to the top-level Mechanize constant but > have no idea how to do that, or what it means and several hours of > searching online have not generated any results. Any help is much > appreciated. > Thanks > > Roger > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users
nope, that''s correct. If you''ve updated to the latest version of Mechanize, there is no longer a need for the WWW.>From now on, you just do@browser = Mechanize.new ~Jeremy On Fri, Feb 19, 2010 at 2:30 AM, Jimmy McGrath <mechanize-mail at zizee.com>wrote:> I think all that is needed is that where you have "WWW::Mechanize.new" in > your code, you just drop the WWW:: and write "Mechanize.new". > > Anyone else feel free to jump in and correct this if I''m mistaken. > > -Jimmy > > > Roger Schoenman wrote: > >> I''m just getting my bearings with Mechanize and Scrubyt and am receiving >> the following message: >> >> !!!!! DEPRECATION NOTICE !!!!! >> The WWW constant is deprecated, please switch to the new top-level >> Mechanize >> constant. WWW will be removed in Mechanize version 2.0 >> >> You''ve referenced the WWW constant from >> /opt/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb:17:in >> `included'', please >> switch the "WWW" to "Mechanize". Thanks! >> >> Sincerely, >> >> Pew Pew Pew >> >> I would be happy to switch to the top-level Mechanize constant but have no >> idea how to do that, or what it means and several hours of searching online >> have not generated any results. Any help is much appreciated. >> Thanks >> >> Roger >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users >> > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20100219/13df5994/attachment.html>
Jeremy, Jimmy, Thanks a lot - that makes perfect sense. If I understand correctly, this is happening because I''m using ScrubyT, which depends on Mechanize? Because I haven''t actually written "WWW::Mechanize.new" anywhere in my code. All I have is: require ''rubygems'' require ''scrubyt'' rz_data=Scrubyt::Extractor.define do fetch ''http://rp.pl/search-archiwumrz?query='' select_option ''wszystkie'', ''100'', ''wg dat'' fill_textfield ''query'', ''aaaa'' submit Many thanks again, Roger On Feb 19, 2010, at 8:08 AM, Jeremy Woertink wrote:> nope, that''s correct. If you''ve updated to the latest version of > Mechanize, there is no longer a need for the WWW. > > From now on, you just do > > @browser = Mechanize.new > > > ~Jeremy > > > > On Fri, Feb 19, 2010 at 2:30 AM, Jimmy McGrath <mechanize-mail at zizee.com > > wrote: > I think all that is needed is that where you have > "WWW::Mechanize.new" in your code, you just drop the WWW:: and write > "Mechanize.new". > > Anyone else feel free to jump in and correct this if I''m mistaken. > > -Jimmy > > > Roger Schoenman wrote: > I''m just getting my bearings with Mechanize and Scrubyt and am > receiving the following message: > > !!!!! DEPRECATION NOTICE !!!!! > The WWW constant is deprecated, please switch to the new top-level > Mechanize > constant. WWW will be removed in Mechanize version 2.0 > > You''ve referenced the WWW constant from /opt/local/lib/ruby/gems/1.8/ > gems/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb: > 17:in `included'', please > switch the "WWW" to "Mechanize". Thanks! > > Sincerely, > > Pew Pew Pew > > I would be happy to switch to the top-level Mechanize constant but > have no idea how to do that, or what it means and several hours of > searching online have not generated any results. Any help is much > appreciated. > Thanks > > Roger > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20100219/03fb6f14/attachment-0001.html>
Yes, that is correct. Is there a newer version of scRubyt? I''ve never actually used it before, so I''m not sure. You could just always just do a global search and replace :) lol On Fri, Feb 19, 2010 at 8:54 AM, Roger Schoenman <rschoenm at ucsc.edu> wrote:> Jeremy, Jimmy, > > Thanks a lot - that makes perfect sense. If I understand correctly, this is > happening because I''m using ScrubyT, which depends on Mechanize? Because I > haven''t actually written "WWW::Mechanize.new" anywhere in my code. All I > have is: > > require ''rubygems'' > require ''scrubyt'' > rz_data=Scrubyt::Extractor.define do > fetch ''http://rp.pl/search-archiwumrz?query=''<http://rp.pl/search-archiwumrz?query=%27> > select_option ''wszystkie'', ''100'', ''wg dat'' > fill_textfield ''query'', ''aaaa'' > submit > > > Many thanks again, > > Roger > > > > > On Feb 19, 2010, at 8:08 AM, Jeremy Woertink wrote: > > nope, that''s correct. If you''ve updated to the latest version of Mechanize, > there is no longer a need for the WWW. > > From now on, you just do > > @browser = Mechanize.new > > > ~Jeremy > > > > On Fri, Feb 19, 2010 at 2:30 AM, Jimmy McGrath <mechanize-mail at zizee.com>wrote: > >> I think all that is needed is that where you have "WWW::Mechanize.new" in >> your code, you just drop the WWW:: and write "Mechanize.new". >> >> Anyone else feel free to jump in and correct this if I''m mistaken. >> >> -Jimmy >> >> >> Roger Schoenman wrote: >> >>> I''m just getting my bearings with Mechanize and Scrubyt and am receiving >>> the following message: >>> >>> !!!!! DEPRECATION NOTICE !!!!! >>> The WWW constant is deprecated, please switch to the new top-level >>> Mechanize >>> constant. WWW will be removed in Mechanize version 2.0 >>> >>> You''ve referenced the WWW constant from >>> /opt/local/lib/ruby/gems/1.8/gems/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/mechanize.rb:17:in >>> `included'', please >>> switch the "WWW" to "Mechanize". Thanks! >>> >>> Sincerely, >>> >>> Pew Pew Pew >>> >>> I would be happy to switch to the top-level Mechanize constant but have >>> no idea how to do that, or what it means and several hours of searching >>> online have not generated any results. Any help is much appreciated. >>> Thanks >>> >>> Roger >>> >>> _______________________________________________ >>> Mechanize-users mailing list >>> Mechanize-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/mechanize-users >>> >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users >> > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > > > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20100219/0616f715/attachment.html>
Great. Thanks. I have the latest version of scRubyt, so that''s not the problem but I think (hope) I should be able to figure it out from here. Many thanks Roger On Feb 19, 2010, at 9:05 AM, Jeremy Woertink wrote:> Yes, that is correct. Is there a newer version of scRubyt? I''ve > never actually used it before, so I''m not sure. You could just > always just do a global search and replace :) lol > > > > > > On Fri, Feb 19, 2010 at 8:54 AM, Roger Schoenman <rschoenm at ucsc.edu> > wrote: > Jeremy, Jimmy, > > Thanks a lot - that makes perfect sense. If I understand correctly, > this is happening because I''m using ScrubyT, which depends on > Mechanize? Because I haven''t actually written "WWW::Mechanize.new" > anywhere in my code. All I have is: > > require ''rubygems'' > require ''scrubyt'' > rz_data=Scrubyt::Extractor.define do > fetch ''http://rp.pl/search-archiwumrz?query='' > select_option ''wszystkie'', ''100'', ''wg dat'' > fill_textfield ''query'', ''aaaa'' > submit > > > Many thanks again, > > Roger > > > > > On Feb 19, 2010, at 8:08 AM, Jeremy Woertink wrote: > >> nope, that''s correct. If you''ve updated to the latest version of >> Mechanize, there is no longer a need for the WWW. >> >> From now on, you just do >> >> @browser = Mechanize.new >> >> >> ~Jeremy >> >> >> >> On Fri, Feb 19, 2010 at 2:30 AM, Jimmy McGrath <mechanize-mail at zizee.com >> > wrote: >> I think all that is needed is that where you have >> "WWW::Mechanize.new" in your code, you just drop the WWW:: and >> write "Mechanize.new". >> >> Anyone else feel free to jump in and correct this if I''m mistaken. >> >> -Jimmy >> >> >> Roger Schoenman wrote: >> I''m just getting my bearings with Mechanize and Scrubyt and am >> receiving the following message: >> >> !!!!! DEPRECATION NOTICE !!!!! >> The WWW constant is deprecated, please switch to the new top-level >> Mechanize >> constant. WWW will be removed in Mechanize version 2.0 >> >> You''ve referenced the WWW constant from /opt/local/lib/ruby/gems/ >> 1.8/gems/scrubyt-0.4.06/lib/scrubyt/core/navigation/agents/ >> mechanize.rb:17:in `included'', please >> switch the "WWW" to "Mechanize". Thanks! >> >> Sincerely, >> >> Pew Pew Pew >> >> I would be happy to switch to the top-level Mechanize constant but >> have no idea how to do that, or what it means and several hours of >> searching online have not generated any results. Any help is much >> appreciated. >> Thanks >> >> Roger >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users >> >> _______________________________________________ >> Mechanize-users mailing list >> Mechanize-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/mechanize-users > > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20100219/8d62fee3/attachment.html>