[webgen-users] Deprecation warning

0 views
Skip to first unread message

Michael Franzl

unread,
Dec 20, 2009, 12:23:12 PM12/20/09
to webgen...@rubyforge.org
Hi,

I get a

Deprecation warning (~
/usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/base.rb:160:in
`send'): this method will be removed in one of the next releases - use
Path#basename instead!

I cannot extract a remedy from this message. I am using a template from
an earlier webgen version. Do you know which method this message is about?

Thanks,
Michael
_______________________________________________
webgen-users mailing list
webgen...@rubyforge.org
http://rubyforge.org/mailman/listinfo/webgen-users

Thomas Leitner

unread,
Dec 21, 2009, 1:44:37 AM12/21/09
to webgen...@rubyforge.org
> Deprecation warning (~
> /usr/lib/ruby/gems/1.8/gems/webgen-0.5.10/lib/webgen/sourcehandler/base.rb:160:in
> `send'): this method will be removed in one of the next releases -
> use Path#basename instead!
>
> I cannot extract a remedy from this message. I am using a template
> from an earlier webgen version. Do you know which method this message
> is about?

All deprecated methods are stored in the file lib/webgen/deprecated.rb.
The one generating the above message should normally say that
Path#cnbase is deprecated in favor of Path#basename. This is normally
used when setting the output_path_style variable. So just search for
cnbase and substitute it with basename.

-- Thomas

Reply all
Reply to author
Forward
0 new messages