Changeset 16465
- Timestamp:
- 07/25/08 23:03:14 (5 years ago)
- Location:
- lang/perl/Data-Semantic/trunk
- Files:
-
- 7 modified
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (2 diffs)
-
MANIFEST.SKIP (modified) (3 diffs)
-
Makefile.PL (modified) (1 diff)
-
lib/Data/Semantic.pm (modified) (2 diffs)
-
lib/Data/Semantic/RegexpAdapter.pm (modified) (3 diffs)
-
lib/Data/Semantic/Test.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Data-Semantic/trunk/Changes
r16330 r16465 1 1 Revision history for Perl extension Data-Semantic 2 3 0.04 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.03 Thu, 29 May 2008 12:03:26 -0000 (Marcel Gruenauer <marcel@cpan.org>) -
lang/perl/Data-Semantic/trunk/MANIFEST
r16330 r16465 9 9 inc/Module/Install/Makefile.pm 10 10 inc/Module/Install/Metadata.pm 11 inc/Module/Install/StandardTests.pm12 inc/Module/Install/Template.pm13 11 inc/Module/Install/Win32.pm 14 12 inc/Module/Install/WriteAll.pm … … 16 14 inc/Test/Differences.pm 17 15 inc/Test/More.pm 18 inc/UNIVERSAL/require.pm19 16 lib/Data/Semantic.pm 20 17 lib/Data/Semantic/RegexpAdapter.pm -
lang/perl/Data-Semantic/trunk/MANIFEST.SKIP
r9762 r16465 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 ^\.# … … 35 38 core 36 39 ^var/ 37 local/ -
lang/perl/Data-Semantic/trunk/Makefile.PL
r9762 r16465 11 11 requires 'Test::CompanionClasses' => '0.03'; 12 12 13 build_requires 'Test::Differences';14 build_requires 'Test::More' => '0.70';13 recommends 'Test::Pod'; 14 recommends 'Test::Pod::Coverage'; 15 15 16 process_templates( 17 first_year => 2007, 18 rest_from => "$ENV{HOME}/.mitlib/standard_pod", 19 start_tag => '{%', 20 end_tag => '%}', 21 ); 16 test_requires 'Test::Differences'; 17 test_requires 'Test::More' => '0.70'; 18 test_requires 'Test::Compile'; 22 19 23 use_standard_tests(without => 'pod_coverage');24 20 auto_install; 25 21 auto_include; -
lang/perl/Data-Semantic/trunk/lib/Data/Semantic.pm
r9762 r16465 42 42 __END__ 43 43 44 {% USE p = PodGenerated %} 44 45 45 46 46 =head1 NAME 47 47 48 {% p.package %}- Common API for data with semantics attached to them48 Data::Semantic - Common API for data with semantics attached to them 49 49 50 50 =head1 SYNOPSIS 51 51 52 {% p.package %}->new;52 Data::Semantic->new; 53 53 54 54 =head1 DESCRIPTION … … 88 88 =over 4 89 89 90 {% p.write_methods %} 90 =item new 91 92 my $obj = Data::Semantic->new; 93 my $obj = Data::Semantic->new(%args); 94 95 Creates and returns a new object. The constructor will accept as arguments a 96 list of pairs, from component name to initial value. For each pair, the named 97 component is initialized by calling the method of the same name with the given 98 value. If called with a single hash reference, it is dereferenced and its 99 key/value pairs are set as described before. 91 100 92 101 =back 93 102 94 {% p.write_inheritance %} 103 Data::Semantic inherits from L<Class::Accessor::Complex>. 95 104 96 {% PROCESS standard_pod %} 105 The superclass L<Class::Accessor::Complex> defines these methods and 106 functions: 107 108 mk_abstract_accessors(), mk_array_accessors(), mk_boolean_accessors(), 109 mk_class_array_accessors(), mk_class_hash_accessors(), 110 mk_class_scalar_accessors(), mk_concat_accessors(), 111 mk_forward_accessors(), mk_hash_accessors(), mk_integer_accessors(), 112 mk_new(), mk_object_accessors(), mk_scalar_accessors(), 113 mk_set_accessors(), mk_singleton() 114 115 The superclass L<Class::Accessor> defines these methods and functions: 116 117 _carp(), _croak(), _mk_accessors(), accessor_name_for(), 118 best_practice_accessor_name_for(), best_practice_mutator_name_for(), 119 follow_best_practice(), get(), make_accessor(), make_ro_accessor(), 120 make_wo_accessor(), mk_accessors(), mk_ro_accessors(), 121 mk_wo_accessors(), mutator_name_for(), set() 122 123 The superclass L<Class::Accessor::Installer> defines these methods and 124 functions: 125 126 install_accessor() 127 128 =head1 BUGS AND LIMITATIONS 129 130 No bugs have been reported. 131 132 Please report any bugs or feature requests through the web interface at 133 L<http://rt.cpan.org>. 134 135 =head1 INSTALLATION 136 137 See perlmodinstall for information and options on installing Perl modules. 138 139 =head1 AVAILABILITY 140 141 The latest version of this module is available from the Comprehensive Perl 142 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 143 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 144 145 =head1 AUTHORS 146 147 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 148 149 =head1 COPYRIGHT AND LICENSE 150 151 Copyright 2007-2008 by the authors. 152 153 This library is free software; you can redistribute it and/or modify 154 it under the same terms as Perl itself. 155 97 156 98 157 =cut -
lang/perl/Data-Semantic/trunk/lib/Data/Semantic/RegexpAdapter.pm
r9762 r16465 80 80 __END__ 81 81 82 {% USE p = PodGenerated %} 82 83 83 84 84 =head1 NAME 85 85 86 {% p.package %}- Adapter for Regexp::Common patterns86 Data::Semantic::RegexpAdapter - Adapter for Regexp::Common patterns 87 87 88 88 =head1 SYNOPSIS 89 89 90 {% p.package %}->new;90 Data::Semantic::RegexpAdapter->new; 91 91 92 92 =head1 DESCRIPTION … … 99 99 =over 4 100 100 101 {% p.write_methods %} 101 =item clear_keep 102 103 $obj->clear_keep; 104 105 Clears the boolean value by setting it to 0. 106 107 =item clear_kept 108 109 $obj->clear_kept; 110 111 Deletes all keys and values from the hash. 112 113 =item clear_re 114 115 $obj->clear_re; 116 117 Clears the value. 118 119 =item delete_kept 120 121 $obj->delete_kept(@keys); 122 123 Takes a list of keys and deletes those keys from the hash. 124 125 =item exists_kept 126 127 if ($obj->exists_kept($key)) { ... } 128 129 Takes a key and returns a true value if the key exists in the hash, and a 130 false value otherwise. 131 132 =item keep 133 134 $obj->keep($value); 135 my $value = $obj->keep; 136 137 If called without an argument, returns the boolean value (0 or 1). If called 138 with an argument, it normalizes it to the boolean value. That is, the values 139 0, undef and the empty string become 0; everything else becomes 1. 140 141 =item keep_clear 142 143 $obj->keep_clear; 144 145 Clears the boolean value by setting it to 0. 146 147 =item keep_set 148 149 $obj->keep_set; 150 151 Sets the boolean value to 1. 152 153 =item kept 154 155 my %hash = $obj->kept; 156 my $hash_ref = $obj->kept; 157 my $value = $obj->kept($key); 158 my @values = $obj->kept([ qw(foo bar) ]); 159 $obj->kept(%other_hash); 160 $obj->kept(foo => 23, bar => 42); 161 162 Get or set the hash values. If called without arguments, it returns the hash 163 in list context, or a reference to the hash in scalar context. If called 164 with a list of key/value pairs, it sets each key to its corresponding value, 165 then returns the hash as described before. 166 167 If called with exactly one key, it returns the corresponding value. 168 169 If called with exactly one array reference, it returns an array whose elements 170 are the values corresponding to the keys in the argument array, in the same 171 order. The resulting list is returned as an array in list context, or a 172 reference to the array in scalar context. 173 174 If called with exactly one hash reference, it updates the hash with the given 175 key/value pairs, then returns the hash in list context, or a reference to the 176 hash in scalar context. 177 178 =item kept_clear 179 180 $obj->kept_clear; 181 182 Deletes all keys and values from the hash. 183 184 =item kept_delete 185 186 $obj->kept_delete(@keys); 187 188 Takes a list of keys and deletes those keys from the hash. 189 190 =item kept_exists 191 192 if ($obj->kept_exists($key)) { ... } 193 194 Takes a key and returns a true value if the key exists in the hash, and a 195 false value otherwise. 196 197 =item kept_keys 198 199 my @keys = $obj->kept_keys; 200 201 Returns a list of all hash keys in no particular order. 202 203 =item kept_values 204 205 my @values = $obj->kept_values; 206 207 Returns a list of all hash values in no particular order. 208 209 =item keys_kept 210 211 my @keys = $obj->keys_kept; 212 213 Returns a list of all hash keys in no particular order. 214 215 =item re 216 217 my $value = $obj->re; 218 $obj->re($value); 219 220 A basic getter/setter method. If called without an argument, it returns the 221 value. If called with a single argument, it sets the value. 222 223 =item re_clear 224 225 $obj->re_clear; 226 227 Clears the value. 228 229 =item set_keep 230 231 $obj->set_keep; 232 233 Sets the boolean value to 1. 234 235 =item values_kept 236 237 my @values = $obj->values_kept; 238 239 Returns a list of all hash values in no particular order. 102 240 103 241 =item LOAD … … 138 276 =back 139 277 140 {% p.write_inheritance %} 141 142 {% PROCESS standard_pod %} 278 Data::Semantic::RegexpAdapter inherits from L<Data::Semantic> and 279 L<Data::Inherited>. 280 281 The superclass L<Data::Semantic> defines these methods and functions: 282 283 new(), is_valid(), normalize() 284 285 The superclass L<Class::Accessor::Complex> defines these methods and 286 functions: 287 288 mk_abstract_accessors(), mk_array_accessors(), mk_boolean_accessors(), 289 mk_class_array_accessors(), mk_class_hash_accessors(), 290 mk_class_scalar_accessors(), mk_concat_accessors(), 291 mk_forward_accessors(), mk_hash_accessors(), mk_integer_accessors(), 292 mk_new(), mk_object_accessors(), mk_scalar_accessors(), 293 mk_set_accessors(), mk_singleton() 294 295 The superclass L<Class::Accessor> defines these methods and functions: 296 297 _carp(), _croak(), _mk_accessors(), accessor_name_for(), 298 best_practice_accessor_name_for(), best_practice_mutator_name_for(), 299 follow_best_practice(), get(), make_accessor(), make_ro_accessor(), 300 make_wo_accessor(), mk_accessors(), mk_ro_accessors(), 301 mk_wo_accessors(), mutator_name_for(), set() 302 303 The superclass L<Class::Accessor::Installer> defines these methods and 304 functions: 305 306 install_accessor() 307 308 The superclass L<Data::Inherited> defines these methods and functions: 309 310 every_hash(), every_list(), flush_every_cache_by_key() 311 312 =head1 BUGS AND LIMITATIONS 313 314 No bugs have been reported. 315 316 Please report any bugs or feature requests through the web interface at 317 L<http://rt.cpan.org>. 318 319 =head1 INSTALLATION 320 321 See perlmodinstall for information and options on installing Perl modules. 322 323 =head1 AVAILABILITY 324 325 The latest version of this module is available from the Comprehensive Perl 326 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 327 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 328 329 =head1 AUTHORS 330 331 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 332 333 =head1 COPYRIGHT AND LICENSE 334 335 Copyright 2007-2008 by the authors. 336 337 This library is free software; you can redistribute it and/or modify 338 it under the same terms as Perl itself. 339 143 340 144 341 =cut -
lang/perl/Data-Semantic/trunk/lib/Data/Semantic/Test.pm
r9762 r16465 79 79 __END__ 80 80 81 {% USE p = PodGenerated %} 81 82 82 83 83 =head1 NAME 84 84 85 {% p.package %}- Testing Data::Semantic objects85 Data::Semantic::Test - Testing Data::Semantic objects 86 86 87 87 =head1 SYNOPSIS 88 88 89 {% p.package %}->new;89 Data::Semantic::Test->new; 90 90 91 91 =head1 DESCRIPTION … … 149 149 =over 4 150 150 151 {% p.write_methods %} 151 152 152 153 153 =back 154 154 155 {% p.write_inheritance %} 156 157 {% PROCESS standard_pod %} 155 Data::Semantic::Test inherits from L<Test::CompanionClasses::Base>. 156 157 The superclass L<Test::CompanionClasses::Base> defines these methods and 158 functions: 159 160 new(), clear_package(), make_real_object(), package(), package_clear(), 161 planned_test_count() 162 163 The superclass L<Class::Accessor::Complex> defines these methods and 164 functions: 165 166 mk_abstract_accessors(), mk_array_accessors(), mk_boolean_accessors(), 167 mk_class_array_accessors(), mk_class_hash_accessors(), 168 mk_class_scalar_accessors(), mk_concat_accessors(), 169 mk_forward_accessors(), mk_hash_accessors(), mk_integer_accessors(), 170 mk_new(), mk_object_accessors(), mk_scalar_accessors(), 171 mk_set_accessors(), mk_singleton() 172 173 The superclass L<Class::Accessor> defines these methods and functions: 174 175 _carp(), _croak(), _mk_accessors(), accessor_name_for(), 176 best_practice_accessor_name_for(), best_practice_mutator_name_for(), 177 follow_best_practice(), get(), make_accessor(), make_ro_accessor(), 178 make_wo_accessor(), mk_accessors(), mk_ro_accessors(), 179 mk_wo_accessors(), mutator_name_for(), set() 180 181 The superclass L<Class::Accessor::Installer> defines these methods and 182 functions: 183 184 install_accessor() 185 186 The superclass L<Data::Inherited> defines these methods and functions: 187 188 every_hash(), every_list(), flush_every_cache_by_key() 189 190 =head1 BUGS AND LIMITATIONS 191 192 No bugs have been reported. 193 194 Please report any bugs or feature requests through the web interface at 195 L<http://rt.cpan.org>. 196 197 =head1 INSTALLATION 198 199 See perlmodinstall for information and options on installing Perl modules. 200 201 =head1 AVAILABILITY 202 203 The latest version of this module is available from the Comprehensive Perl 204 Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN 205 site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>. 206 207 =head1 AUTHORS 208 209 Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >> 210 211 =head1 COPYRIGHT AND LICENSE 212 213 Copyright 2007-2008 by the authors. 214 215 This library is free software; you can redistribute it and/or modify 216 it under the same terms as Perl itself. 217 158 218 159 219 =cut
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)