Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Version 2.9.0

  • Loading branch information...
commit f7d577ca3512e2d5a5e0ca6b462b89903f6cd3fe 1 parent 8010a6b
Michael G. Schwern authored
2  Build.PL
@@ -12,7 +12,7 @@ my $builder = MyBuild->new(
12 12
     module_name => 'perl5i',
13 13
     license     => 'perl',
14 14
     dist_author => 'Michael G Schwern <schwern@pobox.com>',
15  
-    dist_version => "v2.8.0",
  15
+    dist_version => "v2.9.0",
16 16
 
17 17
     requires => {
18 18
         'perl'                    => '5.10.0',
4  MANIFEST
... ...
@@ -1,4 +1,3 @@
1  
-.DS_Store
2 1
 .perlcriticrc
3 2
 .perltidyrc
4 3
 bin/perl5i.bat.PL
@@ -86,6 +85,7 @@ t/dump/code.t
86 85
 t/dump/hash.t
87 86
 t/dump/obj.t
88 87
 t/dump/scalar.t
  88
+t/each.t
89 89
 t/English.t
90 90
 t/equal.t
91 91
 t/everything_is_an_object.t
@@ -99,6 +99,7 @@ t/hash-intersect.t
99 99
 t/hash-merge.t
100 100
 t/intersect.t
101 101
 t/io-handle.t
  102
+t/is_module_name.t
102 103
 t/lexical.t
103 104
 t/lib/Test/perl5i.pm
104 105
 t/lib/ThisIsTrue.pm
@@ -148,6 +149,7 @@ t/taint.t
148 149
 t/time_compat.t
149 150
 t/true.t
150 151
 t/try-tiny.t
  152
+t/uniq.t
151 153
 t/utf8.t
152 154
 t/version_0/00_compile.t
153 155
 t/version_1/00_compile.t
34  MANIFEST.SKIP
... ...
@@ -1,5 +1,5 @@
1 1
 
2  
-#!start included /usr/local/perl/5.10.0/lib/5.10.0/ExtUtils/MANIFEST.SKIP
  2
+#!start included /Users/schwern/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/ExtUtils/MANIFEST.SKIP
3 3
 # Avoid version control files.
4 4
 \bRCS\b
5 5
 \bCVS\b
@@ -9,6 +9,12 @@
9 9
 \B\.git\b
10 10
 \B\.gitignore\b
11 11
 \b_darcs\b
  12
+\B\.cvsignore$
  13
+
  14
+# Avoid VMS specific MakeMaker generated files
  15
+\bDescrip.MMS$
  16
+\bDESCRIP.MMS$
  17
+\bdescrip.mms$
12 18
 
13 19
 # Avoid Makemaker generated and utility files.
14 20
 \bMANIFEST\.bak
@@ -22,6 +28,10 @@
22 28
 # Avoid Module::Build generated and utility files.
23 29
 \bBuild$
24 30
 \b_build/
  31
+\bBuild.bat$
  32
+\bBuild.COM$
  33
+\bBUILD.COM$
  34
+\bbuild.com$
25 35
 
26 36
 # Avoid temp and backup files.
27 37
 ~$
@@ -29,10 +39,24 @@
29 39
 \#$
30 40
 \b\.#
31 41
 \.bak$
  42
+\.tmp$
  43
+\.#
  44
+\.rej$
  45
+
  46
+# Avoid OS-specific files/dirs
  47
+# Mac OSX metadata
  48
+\B\.DS_Store
  49
+# Mac OSX SMB mount metadata files
  50
+\B\._
32 51
 
33  
-# Avoid Devel::Cover files.
  52
+# Avoid Devel::Cover and Devel::CoverX::Covered files.
34 53
 \bcover_db\b
35  
-#!end included /usr/local/perl/5.10.0/lib/5.10.0/ExtUtils/MANIFEST.SKIP
  54
+\bcovered\b
  55
+
  56
+# Avoid MYMETA files
  57
+^MYMETA\.
  58
+#!end included /Users/schwern/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/ExtUtils/MANIFEST.SKIP
  59
+
36 60
 
37 61
 # Avoid Devel::NYTProf files
38 62
 ^nytprof
@@ -58,4 +82,6 @@
58 82
 # Don't ship our motivational images
59 83
 ^img/
60 84
 
61  
-^MYMETA\.json$
  85
+# Don't ship patch files
  86
+\.patch$
  87
+\.diff$
16  META.json
@@ -45,7 +45,7 @@
45 45
          "requires" : {
46 46
             "CLASS" : "1.00",
47 47
             "Capture::Tiny" : "0.06",
48  
-            "Child" : "0.007",
  48
+            "Child" : "0.009",
49 49
             "DateTime" : "0.47",
50 50
             "DateTime::Format::Epoch" : "0.11",
51 51
             "DateTime::TimeZone::Tzfile" : "0.002",
@@ -96,11 +96,11 @@
96 96
       },
97 97
       "perl5i" : {
98 98
          "file" : "lib/perl5i.pm",
99  
-         "version" : "v2.8.0"
  99
+         "version" : "v2.9.0"
100 100
       },
101 101
       "perl5i::0" : {
102 102
          "file" : "lib/perl5i/0.pm",
103  
-         "version" : "v2.8.0"
  103
+         "version" : "v2.9.0"
104 104
       },
105 105
       "perl5i::0::ARRAY" : {
106 106
          "file" : "lib/perl5i/0/ARRAY.pm",
@@ -136,7 +136,7 @@
136 136
       },
137 137
       "perl5i::1" : {
138 138
          "file" : "lib/perl5i/1.pm",
139  
-         "version" : "v2.8.0"
  139
+         "version" : "v2.9.0"
140 140
       },
141 141
       "perl5i::1::ARRAY" : {
142 142
          "file" : "lib/perl5i/1/ARRAY.pm",
@@ -180,7 +180,7 @@
180 180
       },
181 181
       "perl5i::2" : {
182 182
          "file" : "lib/perl5i/2.pm",
183  
-         "version" : "v2.8.0"
  183
+         "version" : "v2.9.0"
184 184
       },
185 185
       "perl5i::2::ARRAY" : {
186 186
          "file" : "lib/perl5i/2/ARRAY.pm",
@@ -268,7 +268,7 @@
268 268
       },
269 269
       "perl5i::VERSION" : {
270 270
          "file" : "lib/perl5i/VERSION.pm",
271  
-         "version" : "v2.8.0"
  271
+         "version" : "v2.9.0"
272 272
       },
273 273
       "perl5i::cmd" : {
274 274
          "file" : "lib/perl5i/cmd.pm",
@@ -276,7 +276,7 @@
276 276
       },
277 277
       "perl5i::latest" : {
278 278
          "file" : "lib/perl5i/latest.pm",
279  
-         "version" : "v2.8.0"
  279
+         "version" : "v2.9.0"
280 280
       }
281 281
    },
282 282
    "release_status" : "stable",
@@ -293,5 +293,5 @@
293 293
       "x_Chat" : "irc://irc.perl.org/#perl5i",
294 294
       "x_MailingList" : "http://groups.google.com/group/perl5i"
295 295
    },
