Move Tie::File from lib to ext
authorSteffen Mueller <smueller@cpan.org>
Wed, 2 Sep 2009 15:07:18 +0000 (17:07 +0200)
committerSteffen Mueller <smueller@cpan.org>
Wed, 2 Sep 2009 15:49:57 +0000 (17:49 +0200)
43 files changed:
MANIFEST
Porting/Maintainers.pl
ext/.gitignore
ext/Tie-File/lib/Tie/File.pm [moved from lib/Tie/File.pm with 100% similarity]
ext/Tie-File/t/00_version.t [moved from lib/Tie/File/t/00_version.t with 100% similarity]
ext/Tie-File/t/01_gen.t [moved from lib/Tie/File/t/01_gen.t with 100% similarity]
ext/Tie-File/t/02_fetchsize.t [moved from lib/Tie/File/t/02_fetchsize.t with 100% similarity]
ext/Tie-File/t/03_longfetch.t [moved from lib/Tie/File/t/03_longfetch.t with 100% similarity]
ext/Tie-File/t/04_splice.t [moved from lib/Tie/File/t/04_splice.t with 100% similarity]
ext/Tie-File/t/05_size.t [moved from lib/Tie/File/t/05_size.t with 100% similarity]
ext/Tie-File/t/06_fixrec.t [moved from lib/Tie/File/t/06_fixrec.t with 100% similarity]
ext/Tie-File/t/07_rv_splice.t [moved from lib/Tie/File/t/07_rv_splice.t with 100% similarity]
ext/Tie-File/t/08_ro.t [moved from lib/Tie/File/t/08_ro.t with 100% similarity]
ext/Tie-File/t/09_gen_rs.t [moved from lib/Tie/File/t/09_gen_rs.t with 100% similarity]
ext/Tie-File/t/10_splice_rs.t [moved from lib/Tie/File/t/10_splice_rs.t with 100% similarity]
ext/Tie-File/t/11_rv_splice_rs.t [moved from lib/Tie/File/t/11_rv_splice_rs.t with 100% similarity]
ext/Tie-File/t/12_longfetch_rs.t [moved from lib/Tie/File/t/12_longfetch_rs.t with 100% similarity]
ext/Tie-File/t/13_size_rs.t [moved from lib/Tie/File/t/13_size_rs.t with 100% similarity]
ext/Tie-File/t/14_lock.t [moved from lib/Tie/File/t/14_lock.t with 100% similarity]
ext/Tie-File/t/15_pushpop.t [moved from lib/Tie/File/t/15_pushpop.t with 100% similarity]
ext/Tie-File/t/16_handle.t [moved from lib/Tie/File/t/16_handle.t with 100% similarity]
ext/Tie-File/t/17_misc_meth.t [moved from lib/Tie/File/t/17_misc_meth.t with 100% similarity]
ext/Tie-File/t/18_rs_fixrec.t [moved from lib/Tie/File/t/18_rs_fixrec.t with 100% similarity]
ext/Tie-File/t/19_cache.t [moved from lib/Tie/File/t/19_cache.t with 100% similarity]
ext/Tie-File/t/20_cache_full.t [moved from lib/Tie/File/t/20_cache_full.t with 100% similarity]
ext/Tie-File/t/21_win32.t [moved from lib/Tie/File/t/21_win32.t with 100% similarity]
ext/Tie-File/t/22_autochomp.t [moved from lib/Tie/File/t/22_autochomp.t with 100% similarity]
ext/Tie-File/t/23_rv_ac_splice.t [moved from lib/Tie/File/t/23_rv_ac_splice.t with 100% similarity]
ext/Tie-File/t/24_cache_loop.t [moved from lib/Tie/File/t/24_cache_loop.t with 100% similarity]
ext/Tie-File/t/25_gen_nocache.t [moved from lib/Tie/File/t/25_gen_nocache.t with 100% similarity]
ext/Tie-File/t/26_twrite.t [moved from lib/Tie/File/t/26_twrite.t with 100% similarity]
ext/Tie-File/t/27_iwrite.t [moved from lib/Tie/File/t/27_iwrite.t with 100% similarity]
ext/Tie-File/t/28_mtwrite.t [moved from lib/Tie/File/t/28_mtwrite.t with 100% similarity]
ext/Tie-File/t/29_downcopy.t [moved from lib/Tie/File/t/29_downcopy.t with 100% similarity]
ext/Tie-File/t/29a_upcopy.t [moved from lib/Tie/File/t/29a_upcopy.t with 100% similarity]
ext/Tie-File/t/30_defer.t [moved from lib/Tie/File/t/30_defer.t with 100% similarity]
ext/Tie-File/t/31_autodefer.t [moved from lib/Tie/File/t/31_autodefer.t with 100% similarity]
ext/Tie-File/t/32_defer_misc.t [moved from lib/Tie/File/t/32_defer_misc.t with 100% similarity]
ext/Tie-File/t/33_defer_vs.t [moved from lib/Tie/File/t/33_defer_vs.t with 100% similarity]
ext/Tie-File/t/40_abs_cache.t [moved from lib/Tie/File/t/40_abs_cache.t with 100% similarity]
ext/Tie-File/t/41_heap.t [moved from lib/Tie/File/t/41_heap.t with 100% similarity]
ext/Tie-File/t/42_offset.t [moved from lib/Tie/File/t/42_offset.t with 91% similarity]
lib/.gitignore

