Changeset 16508

Show
Ignore:
Timestamp:
07/25/08 23:13:18 (5 years ago)
Author:
hanekomu
Message:

continued to update distribution to standard style

Location:
lang/perl/String-BlackWhiteList/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/String-BlackWhiteList/trunk/Changes

    r16373 r16508  
    11Revision history for Perl extension String-BlackWhiteList 
     2 
     30.06  Thu Jul 25 15:27:43 CEST 2008 (Marcel Gruenauer <marcel@cpan.org>) 
     4     - Changed dist style and Changes back to standard. People didn't like it - 
     5       the nail that sticks out gets hammered down. 
     6     - Added standard test files; this will also help with CPANTS. 
    27 
    380.05  Thu, 29 May 2008 12:07:45 -0000 (Marcel Gruenauer <marcel@cpan.org>) 
  • lang/perl/String-BlackWhiteList/trunk/MANIFEST

    r16373 r16508  
    99inc/Module/Install/Makefile.pm 
    1010inc/Module/Install/Metadata.pm 
    11 inc/Module/Install/StandardTests.pm 
    12 inc/Module/Install/Template.pm 
    1311inc/Module/Install/Win32.pm 
    1412inc/Module/Install/WriteAll.pm 
    1513inc/Test/Compile.pm 
    1614inc/Test/More.pm 
    17 inc/UNIVERSAL/require.pm 
    1815lib/String/BlackWhiteList.pm 
    1916LICENSE 
  • lang/perl/String-BlackWhiteList/trunk/MANIFEST.SKIP

    r9805 r16508  
    1010^Build$ 
    1111^blib/ 
     12^pm_to_blib/ 
    1213^_build/ 
    1314^MakeMaker-\d 
     
    2728\.old$ 
    2829\.swp$ 
     30\.tar$ 
     31\.tar\.gz$ 
    2932^#.*#$ 
    3033^\.# 
  • lang/perl/String-BlackWhiteList/trunk/Makefile.PL

    r9805 r16508  
    88requires 'Class::Accessor::Complex' => '0.12'; 
    99 
    10 build_requires 'Test::More' => '0.70'; 
     10recommends 'Test::Pod'; 
     11recommends 'Test::Pod::Coverage'; 
    1112 
    12 process_templates( 
    13     first_year => 2005, 
    14     rest_from  => "$ENV{HOME}/.mitlib/standard_pod", 
    15     start_tag  => '{%', 
    16     end_tag    => '%}', 
    17 ); 
     13test_requires 'Test::More' => '0.70'; 
     14test_requires 'Test::Compile'; 
    1815 
    19 use_standard_tests(without => 'pod_coverage'); 
    2016auto_install; 
    2117auto_include; 
  • lang/perl/String-BlackWhiteList/trunk/lib/String/BlackWhiteList.pm

    r12788 r16508  
    9595__END__ 
    9696 
    97 {% USE p = PodGenerated %} 
     97 
    9898 
    9999=head1 NAME 
     
    165165=over 4 
    166166 
    167 {% p.write_methods %} 
     167=item new 
     168 
     169    my $obj = String::BlackWhiteList->new; 
     170    my $obj = String::BlackWhiteList->new(%args); 
     171 
     172Creates and returns a new object. The constructor will accept as arguments a 
     173list of pairs, from component name to initial value. For each pair, the named 
     174component is initialized by calling the method of the same name with the given 
     175value. If called with a single hash reference, it is dereferenced and its 
     176key/value pairs are set as described before. 
     177 
     178=item black_re 
     179 
     180    my $value = $obj->black_re; 
     181    $obj->black_re($value); 
     182 
     183A basic getter/setter method. If called without an argument, it returns the 
     184value. If called with a single argument, it sets the value. 
     185 
     186=item black_re_clear 
     187 
     188    $obj->black_re_clear; 
     189 
     190Clears the value. 
     191 
     192=item blacklist 
     193 
     194    my @values    = $obj->blacklist; 
     195    my $array_ref = $obj->blacklist; 
     196    $obj->blacklist(@values); 
     197    $obj->blacklist($array_ref); 
     198 
     199Get or set the array values. If called without an arguments, it returns the 
     200array in list context, or a reference to the array in scalar context. If 
     201called with arguments, it expands array references found therein and sets the 
     202values. 
     203 
     204=item blacklist_clear 
     205 
     206    $obj->blacklist_clear; 
     207 
     208Deletes all elements from the array. 
     209 
     210=item blacklist_count 
     211 
     212    my $count = $obj->blacklist_count; 
     213 
     214Returns the number of elements in the array. 
     215 
     216=item blacklist_index 
     217 
     218    my $element   = $obj->blacklist_index(3); 
     219    my @elements  = $obj->blacklist_index(@indices); 
     220    my $array_ref = $obj->blacklist_index(@indices); 
     221 
     222Takes a list of indices and returns the elements indicated by those indices. 
     223If only one index is given, the corresponding array element is returned. If 
     224several indices are given, the result is returned as an array in list context 
     225or as an array reference in scalar context. 
     226 
     227=item blacklist_pop 
     228 
     229    my $value = $obj->blacklist_pop; 
     230 
     231Pops the last element off the array, returning it. 
     232 
     233=item blacklist_push 
     234 
     235    $obj->blacklist_push(@values); 
     236 
     237Pushes elements onto the end of the array. 
     238 
     239=item blacklist_set 
     240 
     241    $obj->blacklist_set(1 => $x, 5 => $y); 
     242 
     243Takes a list of index/value pairs and for each pair it sets the array element 
     244at the indicated index to the indicated value. Returns the number of elements 
     245that have been set. 
     246 
     247=item blacklist_shift 
     248 
     249    my $value = $obj->blacklist_shift; 
     250 
     251Shifts the first element off the array, returning it. 
     252 
     253=item blacklist_splice 
     254 
     255    $obj->blacklist_splice(2, 1, $x, $y); 
     256    $obj->blacklist_splice(-1); 
     257    $obj->blacklist_splice(0, -1); 
     258 
     259Takes three arguments: An offset, a length and a list. 
     260 
     261Removes the elements designated by the offset and the length from the array, 
     262and replaces them with the elements of the list, if any. In list context, 
     263returns the elements removed from the array. In scalar context, returns the 
     264last element removed, or C<undef> if no elements are removed. The array grows 
     265or shrinks as necessary. If the offset is negative then it starts that far 
     266from the end of the array. If the length is omitted, removes everything from 
     267the offset onward. If the length is negative, removes the elements from the 
     268offset onward except for -length elements at the end of the array. If both the 
     269offset and the length are omitted, removes everything. If the offset is past 
     270the end of the array, it issues a warning, and splices at the end of the 
     271array. 
     272 
     273=item blacklist_unshift 
     274 
     275    $obj->blacklist_unshift(@values); 
     276 
     277Unshifts elements onto the beginning of the array. 
     278 
     279=item clear_black_re 
     280 
     281    $obj->clear_black_re; 
     282 
     283Clears the value. 
     284 
     285=item clear_blacklist 
     286 
     287    $obj->clear_blacklist; 
     288 
     289Deletes all elements from the array. 
     290 
     291=item clear_is_literal_text 
     292 
     293    $obj->clear_is_literal_text; 
     294 
     295Clears the boolean value by setting it to 0. 
     296 
     297=item clear_white_re 
     298 
     299    $obj->clear_white_re; 
     300 
     301Clears the value. 
     302 
     303=item clear_whitelist 
     304 
     305    $obj->clear_whitelist; 
     306 
     307Deletes all elements from the array. 
     308 
     309=item count_blacklist 
     310 
     311    my $count = $obj->count_blacklist; 
     312 
     313Returns the number of elements in the array. 
     314 
     315=item count_whitelist 
     316 
     317    my $count = $obj->count_whitelist; 
     318 
     319Returns the number of elements in the array. 
     320 
     321=item index_blacklist 
     322 
     323    my $element   = $obj->index_blacklist(3); 
     324    my @elements  = $obj->index_blacklist(@indices); 
     325    my $array_ref = $obj->index_blacklist(@indices); 
     326 
     327Takes a list of indices and returns the elements indicated by those indices. 
     328If only one index is given, the corresponding array element is returned. If 
     329several indices are given, the result is returned as an array in list context 
     330or as an array reference in scalar context. 
     331 
     332=item index_whitelist 
     333 
     334    my $element   = $obj->index_whitelist(3); 
     335    my @elements  = $obj->index_whitelist(@indices); 
     336    my $array_ref = $obj->index_whitelist(@indices); 
     337 
     338Takes a list of indices and returns the elements indicated by those indices. 
     339If only one index is given, the corresponding array element is returned. If 
     340several indices are given, the result is returned as an array in list context 
     341or as an array reference in scalar context. 
     342 
     343=item is_literal_text 
     344 
     345    $obj->is_literal_text($value); 
     346    my $value = $obj->is_literal_text; 
     347 
     348If called without an argument, returns the boolean value (0 or 1). If called 
     349with an argument, it normalizes it to the boolean value. That is, the values 
     3500, undef and the empty string become 0; everything else becomes 1. 
     351 
     352=item is_literal_text_clear 
     353 
     354    $obj->is_literal_text_clear; 
     355 
     356Clears the boolean value by setting it to 0. 
     357 
     358=item is_literal_text_set 
     359 
     360    $obj->is_literal_text_set; 
     361 
     362Sets the boolean value to 1. 
     363 
     364=item pop_blacklist 
     365 
     366    my $value = $obj->pop_blacklist; 
     367 
     368Pops the last element off the array, returning it. 
     369 
     370=item pop_whitelist 
     371 
     372    my $value = $obj->pop_whitelist; 
     373 
     374Pops the last element off the array, returning it. 
     375 
     376=item push_blacklist 
     377 
     378    $obj->push_blacklist(@values); 
     379 
     380Pushes elements onto the end of the array. 
     381 
     382=item push_whitelist 
     383 
     384    $obj->push_whitelist(@values); 
     385 
     386Pushes elements onto the end of the array. 
     387 
     388=item set_blacklist 
     389 
     390    $obj->set_blacklist(1 => $x, 5 => $y); 
     391 
     392Takes a list of index/value pairs and for each pair it sets the array element 
     393at the indicated index to the indicated value. Returns the number of elements 
     394that have been set. 
     395 
     396=item set_is_literal_text 
     397 
     398    $obj->set_is_literal_text; 
     399 
     400Sets the boolean value to 1. 
     401 
     402=item set_whitelist 
     403 
     404    $obj->set_whitelist(1 => $x, 5 => $y); 
     405 
     406Takes a list of index/value pairs and for each pair it sets the array element 
     407at the indicated index to the indicated value. Returns the number of elements 
     408that have been set. 
     409 
     410=item shift_blacklist 
     411 
     412    my $value = $obj->shift_blacklist; 
     413 
     414Shifts the first element off the array, returning it. 
     415 
     416=item shift_whitelist 
     417 
     418    my $value = $obj->shift_whitelist; 
     419 
     420Shifts the first element off the array, returning it. 
     421 
     422=item splice_blacklist 
     423 
     424    $obj->splice_blacklist(2, 1, $x, $y); 
     425    $obj->splice_blacklist(-1); 
     426    $obj->splice_blacklist(0, -1); 
     427 
     428Takes three arguments: An offset, a length and a list. 
     429 
     430Removes the elements designated by the offset and the length from the array, 
     431and replaces them with the elements of the list, if any. In list context, 
     432returns the elements removed from the array. In scalar context, returns the 
     433last element removed, or C<undef> if no elements are removed. The array grows 
     434or shrinks as necessary. If the offset is negative then it starts that far 
     435from the end of the array. If the length is omitted, removes everything from 
     436the offset onward. If the length is negative, removes the elements from the 
     437offset onward except for -length elements at the end of the array. If both the 
     438offset and the length are omitted, removes everything. If the offset is past 
     439the end of the array, it issues a warning, and splices at the end of the 
     440array. 
     441 
     442=item splice_whitelist 
     443 
     444    $obj->splice_whitelist(2, 1, $x, $y); 
     445    $obj->splice_whitelist(-1); 
     446    $obj->splice_whitelist(0, -1); 
     447 
     448Takes three arguments: An offset, a length and a list. 
     449 
     450Removes the elements designated by the offset and the length from the array, 
     451and replaces them with the elements of the list, if any. In list context, 
     452returns the elements removed from the array. In scalar context, returns the 
     453last element removed, or C<undef> if no elements are removed. The array grows 
     454or shrinks as necessary. If the offset is negative then it starts that far 
     455from the end of the array. If the length is omitted, removes everything from 
     456the offset onward. If the length is negative, removes the elements from the 
     457offset onward except for -length elements at the end of the array. If both the 
     458offset and the length are omitted, removes everything. If the offset is past 
     459the end of the array, it issues a warning, and splices at the end of the 
     460array. 
     461 
     462=item unshift_blacklist 
     463 
     464    $obj->unshift_blacklist(@values); 
     465 
     466Unshifts elements onto the beginning of the array. 
     467 
     468=item unshift_whitelist 
     469 
     470    $obj->unshift_whitelist(@values); 
     471 
     472Unshifts elements onto the beginning of the array. 
     473 
     474=item white_re 
     475 
     476    my $value = $obj->white_re; 
     477    $obj->white_re($value); 
     478 
     479A basic getter/setter method. If called without an argument, it returns the 
     480value. If called with a single argument, it sets the value. 
     481 
     482=item white_re_clear 
     483 
     484    $obj->white_re_clear; 
     485 
     486Clears the value. 
     487 
     488=item whitelist 
     489 
     490    my @values    = $obj->whitelist; 
     491    my $array_ref = $obj->whitelist; 
     492    $obj->whitelist(@values); 
     493    $obj->whitelist($array_ref); 
     494 
     495Get or set the array values. If called without an arguments, it returns the 
     496array in list context, or a reference to the array in scalar context. If 
     497called with arguments, it expands array references found therein and sets the 
     498values. 
     499 
     500=item whitelist_clear 
     501 
     502    $obj->whitelist_clear; 
     503 
     504Deletes all elements from the array. 
     505 
     506=item whitelist_count 
     507 
     508    my $count = $obj->whitelist_count; 
     509 
     510Returns the number of elements in the array. 
     511 
     512=item whitelist_index 
     513 
     514    my $element   = $obj->whitelist_index(3); 
     515    my @elements  = $obj->whitelist_index(@indices); 
     516    my $array_ref = $obj->whitelist_index(@indices); 
     517 
     518Takes a list of indices and returns the elements indicated by those indices. 
     519If only one index is given, the corresponding array element is returned. If 
     520several indices are given, the result is returned as an array in list context 
     521or as an array reference in scalar context. 
     522 
     523=item whitelist_pop 
     524 
     525    my $value = $obj->whitelist_pop; 
     526 
     527Pops the last element off the array, returning it. 
     528 
     529=item whitelist_push 
     530 
     531    $obj->whitelist_push(@values); 
     532 
     533Pushes elements onto the end of the array. 
     534 
     535=item whitelist_set 
     536 
     537    $obj->whitelist_set(1 => $x, 5 => $y); 
     538 
     539Takes a list of index/value pairs and for each pair it sets the array element 
     540at the indicated index to the indicated value. Returns the number of elements 
     541that have been set. 
     542 
     543=item whitelist_shift 
     544 
     545    my $value = $obj->whitelist_shift; 
     546 
     547Shifts the first element off the array, returning it. 
     548 
     549=item whitelist_splice 
     550 
     551    $obj->whitelist_splice(2, 1, $x, $y); 
     552    $obj->whitelist_splice(-1); 
     553    $obj->whitelist_splice(0, -1); 
     554 
     555Takes three arguments: An offset, a length and a list. 
     556 
     557Removes the elements designated by the offset and the length from the array, 
     558and replaces them with the elements of the list, if any. In list context, 
     559returns the elements removed from the array. In scalar context, returns the 
     560last element removed, or C<undef> if no elements are removed. The array grows 
     561or shrinks as necessary. If the offset is negative then it starts that far 
     562from the end of the array. If the length is omitted, removes everything from 
     563the offset onward. If the length is negative, removes the elements from the 
     564offset onward except for -length elements at the end of the array. If both the 
     565offset and the length are omitted, removes everything. If the offset is past 
     566the end of the array, it issues a warning, and splices at the end of the 
     567array. 
     568 
     569=item whitelist_unshift 
     570 
     571    $obj->whitelist_unshift(@values); 
     572 
     573Unshifts elements onto the beginning of the array. 
    168574 
    169575=item black_re 
     
    228634=back 
    229635 
    230 {% p.write_inheritance %} 
    231  
    232 {% PROCESS standard_pod %} 
     636String::BlackWhiteList inherits from L<Class::Accessor::Complex>. 
     637 
     638The superclass L<Class::Accessor::Complex> defines these methods and 
     639functions: 
     640 
     641    mk_abstract_accessors(), mk_array_accessors(), mk_boolean_accessors(), 
     642    mk_class_array_accessors(), mk_class_hash_accessors(), 
     643    mk_class_scalar_accessors(), mk_concat_accessors(), 
     644    mk_forward_accessors(), mk_hash_accessors(), mk_integer_accessors(), 
     645    mk_new(), mk_object_accessors(), mk_scalar_accessors(), 
     646    mk_set_accessors(), mk_singleton() 
     647 
     648The superclass L<Class::Accessor> defines these methods and functions: 
     649 
     650    _carp(), _croak(), _mk_accessors(), accessor_name_for(), 
     651    best_practice_accessor_name_for(), best_practice_mutator_name_for(), 
     652    follow_best_practice(), get(), make_accessor(), make_ro_accessor(), 
     653    make_wo_accessor(), mk_accessors(), mk_ro_accessors(), 
     654    mk_wo_accessors(), mutator_name_for(), set() 
     655 
     656The superclass L<Class::Accessor::Installer> defines these methods and 
     657functions: 
     658 
     659    install_accessor() 
     660 
     661=head1 BUGS AND LIMITATIONS 
     662 
     663No bugs have been reported. 
     664 
     665Please report any bugs or feature requests through the web interface at 
     666L<http://rt.cpan.org>. 
     667 
     668=head1 INSTALLATION 
     669 
     670See perlmodinstall for information and options on installing Perl modules. 
     671 
     672=head1 AVAILABILITY 
     673 
     674The latest version of this module is available from the Comprehensive Perl 
     675Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 
     676site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 
     677 
     678=head1 AUTHORS 
     679 
     680Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 
     681 
     682=head1 COPYRIGHT AND LICENSE 
     683 
     684Copyright 2005-2008 by the authors. 
     685 
     686This library is free software; you can redistribute it and/or modify 
     687it under the same terms as Perl itself. 
     688 
    233689 
    234690=cut