296  
-   "version" : "v2.8.0"
  296
+   "version" : "v2.9.0"
297 297
 }
16  META.yml
@@ -40,10 +40,10 @@ provides:
40 40
     version: 0
41 41
   perl5i:
42 42
     file: lib/perl5i.pm
43  
-    version: v2.8.0
  43
+    version: v2.9.0
44 44
   perl5i::0:
45 45
     file: lib/perl5i/0.pm
46  
-    version: v2.8.0
  46
+    version: v2.9.0
47 47
   perl5i::0::ARRAY:
48 48
     file: lib/perl5i/0/ARRAY.pm
49 49
     version: 0
@@ -70,7 +70,7 @@ provides:
70 70
     version: 0
71 71
   perl5i::1:
72 72
     file: lib/perl5i/1.pm
73  
-    version: v2.8.0
  73
+    version: v2.9.0
74 74
   perl5i::1::ARRAY:
75 75
     file: lib/perl5i/1/ARRAY.pm
76 76
     version: 0
@@ -103,7 +103,7 @@ provides:
103 103
     version: 0
104 104
   perl5i::2:
105 105
     file: lib/perl5i/2.pm
106  
-    version: v2.8.0
  106
+    version: v2.9.0
107 107
   perl5i::2::ARRAY:
108 108
     file: lib/perl5i/2/ARRAY.pm
