SPECS: perl-UNIVERSAL-can.spec - pl, generic URL

qboosh qboosh at pld-linux.org
Tue Nov 15 23:55:12 CET 2005


Author: qboosh                       Date: Tue Nov 15 22:55:12 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pl, generic URL

---- Files affected:
SPECS:
   perl-UNIVERSAL-can.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/perl-UNIVERSAL-can.spec
diff -u SPECS/perl-UNIVERSAL-can.spec:1.1 SPECS/perl-UNIVERSAL-can.spec:1.2
--- SPECS/perl-UNIVERSAL-can.spec:1.1	Mon Nov  7 15:19:38 2005
+++ SPECS/perl-UNIVERSAL-can.spec	Tue Nov 15 23:55:07 2005
@@ -7,7 +7,7 @@
 %define	pdir	UNIVERSAL
 %define	pnam	can
 Summary:	UNIVERSAL::can - Hack around people calling UNIVERSAL::can() as a function
-#Summary(pl):	
+Summary(pl):	UNIVERSAL::can - poprawianie ludzi wywołujących UNIVERSAL::can() jako funkcję
 Name:		perl-UNIVERSAL-can
 Version:	1.00
 Release:	1
@@ -16,6 +16,7 @@
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
 # Source0-md5:	40cea820351a759f293af68115452ef7
+URL:		http://search.cpan.org/dist/UNIVERSAL-can/
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
 %if %{with tests}
@@ -27,28 +28,48 @@
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-The UNIVERSAL class provides a few default methods so that all objects can use
-them.  Object orientation allows programmers to override these methods in
-subclasses to provide more specific and appropriate behavior.
-
-Some authors call methods in the UNIVERSAL class on potential invocants as
-functions, bypassing any possible overriding.  This is wrong and you should not
-do it.  Unfortunately, not everyone heeds this warning and their bad code can
-break your good code.
-
-Fortunately, this module replaces UNIVERSAL::can() with a method that checks
-to see if the first argument is a valid invocant (whether an object -- a
-blessed referent -- or the name of a class).  If so, and if the invocant's
-class has its own can() method, it calls that as a method.  Otherwise,
-everything works as you might expect.
-
-If someone attempts to call UNIVERSAL::can() as a function, this module will
-emit a lexical warning (see perllexwarn) to that effect.  You can disable it
-with no warnings; or no warnings 'UNIVERSAL::isa';, but don't do that;
-fix the code instead.
-
-# %description -l pl
-# TODO
+The UNIVERSAL class provides a few default methods so that all objects
+can use them. Object orientation allows programmers to override these
+methods in subclasses to provide more specific and appropriate
+behavior.
+
+Some authors call methods in the UNIVERSAL class on potential
+invocants as functions, bypassing any possible overriding. This is
+wrong and you should not do it. Unfortunately, not everyone heeds this
+warning and their bad code can break your good code.
+
+Fortunately, this module replaces UNIVERSAL::can() with a method that
+checks to see if the first argument is a valid invocant (whether an
+object - a blessed referent - or the name of a class). If so, and if
+the invocant's class has its own can() method, it calls that as a
+method. Otherwise, everything works as you might expect.
+
+If someone attempts to call UNIVERSAL::can() as a function, this
+module will emit a lexical warning (see perllexwarn) to that effect.
+You can disable it with no warnings; or no warnings 'UNIVERSAL::isa';,
+but don't do that; fix the code instead.
+
+%description -l pl
+Klasa UNIVERSAL udostępnia kilka domyślnych metod, które mogą być
+używane przez wszystkie obiekty. Zorientowanie obiektowe pozwala
+programistom przykryć te metody w podklasach, aby zapewnić bardziej
+konkretne i odpowiednie zachowanie.
+
+Niektórzy autorzy wywołują metody w klasie UNIVERSAL na potencjalnych
+wywołujących jako funkcje, pomijając jakiekolwiek przykrywanie. Jest
+to niedobre i nie należy tego robić. Niestety nie każdy zwraca uwagę
+na to ostrzeżenie i jego zły kod może zepsuć inny dobry kod.
+
+Na szczęście ten moduł zastępuje UNIVERSAL::can() metodą sprawdzającą
+czy pierwszy argument jest poprawnym wywołującym (obiektem -
+pobłogosławioną referencją - albo nazwą klasy). Jeśli tak, a klasa
+wywołującego ma własną metodę can(), wywołuje ją jako metodę. W
+przeciwnym wypadku wszystko działa tak, jak można by się tego
+spodziewać.
+
+Jeśli ktoś próbuje wywołać UNIVERSAL::can() jako funkcję, ten moduł
+wygeneruje ostrzeżenie słowne (perllexwarn). Można wyłączyć je - ale
+nie należy tego robić, zamiast tego lepiej poprawić kod.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
@@ -81,6 +102,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2005/11/15 22:55:07  qboosh
+- pl, generic URL
+
 Revision 1.1  2005/11/07 14:19:38  migo
 - initial revision
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/perl-UNIVERSAL-can.spec?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list