index a374ccb..b91b268 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1638,6 +1638,45 @@ ext/threads/t/stress_cv.t        Test with multiple threads, coderef cv argument.
 ext/threads/t/stress_re.t      Test with multiple threads, string cv argument and regexes.
 ext/threads/t/stress_string.t  Test with multiple threads, string cv argument.
 ext/threads/t/thread.t         General ithread tests from thr5005
+ext/Tie-File/lib/Tie/File.pm   Files as tied arrays
+ext/Tie-File/t/00_version.t    Trivial test for Tie::File
+ext/Tie-File/t/01_gen.t                Generic read/write tests for Tie::File
+ext/Tie-File/t/02_fetchsize.t  File length fetch test for Tie::File
+ext/Tie-File/t/03_longfetch.t  Past-the-end-of-the-array tests for Tie::File
+ext/Tie-File/t/04_splice.t     SPLICE method tests for Tie::File
+ext/Tie-File/t/05_size.t       $#a tests for Tie::File
+ext/Tie-File/t/06_fixrec.t     '_fixrec' method functional tests for Tie::File
+ext/Tie-File/t/07_rv_splice.t  SPLICE method return value tests for Tie::File
+ext/Tie-File/t/08_ro.t         read-only mode tests for Tie::File
+ext/Tie-File/t/09_gen_rs.t     Like 01_gen.t, with unusual record separator
+ext/Tie-File/t/10_splice_rs.t  Like 04_splice.t, with unusual record separator
+ext/Tie-File/t/11_rv_splice_rs.t       Like 07_rv_splice.t, with unusual record separator
+ext/Tie-File/t/12_longfetch_rs.t       Like 03_longfetch.t, with unusual record separator
+ext/Tie-File/t/13_size_rs.t    Like 05_size.t, with unusual record separator
+ext/Tie-File/t/14_lock.t       File locking method tests for Tie::File
+ext/Tie-File/t/15_pushpop.t    PUSH / POP / SHIFT / UNSHIFT for Tie::File
+ext/Tie-File/t/16_handle.t     Tying a handle instead of a file for Tie::File
+ext/Tie-File/t/17_misc_meth.t  CLEAR / EXISTS / DELETE / EXTEND for Tie::File
+ext/Tie-File/t/18_rs_fixrec.t  Like 06_fixrec.t, with unusual record separator
+ext/Tie-File/t/19_cache.t      Read cache exercises and regression for Tie::File
+ext/Tie-File/t/20_cache_full.t LRU expiry exercises and regression for Tie::File
+ext/Tie-File/t/21_win32.t      Win32 special behavior of Tie::File
+ext/Tie-File/t/22_autochomp.t  'autochomp' option of Tie::File
+ext/Tie-File/t/23_rv_ac_splice.t       Like 07_rv_splice.t, but with autochomp
+ext/Tie-File/t/24_cache_loop.t Regression for old Tie::File cache bug
+ext/Tie-File/t/25_gen_nocache.t        Like 01_gen.t, but with caching disabled
+ext/Tie-File/t/26_twrite.t     Unit tests for Tie::File::_twrite
+ext/Tie-File/t/27_iwrite.t     Unit tests for Tie::File::_iwrite
+ext/Tie-File/t/28_mtwrite.t    Unit tests for Tie::File::_mtwrite
+ext/Tie-File/t/29a_upcopy.t    Unit tests for Tie::File::_upcopy
+ext/Tie-File/t/29_downcopy.t   Unit tests for Tie::File::_downcopy
+ext/Tie-File/t/30_defer.t      deferred writing feature tests for Tie::File
+ext/Tie-File/t/31_autodefer.t  'autodefer' feature tests for Tie::File
+ext/Tie-File/t/32_defer_misc.t Like 17_misc_meth.t, but with deferred writing
+ext/Tie-File/t/33_defer_vs.t   Like 30_defer.t, but with varying-length records
+ext/Tie-File/t/40_abs_cache.t  Unit tests for Tie::File::Cache
+ext/Tie-File/t/41_heap.t       Unit tests for Tie::File::Heap
+ext/Tie-File/t/42_offset.t     Unit tests for the offset method
 ext/Time-HiRes/Changes         Time::HiRes extension
 ext/Time-HiRes/fallback/const-c.inc    Time::HiRes extension
 ext/Time-HiRes/fallback/const-xs.inc   Time::HiRes extension