109 109
     version: 0
@@ -169,17 +169,17 @@ provides:
169 169
     version: 0
170 170
   perl5i::VERSION:
171 171
     file: lib/perl5i/VERSION.pm
172  
-    version: v2.8.0
  172
+    version: v2.9.0
173 173
   perl5i::cmd:
174 174
     file: lib/perl5i/cmd.pm
175 175
     version: 0
176 176
   perl5i::latest:
177 177
     file: lib/perl5i/latest.pm
178  
-    version: v2.8.0
  178
+    version: v2.9.0
179 179
 requires:
180 180
   CLASS: 1.00
181 181
   Capture::Tiny: 0.06
182  
-  Child: 0.007
  182
+  Child: 0.009
183 183
   DateTime: 0.47
184 184
   DateTime::Format::Epoch: 0.11
185 185
   DateTime::TimeZone::Tzfile: 0.002
@@ -218,4 +218,4 @@ resources:
218 218
   repository: http://github.com/schwern/perl5i/tree/master
219 219
   x_Chat: irc://irc.perl.org/#perl5i
220 220
   x_MailingList: http://groups.google.com/group/perl5i
221  
-version: v2.8.0
  221
+version: v2.9.0
105  README
@@ -191,7 +191,7 @@ What it does
191 191
     autobox::Core wraps a lot of Perl's built in functions so they can be
192 192
     called as methods on unblessed variables. "@a->pop" for example.
193 193
 
194  
-   alias()
  194
+   alias
195 195
         $scalar_reference->alias( @identifiers );
196 196
         @alias->alias( @identifiers );
197 197
         %hash->alias( @identifiers );
@@ -243,9 +243,11 @@ What it does
243 243
         *{$package . '::'. $name} = $reference;
244 244
 
245 245
   Scalar Autoboxing
246  
-    perl5i adds some methods to scalars of its own.
  246
+    All of the methods provided by autobox::Core are available from perl5i.
247 247
 
248  
-   center()
  248
+    in addition, perl5i adds some methods of its own.
  249
+
  250
+   center
249 251
         my $centered_string = $string->center($length);
250 252
         my $centered_string = $string->center($length, $character);
251 253
 
@@ -360,7 +362,7 @@ What it does
360 362
         # like "use $module;" if that worked
361 363
         $module->require->import;
362 364
 
363  
-   wrap()
  365
+   wrap
364 366
         my $wrapped = $string->wrap( width => $cols, separator => $sep );
365 367
 
366 368
     Wraps $string to width $cols, breaking lines at word boundries using
@@ -371,9 +373,9 @@ What it does
371 373
 
372 374
     See Text::Wrap for details.
373 375
 
374  
-   ltrim()
375  
-   rtrim()
376  
-   trim()
  376
+   ltrim
  377
+   rtrim
  378
+   trim
377 379
         my $trimmed = $string->trim;
378 380
         my $trimmed = $string->trim($character_set);
379 381
 
@@ -390,12 +392,12 @@ What it does
390 392
 
391 393
         my $string = '-> test <-'->trim('-><');  # ' test '
392 394
 
393  
-   title_case()
  395
+   title_case
394 396
         my $name = 'joe smith'->title_case;   # Joe Smith
395 397
 
396 398
     Will uppercase every word character that follows a wordbreak character.
397 399
 
398  
-   path2module()
  400
+   path2module
399 401
         my $module = $path->path2module;
400 402
 
401 403
     Given a relative $path it will return the Perl module this represents.
@@ -406,7 +408,7 @@ What it does
406 408
     It will throw an exception if given something which could not be a path
407 409
     to a Perl module.
408 410
 
409  
-   module2path()
  411
+   module2path
410 412
         my $path = $module->module2path;
411 413
 
412 414
     Will return the relative $path in which the Perl $module can be found.
