Changeset 16525

Show
Ignore:
Timestamp:
07/25/08 23:17:33 (6 years ago)
Author:
hanekomu
Message:

continued to update distribution to standard style

Location:
lang/perl/Vim-Complete/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Vim-Complete/trunk/Changes

    r16390 r16525  
    11Revision history for Perl extension Vim-Complete 
     2 
     30.03  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.02  Thu, 29 May 2008 12:09:19 -0000 (Marcel Gruenauer <marcel@cpan.org>) 
  • lang/perl/Vim-Complete/trunk/MANIFEST

    r16390 r16525  
    1010inc/Module/Install/Makefile.pm 
    1111inc/Module/Install/Metadata.pm 
    12 inc/Module/Install/Scripts.pm 
    13 inc/Module/Install/StandardTests.pm 
    14 inc/Module/Install/Template.pm 
    1512inc/Module/Install/Win32.pm 
    1613inc/Module/Install/WriteAll.pm 
     
    1815inc/Test/Differences.pm 
    1916inc/Test/More.pm 
    20 inc/UNIVERSAL/require.pm 
    2117lib/Vim/Complete.pm 
    2218LICENSE 
  • lang/perl/Vim-Complete/trunk/MANIFEST.SKIP

    r9823 r16525  
    1010^Build$ 
    1111^blib/ 
     12^pm_to_blib/ 
    1213^_build/ 
    1314^MakeMaker-\d 
     
    2728\.old$ 
    2829\.swp$ 
     30\.tar$ 
     31\.tar\.gz$ 
    2932^#.*#$ 
    3033^\.# 
     
    3538core 
    3639^var/ 
    37 local/ 
  • lang/perl/Vim-Complete/trunk/Makefile.PL

    r9823 r16525  
    1010requires 'PPI'; 
    1111 
    12 build_requires 'Test::Differences'; 
    13 build_requires 'Test::More' => '0.70'; 
     12recommends 'Test::Pod'; 
     13recommends 'Test::Pod::Coverage'; 
     14 
     15test_requires 'Test::Differences'; 
     16test_requires 'Test::More' => '0.70'; 
     17test_requires 'Test::Compile'; 
    1418 
    1519install_script glob('bin/*'); 
    1620 
    17 process_templates( 
    18     first_year => 2007, 
    19     rest_from  => "$ENV{HOME}/.mitlib/standard_pod", 
    20     start_tag  => '{%', 
    21     end_tag    => '%}', 
    22 ); 
    23  
    24 use_standard_tests(without => 'pod_coverage'); 
    2521auto_install; 
    2622auto_include; 
  • lang/perl/Vim-Complete/trunk/lib/Vim/Complete.pm

    r9823 r16525  
    9191__END__ 
    9292 
    93 {% USE p = PodGenerated %} 
     93 
    9494 
    9595=head1 NAME 
    9696 
    97 {% p.package %} - Generate autocompletion information for vim 
     97Vim::Complete - Generate autocompletion information for vim 
    9898 
    9999=head1 SYNOPSIS 
     
    148148=over 4 
    149149 
    150 {% p.write_methods %} 
     150=item new 
     151 
     152    my $obj = Vim::Complete->new; 
     153    my $obj = Vim::Complete->new(%args); 
     154 
     155Creates and returns a new object. The constructor will accept as arguments a 
     156list of pairs, from component name to initial value. For each pair, the named 
     157component is initialized by calling the method of the same name with the given 
     158value. If called with a single hash reference, it is dereferenced and its 
     159key/value pairs are set as described before. 
     160 
     161=item clear_dirs 
     162 
     163    $obj->clear_dirs; 
     164 
     165Deletes all elements from the array. 
     166 
     167=item clear_min_length 
     168 
     169    $obj->clear_min_length; 
     170 
     171Clears the value. 
     172 
     173=item clear_result 
     174 
     175    $obj->clear_result; 
     176 
     177Deletes all keys and values from the hash. 
     178 
     179=item clear_verbose 
     180 
     181    $obj->clear_verbose; 
     182 
     183Clears the boolean value by setting it to 0. 
     184 
     185=item count_dirs 
     186 
     187    my $count = $obj->count_dirs; 
     188 
     189Returns the number of elements in the array. 
     190 
     191=item delete_result 
     192 
     193    $obj->delete_result(@keys); 
     194 
     195Takes a list of keys and deletes those keys from the hash. 
     196 
     197=item dirs 
     198 
     199    my @values    = $obj->dirs; 
     200    my $array_ref = $obj->dirs; 
     201    $obj->dirs(@values); 
     202    $obj->dirs($array_ref); 
     203 
     204Get or set the array values. If called without an arguments, it returns the 
     205array in list context, or a reference to the array in scalar context. If 
     206called with arguments, it expands array references found therein and sets the 
     207values. 
     208 
     209=item dirs_clear 
     210 
     211    $obj->dirs_clear; 
     212 
     213Deletes all elements from the array. 
     214 
     215=item dirs_count 
     216 
     217    my $count = $obj->dirs_count; 
     218 
     219Returns the number of elements in the array. 
     220 
     221=item dirs_index 
     222 
     223    my $element   = $obj->dirs_index(3); 
     224    my @elements  = $obj->dirs_index(@indices); 
     225    my $array_ref = $obj->dirs_index(@indices); 
     226 
     227Takes a list of indices and returns the elements indicated by those indices. 
     228If only one index is given, the corresponding array element is returned. If 
     229several indices are given, the result is returned as an array in list context 
     230or as an array reference in scalar context. 
     231 
     232=item dirs_pop 
     233 
     234    my $value = $obj->dirs_pop; 
     235 
     236Pops the last element off the array, returning it. 
     237 
     238=item dirs_push 
     239 
     240    $obj->dirs_push(@values); 
     241 
     242Pushes elements onto the end of the array. 
     243 
     244=item dirs_set 
     245 
     246    $obj->dirs_set(1 => $x, 5 => $y); 
     247 
     248Takes a list of index/value pairs and for each pair it sets the array element 
     249at the indicated index to the indicated value. Returns the number of elements 
     250that have been set. 
     251 
     252=item dirs_shift 
     253 
     254    my $value = $obj->dirs_shift; 
     255 
     256Shifts the first element off the array, returning it. 
     257 
     258=item dirs_splice 
     259 
     260    $obj->dirs_splice(2, 1, $x, $y); 
     261    $obj->dirs_splice(-1); 
     262    $obj->dirs_splice(0, -1); 
     263 
     264Takes three arguments: An offset, a length and a list. 
     265 
     266Removes the elements designated by the offset and the length from the array, 
     267and replaces them with the elements of the list, if any. In list context, 
     268returns the elements removed from the array. In scalar context, returns the 
     269last element removed, or C<undef> if no elements are removed. The array grows 
     270or shrinks as necessary. If the offset is negative then it starts that far 
     271from the end of the array. If the length is omitted, removes everything from 
     272the offset onward. If the length is negative, removes the elements from the 
     273offset onward except for -length elements at the end of the array. If both the 
     274offset and the length are omitted, removes everything. If the offset is past 
     275the end of the array, it issues a warning, and splices at the end of the 
     276array. 
     277 
     278=item dirs_unshift 
     279 
     280    $obj->dirs_unshift(@values); 
     281 
     282Unshifts elements onto the beginning of the array. 
     283 
     284=item exists_result 
     285 
     286    if ($obj->exists_result($key)) { ... } 
     287 
     288Takes a key and returns a true value if the key exists in the hash, and a 
     289false value otherwise. 
     290 
     291=item index_dirs 
     292 
     293    my $element   = $obj->index_dirs(3); 
     294    my @elements  = $obj->index_dirs(@indices); 
     295    my $array_ref = $obj->index_dirs(@indices); 
     296 
     297Takes a list of indices and returns the elements indicated by those indices. 
     298If only one index is given, the corresponding array element is returned. If 
     299several indices are given, the result is returned as an array in list context 
     300or as an array reference in scalar context. 
     301 
     302=item keys_result 
     303 
     304    my @keys = $obj->keys_result; 
     305 
     306Returns a list of all hash keys in no particular order. 
     307 
     308=item min_length 
     309 
     310    my $value = $obj->min_length; 
     311    $obj->min_length($value); 
     312 
     313A basic getter/setter method. If called without an argument, it returns the 
     314value. If called with a single argument, it sets the value. 
     315 
     316=item min_length_clear 
     317 
     318    $obj->min_length_clear; 
     319 
     320Clears the value. 
     321 
     322=item pop_dirs 
     323 
     324    my $value = $obj->pop_dirs; 
     325 
     326Pops the last element off the array, returning it. 
     327 
     328=item push_dirs 
     329 
     330    $obj->push_dirs(@values); 
     331 
     332Pushes elements onto the end of the array. 
     333 
     334=item result 
     335 
     336    my %hash     = $obj->result; 
     337    my $hash_ref = $obj->result; 
     338    my $value    = $obj->result($key); 
     339    my @values   = $obj->result([ qw(foo bar) ]); 
     340    $obj->result(%other_hash); 
     341    $obj->result(foo => 23, bar => 42); 
     342 
     343Get or set the hash values. If called without arguments, it returns the hash 
     344in list context, or a reference to the hash in scalar context. If called 
     345with a list of key/value pairs, it sets each key to its corresponding value, 
     346then returns the hash as described before. 
     347 
     348If called with exactly one key, it returns the corresponding value. 
     349 
     350If called with exactly one array reference, it returns an array whose elements 
     351are the values corresponding to the keys in the argument array, in the same 
     352order. The resulting list is returned as an array in list context, or a 
     353reference to the array in scalar context. 
     354 
     355If called with exactly one hash reference, it updates the hash with the given 
     356key/value pairs, then returns the hash in list context, or a reference to the 
     357hash in scalar context. 
     358 
     359=item result_clear 
     360 
     361    $obj->result_clear; 
     362 
     363Deletes all keys and values from the hash. 
     364 
     365=item result_delete 
     366 
     367    $obj->result_delete(@keys); 
     368 
     369Takes a list of keys and deletes those keys from the hash. 
     370 
     371=item result_exists 
     372 
     373    if ($obj->result_exists($key)) { ... } 
     374 
     375Takes a key and returns a true value if the key exists in the hash, and a 
     376false value otherwise. 
     377 
     378=item result_keys 
     379 
     380    my @keys = $obj->result_keys; 
     381 
     382Returns a list of all hash keys in no particular order. 
     383 
     384=item result_values 
     385 
     386    my @values = $obj->result_values; 
     387 
     388Returns a list of all hash values in no particular order. 
     389 
     390=item set_dirs 
     391 
     392    $obj->set_dirs(1 => $x, 5 => $y); 
     393 
     394Takes a list of index/value pairs and for each pair it sets the array element 
     395at the indicated index to the indicated value. Returns the number of elements 
     396that have been set. 
     397 
     398=item set_verbose 
     399 
     400    $obj->set_verbose; 
     401 
     402Sets the boolean value to 1. 
     403 
     404=item shift_dirs 
     405 
     406    my $value = $obj->shift_dirs; 
     407 
     408Shifts the first element off the array, returning it. 
     409 
     410=item splice_dirs 
     411 
     412    $obj->splice_dirs(2, 1, $x, $y); 
     413    $obj->splice_dirs(-1); 
     414    $obj->splice_dirs(0, -1); 
     415 
     416Takes three arguments: An offset, a length and a list. 
     417 
     418Removes the elements designated by the offset and the length from the array, 
     419and replaces them with the elements of the list, if any. In list context, 
     420returns the elements removed from the array. In scalar context, returns the 
     421last element removed, or C<undef> if no elements are removed. The array grows 
     422or shrinks as necessary. If the offset is negative then it starts that far 
     423from the end of the array. If the length is omitted, removes everything from 
     424the offset onward. If the length is negative, removes the elements from the 
     425offset onward except for -length elements at the end of the array. If both the 
     426offset and the length are omitted, removes everything. If the offset is past 
     427the end of the array, it issues a warning, and splices at the end of the 
     428array. 
     429 
     430=item unshift_dirs 
     431 
     432    $obj->unshift_dirs(@values); 
     433 
     434Unshifts elements onto the beginning of the array. 
     435 
     436=item values_result 
     437 
     438    my @values = $obj->values_result; 
     439 
     440Returns a list of all hash values in no particular order. 
     441 
     442=item verbose 
     443 
     444    $obj->verbose($value); 
     445    my $value = $obj->verbose; 
     446 
     447If called without an argument, returns the boolean value (0 or 1). If called 
     448with an argument, it normalizes it to the boolean value. That is, the values 
     4490, undef and the empty string become 0; everything else becomes 1. 
     450 
     451=item verbose_clear 
     452 
     453    $obj->verbose_clear; 
     454 
     455Clears the boolean value by setting it to 0. 
     456 
     457=item verbose_set 
     458 
     459    $obj->verbose_set; 
     460 
     461Sets the boolean value to 1. 
    151462 
    152463=item parse 
     
    179490=back 
    180491 
    181 {% p.write_inheritance %} 
    182  
    183 {% PROCESS standard_pod %} 
     492Vim::Complete inherits from L<Class::Accessor::Complex>. 
     493 
     494The superclass L<Class::Accessor::Complex> defines these methods and 
     495functions: 
     496 
     497    mk_abstract_accessors(), mk_array_accessors(), mk_boolean_accessors(), 
     498    mk_class_array_accessors(), mk_class_hash_accessors(), 
     499    mk_class_scalar_accessors(), mk_concat_accessors(), 
     500    mk_forward_accessors(), mk_hash_accessors(), mk_integer_accessors(), 
     501    mk_new(), mk_object_accessors(), mk_scalar_accessors(), 
     502    mk_set_accessors(), mk_singleton() 
     503 
     504The superclass L<Class::Accessor> defines these methods and functions: 
     505 
     506    _carp(), _croak(), _mk_accessors(), accessor_name_for(), 
     507    best_practice_accessor_name_for(), best_practice_mutator_name_for(), 
     508    follow_best_practice(), get(), make_accessor(), make_ro_accessor(), 
     509    make_wo_accessor(), mk_accessors(), mk_ro_accessors(), 
     510    mk_wo_accessors(), mutator_name_for(), set() 
     511 
     512The superclass L<Class::Accessor::Installer> defines these methods and 
     513functions: 
     514 
     515    install_accessor() 
     516 
     517=head1 BUGS AND LIMITATIONS 
     518 
     519No bugs have been reported. 
     520 
     521Please report any bugs or feature requests through the web interface at 
     522L<http://rt.cpan.org>. 
     523 
     524=head1 INSTALLATION 
     525 
     526See perlmodinstall for information and options on installing Perl modules. 
     527 
     528=head1 AVAILABILITY 
     529 
     530The latest version of this module is available from the Comprehensive Perl 
     531Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 
     532site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 
     533 
     534=head1 AUTHORS 
     535 
     536Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 
     537 
     538=head1 COPYRIGHT AND LICENSE 
     539 
     540Copyright 2007-2008 by the authors. 
     541 
     542This library is free software; you can redistribute it and/or modify 
     543it under the same terms as Perl itself. 
     544 
    184545 
    185546=cut