@@ -3331,45 +3370,6 @@ lib/Tie/Array/push.t             Test for Tie::Array
 lib/Tie/Array/splice.t         Test for Tie::Array::SPLICE
 lib/Tie/Array/stdpush.t                Test for Tie::StdArray
 lib/Tie/Array/std.t            Test for Tie::StdArray
-lib/Tie/File.pm                        Files as tied arrays
-lib/Tie/File/t/00_version.t    Trivial test for Tie::File
-lib/Tie/File/t/01_gen.t                Generic read/write tests for Tie::File
-lib/Tie/File/t/02_fetchsize.t  File length fetch test for Tie::File
-lib/Tie/File/t/03_longfetch.t  Past-the-end-of-the-array tests for Tie::File
-lib/Tie/File/t/04_splice.t     SPLICE method tests for Tie::File
-lib/Tie/File/t/05_size.t       $#a tests for Tie::File
-lib/Tie/File/t/06_fixrec.t     '_fixrec' method functional tests for Tie::File
-lib/Tie/File/t/07_rv_splice.t  SPLICE method return value tests for Tie::File
-lib/Tie/File/t/08_ro.t         read-only mode tests for Tie::File
-lib/Tie/File/t/09_gen_rs.t     Like 01_gen.t, with unusual record separator
-lib/Tie/File/t/10_splice_rs.t  Like 04_splice.t, with unusual record separator
-lib/Tie/File/t/11_rv_splice_rs.t       Like 07_rv_splice.t, with unusual record separator
-lib/Tie/File/t/12_longfetch_rs.t       Like 03_longfetch.t, with unusual record separator
-lib/Tie/File/t/13_size_rs.t    Like 05_size.t, with unusual record separator
-lib/Tie/File/t/14_lock.t       File locking method tests for Tie::File
-lib/Tie/File/t/15_pushpop.t    PUSH / POP / SHIFT / UNSHIFT for Tie::File
-lib/Tie/File/t/16_handle.t     Tying a handle instead of a file for Tie::File
-lib/Tie/File/t/17_misc_meth.t  CLEAR / EXISTS / DELETE / EXTEND for Tie::File
-lib/Tie/File/t/18_rs_fixrec.t  Like 06_fixrec.t, with unusual record separator
-lib/Tie/File/t/19_cache.t      Read cache exercises and regression for Tie::File
-lib/Tie/File/t/20_cache_full.t LRU expiry exercises and regression for Tie::File
-lib/Tie/File/t/21_win32.t      Win32 special behavior of Tie::File
-lib/Tie/File/t/22_autochomp.t  'autochomp' option of Tie::File
-lib/Tie/File/t/23_rv_ac_splice.t       Like 07_rv_splice.t, but with autochomp
-lib/Tie/File/t/24_cache_loop.t Regression for old Tie::File cache bug
-lib/Tie/File/t/25_gen_nocache.t        Like 01_gen.t, but with caching disabled
-lib/Tie/File/t/26_twrite.t     Unit tests for Tie::File::_twrite
-lib/Tie/File/t/27_iwrite.t     Unit tests for Tie::File::_iwrite
-lib/Tie/File/t/28_mtwrite.t    Unit tests for Tie::File::_mtwrite
-lib/Tie/File/t/29a_upcopy.t    Unit tests for Tie::File::_upcopy
-lib/Tie/File/t/29_downcopy.t   Unit tests for Tie::File::_downcopy
-lib/Tie/File/t/30_defer.t      deferred writing feature tests for Tie::File
-lib/Tie/File/t/31_autodefer.t  'autodefer' feature tests for Tie::File
-lib/Tie/File/t/32_defer_misc.t Like 17_misc_meth.t, but with deferred writing
-lib/Tie/File/t/33_defer_vs.t   Like 30_defer.t, but with varying-length records
-lib/Tie/File/t/40_abs_cache.t  Unit tests for Tie::File::Cache
-lib/Tie/File/t/41_heap.t       Unit tests for Tie::File::Heap
-lib/Tie/File/t/42_offset.t     Unit tests for the offset method
 lib/Tie/Handle.pm              Base class for tied handles
 lib/Tie/Handle/stdhandle_from_handle.t Test for Tie::StdHandle/Handle backwards compat
 lib/Tie/Handle/stdhandle.t     Test for Tie::StdHandle