@@ -414,6 +416,14 @@ What it does
414 416
 
415 417
         "Foo::Bar"->module2path;  # "Foo/Bar.pm"
416 418
 
  419
+   is_module_name
  420
+        my $is_valid = $string->is_module_name;
  421
+
  422
+    Will return true if the $string is a valid module name.
  423
+
  424
+        "Foo::Bar"->is_module_name;  # true
  425
+        "Foo/Bar"->is_module_name;   # false
  426
+
417 427
    group_digits
418 428
         my $number_grouped     = $number->group_digits;
419 429
         my $number_grouped     = $number->group_digits(\%options);
@@ -422,7 +432,7 @@ What it does
422 432
     grouping".
423 433
 
424 434
     It honors your current locale to determine the separator and grouping.
425  
-    This can be overriden using %options.
  435
+    This can be overridden using %options.
426 436
 
427 437
     NOTE: many systems do not have their numeric locales set properly
428 438
 
@@ -458,7 +468,7 @@ What it does
458 468
     locale settings.
459 469
 
460 470
     %options defaults to "( separator => ",", grouping => 3, decimal_point
461  
-    => "." )". Each key will be overriden individually.
  471
+    => "." )". Each key will be overridden individually.
462 472
 
463 473
         1234->commify;                      # 1,234
464 474
         1234->commify({ separator => "." });  # 1.234
@@ -471,19 +481,21 @@ What it does
471 481
     Unlike Perl's reverse(), this always reverses the string regardless of
472 482
     context.
473 483
 
474  
-  List Autoboxing
475  
-    All the functions from List::Util and select ones from List::MoreUtils
476  
-    are all available as methods on unblessed arrays and array refs.
  484
+  Array Autoboxing
  485
+    The methods provided by "Array Methods" in autobox::Core are available
  486
+    from perl5i.
477 487
 
478  
-    first, max, maxstr, min, minstr, minmax, shuffle, reduce, sum, any, all,
479  
-    none, true, false, uniq and mesh.
  488
+    All the functions from List::Util and select ones from List::MoreUtils
  489
+    are all available as methods on unblessed arrays and array refs: first,
  490
+    max, maxstr, min, minstr, minmax, shuffle, reduce, sum, any, all, none,
  491
+    true, false, uniq and mesh.
480 492
 
481  
-    The have all been altered to return array refs where applicable in order
482  
-    to allow chaining.
  493
+    They have all been altered to return array refs where applicable in
  494
+    order to allow chaining.
483 495
 
484 496
         @array->grep(sub{ $_->is_number })->sum->say;
485 497
 
486  
-   foreach()
  498
+   foreach
487 499
         @array->foreach( func($item) { ... } );
488 500
 
489 501
     Works like the built in "foreach", calls the code block for each element
@@ -504,7 +516,7 @@ What it does
504 516
     If @array is not a multiple of the iteration (for example, @array has 5
505 517
     elements and you ask 2 at a time) the behavior is currently undefined.
506 518
 
507  
-   diff()
  519
+   diff
508 520
     Calculate the difference between two (or more) arrays:
509 521
 
510 522
         my @a = ( 1, 2, 3 );
@@ -541,7 +553,7 @@ What it does
541 553
         [ $uri ]->diff( [ "http://www.perl.com" ] ); # empty, they are equal
542 554
         [ $uri ]->diff( [ $uri2 ] );                 # empty, they are equal
543 555
 
544  
-   intersect()
  556
+   intersect
545 557
         my @a = (1 .. 10);
546 558
         my @b = (5 .. 15);
547 559
 
@@ -554,9 +566,9 @@ What it does
554 566
     structures of arbitrary depth, and handles overloaded objects
555 567
     graciously.
556 568
 
557  
-   ltrim()
558  
-   rtrim()
559  
-   trim()
  569
+   ltrim
  570
+   rtrim
  571
+   trim
560 572
         my @trimmed = @list->trim;
561 573
         my @trimmed = @list->trim($character_set);
562 574
 
@@ -573,7 +585,23 @@ What it does
573 585
         my @trimmed = ['-> foo <-', '-> bar <-']->trim('-><'); # [' foo ', ' bar ']
