Changeset 16489
- Timestamp:
- 07/25/08 23:09:47 (5 years ago)
- Location:
- lang/perl/Module-Changes/trunk
- Files:
-
- 16 modified
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (2 diffs)
-
MANIFEST.SKIP (modified) (2 diffs)
-
Makefile.PL (modified) (1 diff)
-
bin/changes (modified) (1 diff)
-
lib/Module/Changes.pm (modified) (2 diffs)
-
lib/Module/Changes/Base.pm (modified) (2 diffs)
-
lib/Module/Changes/Entire.pm (modified) (3 diffs)
-
lib/Module/Changes/Formatter.pm (modified) (3 diffs)
-
lib/Module/Changes/Formatter/Free.pm (modified) (3 diffs)
-
lib/Module/Changes/Formatter/YAML.pm (modified) (3 diffs)
-
lib/Module/Changes/Parser.pm (modified) (3 diffs)
-
lib/Module/Changes/Parser/Free.pm (modified) (3 diffs)
-
lib/Module/Changes/Parser/YAML.pm (modified) (3 diffs)
-
lib/Module/Changes/Release.pm (modified) (4 diffs)
-
lib/Module/Changes/Validator/YAML.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Module-Changes/trunk/Changes
r16354 r16489 1 1 Revision history for Perl extension Module-Changes 2 3 0.07 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. 2 7 3 8 0.06 Thu, 29 May 2008 12:05:55 -0000 (Marcel Gruenauer <marcel@cpan.org>) -
lang/perl/Module-Changes/trunk/MANIFEST
r16354 r16489 12 12 inc/Module/Install/Makefile.pm 13 13 inc/Module/Install/Metadata.pm 14 inc/Module/Install/StandardTests.pm15 inc/Module/Install/Template.pm16 14 inc/Module/Install/Win32.pm 17 15 inc/Module/Install/WriteAll.pm … … 19 17 inc/Test/Differences.pm 20 18 inc/Test/More.pm 21 inc/UNIVERSAL/require.pm22 19 lib/Module/Changes.pm 23 20 lib/Module/Changes/Base.pm -
lang/perl/Module-Changes/trunk/MANIFEST.SKIP
r9784 r16489 10 10 ^Build$ 11 11 ^blib/ 12 ^pm_to_blib/ 12 13 ^_build/ 13 14 ^MakeMaker-\d … … 27 28 \.old$ 28 29 \.swp$ 30 \.tar$ 31 \.tar\.gz$ 29 32 ^#.*#$ 30 33 ^\.# -
lang/perl/Module-Changes/trunk/Makefile.PL
r9784 r16489 18 18 requires 'YAML'; 19 19 20 build_requires 'Test::Differences';21 build_requires 'Test::More' => '0.70';20 recommends 'Test::Pod'; 21 recommends 'Test::Pod::Coverage'; 22 22 23 process_templates( 24 first_year => 2007, 25 rest_from => "$ENV{HOME}/.mitlib/standard_pod", 26 start_tag => '{%', 27 end_tag => '%}', 28 ); 23 test_requires 'Test::Differences'; 24 test_requires 'Test::More' => '0.70'; 25 test_requires 'Test::Compile'; 29 26 30 use_standard_tests(without => 'pod_coverage');31 27 auto_install; 32 28 auto_include; -
lang/perl/Module-Changes/trunk/bin/changes
r9784 r16489 284 284 =back 285 285 286 =head1 TAGS 287 288 If you talk about this module in blogs, on del.icio.us or anywhere else, 289 please use the C<modulechanges> tag. 290 291 =head1 BUGS AND LIMITATIONS 292 293 No bugs have been reported. 294 295 Please report any bugs or feature requests to 296 C<bug-module-changes@rt.cpan.org>, or through the web interface at 297 L<http://rt.cpan.org>. 298 299 =head1 INSTALLATION 300 301 See perlmodinstall for information and options on installing Perl modules. 302 303 =head1 AVAILABILITY 304 305 The latest version of this module is available from the Comprehensive Perl 306 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 307 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 308 309 =head1 AUTHOR 310 311 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 312 313 =head1 COPYRIGHT AND LICENSE 314 315 Copyright 2007 by Marcel GrE<uuml>nauer 316 317 This library is free software; you can redistribute it and/or modify 318 it under the same terms as Perl itself. 319 286 320 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes.pm
r9784 r16489 27 27 28 28 __END__ 29 30 {% USE p = PodGenerated %}31 29 32 30 =head1 NAME … … 136 134 Integrity check with regard to version numbers and timestamps. 137 135 138 {% PROCESS standard_pod %} 136 =head1 TAGS 137 138 If you talk about this module in blogs, on del.icio.us or anywhere else, 139 please use the C<modulechanges> tag. 140 141 =head1 BUGS AND LIMITATIONS 142 143 No bugs have been reported. 144 145 Please report any bugs or feature requests to 146 C<bug-module-changes@rt.cpan.org>, or through the web interface at 147 L<http://rt.cpan.org>. 148 149 =head1 INSTALLATION 150 151 See perlmodinstall for information and options on installing Perl modules. 152 153 =head1 AVAILABILITY 154 155 The latest version of this module is available from the Comprehensive Perl 156 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 157 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 158 159 =head1 AUTHOR 160 161 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 162 163 =head1 COPYRIGHT AND LICENSE 164 165 Copyright 2007 by Marcel GrE<uuml>nauer 166 167 This library is free software; you can redistribute it and/or modify 168 it under the same terms as Perl itself. 139 169 140 170 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Base.pm
r9784 r16489 18 18 __END__ 19 19 20 {% USE p = PodGenerated %}21 22 20 =head1 NAME 23 21 … … 36 34 =over 4 37 35 38 {% p.write_methods %} 36 =item new 37 38 A constructor per L<Class::Accessor::Constructor>. 39 39 40 40 =back 41 41 42 {% p.write_inheritance %} 42 =head1 TAGS 43 43 44 {% PROCESS standard_pod %} 44 If you talk about this module in blogs, on del.icio.us or anywhere else, 45 please use the C<modulechanges> tag. 46 47 =head1 BUGS AND LIMITATIONS 48 49 No bugs have been reported. 50 51 Please report any bugs or feature requests to 52 C<bug-module-changes@rt.cpan.org>, or through the web interface at 53 L<http://rt.cpan.org>. 54 55 =head1 INSTALLATION 56 57 See perlmodinstall for information and options on installing Perl modules. 58 59 =head1 AVAILABILITY 60 61 The latest version of this module is available from the Comprehensive Perl 62 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 63 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 64 65 =head1 AUTHOR 66 67 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 68 69 =head1 COPYRIGHT AND LICENSE 70 71 Copyright 2007 by Marcel GrE<uuml>nauer 72 73 This library is free software; you can redistribute it and/or modify 74 it under the same terms as Perl itself. 45 75 46 76 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Entire.pm
r9784 r16489 68 68 __END__ 69 69 70 {% USE p = PodGenerated %}71 72 70 =head1 NAME 73 71 … … 89 87 =head1 METHODS 90 88 89 This class inherits all methods from L<Module::Changes::Base>. 90 91 91 =over 4 92 92 93 {% p.write_methods %} 93 =item name 94 95 $changes->name('Foo-Bar'); 96 my $name = $changes->name; 97 98 Set or get the overall distribution name of the Changes file. 99 100 =item releases 101 102 $changes->releases_unshift($release); 103 for my $release ($changes->releases) { ... } 104 105 This is an array accessor giving access to all the releases contained in the 106 Changes file. See L<Class::Accessor::Complex>'s C<mk_array_accessors()> for 107 which methods are available. 94 108 95 109 =item newest_release … … 156 170 =back 157 171 158 {% p.write_inheritance %} 159 160 {% PROCESS standard_pod %} 172 =head1 TAGS 173 174 If you talk about this module in blogs, on del.icio.us or anywhere else, 175 please use the C<modulechanges> tag. 176 177 =head1 BUGS AND LIMITATIONS 178 179 No bugs have been reported. 180 181 Please report any bugs or feature requests to 182 C<bug-module-changes@rt.cpan.org>, or through the web interface at 183 L<http://rt.cpan.org>. 184 185 =head1 INSTALLATION 186 187 See perlmodinstall for information and options on installing Perl modules. 188 189 =head1 AVAILABILITY 190 191 The latest version of this module is available from the Comprehensive Perl 192 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 193 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 194 195 =head1 AUTHOR 196 197 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 198 199 =head1 COPYRIGHT AND LICENSE 200 201 Copyright 2007 by Marcel GrE<uuml>nauer 202 203 This library is free software; you can redistribute it and/or modify 204 it under the same terms as Perl itself. 161 205 162 206 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Formatter.pm
r9784 r16489 27 27 __END__ 28 28 29 {% USE p = PodGenerated %}30 31 29 =head1 NAME 32 30 … … 44 42 =head1 METHODS 45 43 44 This class inherits all methods from L<Module::Changes::Formatter>. 45 46 46 =over 4 47 47 48 {% p.write_methods %} 48 =item format 49 50 An abstract method that is used to format a changes object. Individual 51 formatters need to override and implement this method. 49 52 50 53 =item format_to_file … … 57 60 =back 58 61 59 {% p.write_inheritance %} 62 =head1 TAGS 60 63 61 {% PROCESS standard_pod %} 64 If you talk about this module in blogs, on del.icio.us or anywhere else, 65 please use the C<modulechanges> tag. 66 67 =head1 BUGS AND LIMITATIONS 68 69 No bugs have been reported. 70 71 Please report any bugs or feature requests to 72 C<bug-module-changes@rt.cpan.org>, or through the web interface at 73 L<http://rt.cpan.org>. 74 75 =head1 INSTALLATION 76 77 See perlmodinstall for information and options on installing Perl modules. 78 79 =head1 AVAILABILITY 80 81 The latest version of this module is available from the Comprehensive Perl 82 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 83 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 84 85 =head1 AUTHOR 86 87 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 88 89 =head1 COPYRIGHT AND LICENSE 90 91 Copyright 2007 by Marcel GrE<uuml>nauer 92 93 This library is free software; you can redistribute it and/or modify 94 it under the same terms as Perl itself. 62 95 63 96 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Formatter/Free.pm
r9784 r16489 66 66 __END__ 67 67 68 {% USE p = PodGenerated %}69 70 68 =head1 NAME 71 69 … … 87 85 =head1 METHODS 88 86 87 This class inherits all methods from L<Module::Changes::Formatter>. 88 89 89 =over 4 90 90 91 {% p.write_methods %} 91 =item indent 92 93 $formatter->indent(4); 94 my $indent = $formatter->indent; 95 96 Set or get the indent used to format individual changes and tags lines. The 97 default is an indent of 4. 92 98 93 99 =item format_line … … 119 125 =back 120 126 121 {% p.write_inheritance %} 127 =head1 TAGS 122 128 123 {% PROCESS standard_pod %} 129 If you talk about this module in blogs, on del.icio.us or anywhere else, 130 please use the C<modulechanges> tag. 131 132 =head1 BUGS AND LIMITATIONS 133 134 No bugs have been reported. 135 136 Please report any bugs or feature requests to 137 C<bug-module-changes@rt.cpan.org>, or through the web interface at 138 L<http://rt.cpan.org>. 139 140 =head1 INSTALLATION 141 142 See perlmodinstall for information and options on installing Perl modules. 143 144 =head1 AVAILABILITY 145 146 The latest version of this module is available from the Comprehensive Perl 147 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 148 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 149 150 =head1 AUTHOR 151 152 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 153 154 =head1 COPYRIGHT AND LICENSE 155 156 Copyright 2007 by Marcel GrE<uuml>nauer 157 158 This library is free software; you can redistribute it and/or modify 159 it under the same terms as Perl itself. 124 160 125 161 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Formatter/YAML.pm
r9784 r16489 38 38 __END__ 39 39 40 {% USE p = PodGenerated %}41 42 40 =head1 NAME 43 41 … … 57 55 =head1 METHODS 58 56 57 This class inherits all methods from L<Module::Changes::Formatter>. 58 59 59 =over 4 60 61 {% p.write_methods %}62 60 63 61 =item format … … 69 67 =back 70 68 71 {% p.write_inheritance %} 69 =head1 TAGS 72 70 73 {% PROCESS standard_pod %} 71 If you talk about this module in blogs, on del.icio.us or anywhere else, 72 please use the C<modulechanges> tag. 73 74 =head1 BUGS AND LIMITATIONS 75 76 No bugs have been reported. 77 78 Please report any bugs or feature requests to 79 C<bug-module-changes@rt.cpan.org>, or through the web interface at 80 L<http://rt.cpan.org>. 81 82 =head1 INSTALLATION 83 84 See perlmodinstall for information and options on installing Perl modules. 85 86 =head1 AVAILABILITY 87 88 The latest version of this module is available from the Comprehensive Perl 89 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 90 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 91 92 =head1 AUTHOR 93 94 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 95 96 =head1 COPYRIGHT AND LICENSE 97 98 Copyright 2007 by Marcel GrE<uuml>nauer 99 100 This library is free software; you can redistribute it and/or modify 101 it under the same terms as Perl itself. 74 102 75 103 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Parser.pm
r9784 r16489 34 34 __END__ 35 35 36 {% USE p = PodGenerated %}37 38 36 =head1 NAME 39 37 … … 51 49 =head1 METHODS 52 50 51 This class inherits all methods from L<Module::Changes::Base>. 52 53 53 =over 4 54 54 55 {% p.write_methods %} 55 =item parse_string 56 57 An abstract method that is used to parse a string into a Changes object. 58 Individual parsers need to override and implement this method. 56 59 57 60 =item parse_from_filehandle … … 71 74 =back 72 75 73 {% p.write_inheritance %} 76 =head1 TAGS 74 77 75 {% PROCESS standard_pod %} 78 If you talk about this module in blogs, on del.icio.us or anywhere else, 79 please use the C<modulechanges> tag. 80 81 =head1 BUGS AND LIMITATIONS 82 83 No bugs have been reported. 84 85 Please report any bugs or feature requests to 86 C<bug-module-changes@rt.cpan.org>, or through the web interface at 87 L<http://rt.cpan.org>. 88 89 =head1 INSTALLATION 90 91 See perlmodinstall for information and options on installing Perl modules. 92 93 =head1 AVAILABILITY 94 95 The latest version of this module is available from the Comprehensive Perl 96 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 97 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 98 99 =head1 AUTHOR 100 101 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 102 103 =head1 COPYRIGHT AND LICENSE 104 105 Copyright 2007 by Marcel GrE<uuml>nauer 106 107 This library is free software; you can redistribute it and/or modify 108 it under the same terms as Perl itself. 76 109 77 110 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Parser/Free.pm
r9784 r16489 84 84 1; 85 85 86 87 86 __END__ 88 89 {% USE p = PodGenerated %}90 87 91 88 =head1 NAME … … 128 125 =head1 METHODS 129 126 127 This class inherits all methods from L<Module::Changes::Parser>. 128 130 129 =over 4 131 132 {% p.write_methods %}133 130 134 131 =item parse_string … … 141 138 =back 142 139 143 {% p.write_inheritance %} 140 =head1 TAGS 144 141 145 {% PROCESS standard_pod %} 142 If you talk about this module in blogs, on del.icio.us or anywhere else, 143 please use the C<modulechanges> tag. 144 145 =head1 BUGS AND LIMITATIONS 146 147 No bugs have been reported. 148 149 Please report any bugs or feature requests to 150 C<bug-module-changes@rt.cpan.org>, or through the web interface at 151 L<http://rt.cpan.org>. 152 153 =head1 INSTALLATION 154 155 See perlmodinstall for information and options on installing Perl modules. 156 157 =head1 AVAILABILITY 158 159 The latest version of this module is available from the Comprehensive Perl 160 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 161 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 162 163 =head1 AUTHOR 164 165 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 166 167 =head1 COPYRIGHT AND LICENSE 168 169 Copyright 2007 by Marcel GrE<uuml>nauer 170 171 This library is free software; you can redistribute it and/or modify 172 it under the same terms as Perl itself. 146 173 147 174 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Parser/YAML.pm
r9784 r16489 43 43 1; 44 44 45 46 45 __END__ 47 48 {% USE p = PodGenerated %}49 46 50 47 =head1 NAME … … 65 62 =head1 METHODS 66 63 64 This class inherits all methods from L<Module::Changes::Parser>. 65 67 66 =over 4 68 69 {% p.write_methods %}70 67 71 68 =item parse_string … … 78 75 =back 79 76 80 {% p.write_inheritance %} 77 =head1 TAGS 81 78 82 {% PROCESS standard_pod %} 79 If you talk about this module in blogs, on del.icio.us or anywhere else, 80 please use the C<modulechanges> tag. 81 82 =head1 BUGS AND LIMITATIONS 83 84 No bugs have been reported. 85 86 Please report any bugs or feature requests to 87 C<bug-module-changes@rt.cpan.org>, or through the web interface at 88 L<http://rt.cpan.org>. 89 90 =head1 INSTALLATION 91 92 See perlmodinstall for information and options on installing Perl modules. 93 94 =head1 AVAILABILITY 95 96 The latest version of this module is available from the Comprehensive Perl 97 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 98 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 99 100 =head1 AUTHOR 101 102 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 103 104 =head1 COPYRIGHT AND LICENSE 105 106 Copyright 2007 by Marcel GrE<uuml>nauer 107 108 This library is free software; you can redistribute it and/or modify 109 it under the same terms as Perl itself. 83 110 84 111 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Release.pm
r9784 r16489 61 61 __END__ 62 62 63 {% USE p = PodGenerated %}64 65 63 =head1 NAME 66 64 … … 73 71 $release->touch_date; 74 72 75 $release->date(DateTime::Format::W3CDTF->new->parse_datetime(...));76 print DateTime::Format::Mail->new->format_datetime($release->date);77 78 73 =head1 DESCRIPTION 79 74 80 This class represents a release within the Changes file. The date is a 81 L<DateTime> object. 82 83 Releases can also have tags. Tags are a way to help other programs understand 84 (or at least guess) what has happened in each release. Tags are just strings. 85 See the documentation for the C<changes> program for a discussion of 86 recommended tags. 75 This class represents a release within the Changes file. 87 76 88 77 =head1 METHODS 89 78 79 This class inherits all methods from L<Module::Changes::Base>. 80 90 81 =over 4 91 82 92 {% p.write_methods %} 83 =item version 84 85 $release->version(Perl::Version->new->('0.01')); 86 print $release->version; 87 88 Set or get the release's version number. You need to use a L<Perl::Version> 89 object. 93 90 94 91 =item version_as_string … … 97 94 98 95 Takes the release's version object and returns a string representation. 96 97 =item date 98 99 $release->date(DateTime::Format::W3CDTF->new->parse_datetime(...)); 100 print DateTime::Format::Mail->new->format_datetime($release->date); 101 102 Set or get the release's date. You need to use a L<DateTime> object. 103 104 =item author 105 106 $release->author('Marcel Gruenauer <marcel@cpan.org>'); 107 print $release->author; 108 109 Set or get the release's author. It is recommended that you use a string as 110 shown above. 111 112 =item changes 113 114 $release->changes_push('Added foobar()'); 115 for my $change ($release->changes) { ... } 116 117 This is an array accessor giving access to all the changes contained in the 118 release. See L<Class::Accessor::Complex>'s C<mk_array_accessors()> for which 119 methods are available. 120 121 Changes are just strings. 122 123 =item tags 124 125 $release->tags_push('APIBREAK'); 126 for my $tag ($release->tags) { ... } 127 128 This is an array accessor giving access to all the tags contained in the 129 release. See L<Class::Accessor::Complex>'s C<mk_array_accessors()> for which 130 methods are available. 131 132 Tags are a way to help other programs understand (or at least guess) what has 133 happened in each release. 134 135 Tags are just strings. See the documentation for the C<changes> program for a 136 discussion of recommended tags. 99 137 100 138 =item touch_date … … 120 158 =back 121 159 122 {% p.write_inheritance %} 160 =head1 TAGS 123 161 124 {% PROCESS standard_pod %} 162 If you talk about this module in blogs, on del.icio.us or anywhere else, 163 please use the C<modulechanges> tag. 164 165 =head1 BUGS AND LIMITATIONS 166 167 No bugs have been reported. 168 169 Please report any bugs or feature requests to 170 C<bug-module-changes@rt.cpan.org>, or through the web interface at 171 L<http://rt.cpan.org>. 172 173 =head1 INSTALLATION 174 175 See perlmodinstall for information and options on installing Perl modules. 176 177 =head1 AVAILABILITY 178 179 The latest version of this module is available from the Comprehensive Perl 180 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 181 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 182 183 =head1 AUTHOR 184 185 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 186 187 =head1 COPYRIGHT AND LICENSE 188 189 Copyright 2007 by Marcel GrE<uuml>nauer 190 191 This library is free software; you can redistribute it and/or modify 192 it under the same terms as Perl itself. 125 193 126 194 =cut -
lang/perl/Module-Changes/trunk/lib/Module/Changes/Validator/YAML.pm
r9784 r16489 57 57 __END__ 58 58 59 {% USE p = PodGenerated %}60 61 59 =head1 NAME 62 60 63 Module::Changes:: Validator::YAML - validate a YAML Changes string61 Module::Changes::Formatter::YAML - format a Changes object as YAML 64 62 65 63 =head1 SYNOPSIS 66 64 67 65 use Module::Changes; 68 my $ validator = Module::Changes->make_object_for_type('validator_yaml');69 $ validatew->validate($yaml);66 my $formatter = Module::Changes->make_object_for_type('formatter_yaml'); 67 $formatter->format($changes); 70 68 71 69 =head1 DESCRIPTION 72 70 73 This class can validate YAML strings. The requiredlayout of the YAML file is71 This class can format a Changes object as YAML. The layout of the YAML file is 74 72 documented in L<Module::Changes>. 75 73 76 74 =head1 METHODS 77 75 76 This class inherits all methods from L<Module::Changes::Formatter>. 77 78 78 =over 4 79 79 80 {% p.write_methods %} 80 =item format 81 81 82 =item validate 82 print $formatter->format($changes); 83 83 84 print $validator->validate($yaml); 85 86 Takes a YAML string and validates it, returning a boolean value. 84 Takes a changes object and formats it as YAML, then returns the result string. 87 85 88 86 =back 89 87 90 {% p.write_inheritance %} 88 =head1 TAGS 91 89 92 {% PROCESS standard_pod %} 90 If you talk about this module in blogs, on del.icio.us or anywhere else, 91 please use the C<modulechanges> tag. 92 93 =head1 BUGS AND LIMITATIONS 94 95 No bugs have been reported. 96 97 Please report any bugs or feature requests to 98 C<bug-module-changes@rt.cpan.org>, or through the web interface at 99 L<http://rt.cpan.org>. 100 101 =head1 INSTALLATION 102 103 See perlmodinstall for information and options on installing Perl modules. 104 105 =head1 AVAILABILITY 106 107 The latest version of this module is available from the Comprehensive Perl 108 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 109 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 110 111 =head1 AUTHOR 112 113 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 114 115 =head1 COPYRIGHT AND LICENSE 116 117 Copyright 2007 by Marcel GrE<uuml>nauer 118 119 This library is free software; you can redistribute it and/or modify 120 it under the same terms as Perl itself. 93 121 94 122 =cut
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)