index 259db9d..d4b4b0e 100755 (executable)
@@ -1824,7 +1824,7 @@ package Maintainers;
        {
        'MAINTAINER'    => 'mjd',
        'DISTRIBUTION'  => 'MJD/Tie-File-0.96.tar.gz',
-       'FILES'         => q[lib/Tie/File.pm lib/Tie/File],
+       'FILES'         => q[ext/Tie-File],
        'CPAN'          => 1,
        'UPSTREAM'      => undef,
        },
index 903c514..aadc64f 100644 (file)
@@ -44,6 +44,7 @@ ppport.h
 /Text-Soundex/Makefile.PL
 /Thread-Queue/Makefile.PL
 /Thread-Semaphore/Makefile.PL
+/Tie-File/Makefile.PL
 
 # ignore all vim swap files but the one bundled in Module::Pluggable for testing
 *.swp
similarity index 100%
rename from lib/Tie/File.pm
rename to ext/Tie-File/lib/Tie/File.pm
similarity index 91%
rename from lib/Tie/File/t/42_offset.t
rename to ext/Tie-File/t/42_offset.t
index 1762443..8c62832 100644 (file)
@@ -12,11 +12,6 @@ my $file = "tf$$.txt";
 BEGIN
   {
   $| = 1;
-  if ($ENV{PERL_CORE})
-    {
-    # testing with the core distribution
-    @INC = ( File::Spec->catdir(File::Spec->updir, 't', 'lib') );
-    }
   unshift @INC, File::Spec->catdir(File::Spec->updir, 'lib');
   chdir 't' if -d 't';
   print "# INC = @INC\n";
index 35576bd..f00e6ae 100644 (file)
@@ -84,6 +84,7 @@
 /Text/Balanced.pm
 /Text/Soundex.pm
 /Thread
+/Tie/File.pm
 /Time/HiRes.pm
 /Time/Piece.pm
 /Time/Seconds.pm