574 586
 
575 587
   Hash Autoboxing
576  
-   flip()
  588
+    All of the methods provided by "Hash Methods" in autobox::Core are
  589
+    available from perl5i.
  590
+
  591
+    In addition...
  592
+
  593
+   each
  594
+    Iterate through each key/value pair in a hash using a callback.
  595
+
  596
+        my %things = ( foo => 23, bar => 42 );
  597
+        %things->each( func($k, $v) {
  598
+            say "Key: $k, Value: $v"
  599
+        });
  600
+
  601
+    Unlike the "each" function, individual calls to each are guaranteed to
  602
+    iterate through the entirety of the hash.
  603
+
  604
+   flip
577 605
     Exchanges values for keys in a hash.
578 606
 
579 607
         my %things = ( foo => 1, bar => 2, baz => 5 );
@@ -591,7 +619,7 @@ What it does
591 619
 
592 620
         { foo => [ 'bar', 'baz' ] }->flip; # dies
593 621
 
594  
-   merge()
  622
+   merge
595 623
     Recursively merge two or more hashes together using Hash::Merge::Simple.
596 624
 
597 625
         my $a = { a => 1 };
@@ -611,7 +639,7 @@ What it does
611 639
     array references or objects. For more information, look at the
612 640
     Hash::Merge::Simple docs.
613 641
 
614  
-   diff()
  642
+   diff
615 643
         my %staff    = ( bob => 42, martha => 35, timmy => 23 );
616 644
         my %promoted = ( timmy => 23 );
617 645
 
@@ -621,7 +649,7 @@ What it does
621 649
     present in the subsequent hash arguments. Otherwise works as
622 650
     "@array->diff".
623 651
 
624  
-   intersect()
  652
+   intersect
625 653
         %staff->intersect(\%promoted); # { timmy => 23 }
626 654
 
627 655
     Returns the key/value pairs that are present simultaneously in all the
@@ -638,17 +666,17 @@ What it does
638 666
     signature. See perl5i::Signature for details. Otherwise it returns
639 667
     nothing.
640 668
 
641  
-  caller()
  669
+  caller
642 670
     Perl6::Caller causes "caller" to return an object in scalar context.
643 671
 
644  
-  die()
  672
+  die
645 673
     "die" now always returns an exit code of 255 instead of trying to use $!
646 674
     or $? which makes the exit code unpredictable. If you want to exit with
647 675
     a message and a special exit code, use "warn" then "exit".
648 676
 
649  
-  list()
650  
-    "list" will force list context similar to how perlfunc/scalar will force
651  
-    scalar context.
  677
+  list
  678
+    "list" will force list context similar to how scalar will force scalar
  679
+    context.
652 680
 
653 681
   utf8::all
654 682
     perl5i turns on utf8::all which turns on all the Unicode features of
@@ -675,7 +703,7 @@ What it does
675 703
     encoding turned on. Consequently, if you want to output raw bytes to a
676 704
     file, such as outputting an image, you must set "binmode $fh".
677 705
 
678  
-  capture()
  706
+  capture
679 707
         my($stdout, $stderr) = capture { ... } %options;
680 708
         my $stdout = capture { ... } %options;
681 709
 
@@ -943,10 +971,3 @@ SEE ALSO
943 971
 
944 972
     For a complete object declaration system, see Moose and MooseX::Declare.
945 973
 
946  
-POD ERRORS
947  
-    Hey! The above document had some coding errors, which are explained
948  
-    below:
949  
-
950  
-    Around line 884:
951  
-        =back without =over
952  
-
2  lib/perl5i/VERSION.pm
@@ -5,7 +5,7 @@ package perl5i::VERSION;
5 5
 use strict;
6 6
 use warnings;
7 7
 
8  
-use version 0.77; our $VERSION = qv("v2.8.0");
  8
+use version 0.77; our $VERSION = qv("v2.9.0");
9 9
 
10 10
 sub latest { "perl5i::2" };     # LATEST HERE (for automated update)
11 11
 

0 notes on commit f7d577c

Please sign in to comment.
Something went wrong with that request. Please try again.