Commits

Burak Gürsoy committed cdaff4a

update builder

Comments (0)

Files changed (10)

 
 Time zone is GMT+2.
 
+0.23 Thu Apr 23 14:37:39 2009
+    => Update builder.
+
 0.22 Sat Apr 18 06:27:56 2009
     => Update distro tools.
 
 lib/Lingua/TR/Numbers.pm
 lib/Lingua/TR/NumbersTR.pod
-t/01-pod.t
-t/02-pod-coverage.t
 t/20_main_integers.t
 t/30_v1_tests.t
 tools/Build.pm
-Makefile.PL
 Build.PL
 Changes
 MANIFEST
 README
-META.yml
+SPEC

META.yml

Empty file removed.

Makefile.PL

-#!perl
-use 5.006;
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
-   'NAME'         => 'Lingua::TR::Numbers',
-   'VERSION_FROM' => 'lib/Lingua/TR/Numbers.pm',
-   'PREREQ_PM'    => {
-      'Test::More' => '0.40',
-   },
-   ($] >= 5.005 ? (
-   AUTHOR   => 'Burak Gursoy <burak@cpan.org>',
-   ABSTRACT => 'Converts numbers into Turkish text',
-   ) : ()),
-   PL_FILES => {},
-);
Empty file added.

lib/Lingua/TR/Numbers.pm

 
 BEGIN { *DEBUG = sub () {0} unless defined &DEBUG } # setup a DEBUG constant
 
-$VERSION     = '0.22';
+$VERSION     = '0.23';
 
 @ISA         = qw( Exporter              );
 @EXPORT_OK   = qw( num2tr num2tr_ordinal );

t/01-pod.t

-#!/usr/bin/env perl -w
-use strict;
-use Test::More;
-
-my @errors;
-eval { require Test::Pod; };
-push @errors, "Test::Pod is required for testing POD"   if $@;
-eval { require Pod::Simple; };
-push @errors, "Pod::Simple is required for testing POD" if $@;
-
-if ( not @errors ) {
-   my $tpv = Test::Pod->VERSION;
-   my $psv = Pod::Simple->VERSION;
-
-   if ( $tpv < 1.26 ) {
-      push @errors, "Upgrade Test::Pod to 1.26 to run this test. "
-                   ."Detected version is: $tpv";
-   }
-
-   if ( $psv < 3.05 ) {
-      push @errors, "Upgrade Pod::Simple to 3.05 to run this test. "
-                   ."Detected version is: $psv";
-   }
-}
-
-if ( $] < 5.008 ) {
-   # Any older perl does not have Encode.pm. Thus, Pod::Simple
-   # can not handle utf8 encoding and it will die, the tests
-   # will fail. This skip part, skips an inevitable failure.
-   push @errors, "'=encoding utf8' directives in Pods don't work "
-                ."with legacy perl.";
-}
-
-if ( @errors ) {
-   plan skip_all => "Errors detected: @errors";
-}
-else {
-   Test::Pod::all_pod_files_ok();
-}

t/02-pod-coverage.t

-#!/usr/bin/env perl -w
-use strict;
-use Test::More;
-
-eval {require Test::Pod::Coverage;};
-if($@) {
-   plan skip_all => "Test::Pod::Coverage required for testing pod coverage";
-} else {
-   plan tests => 1;
-   Test::Pod::Coverage::pod_coverage_ok('Lingua::TR::Numbers', {trustme => [qw/DEBUG/]});
-}

t/20_main_integers.t

 use 5.006;
 use strict;
 use utf8;
-use Test;
+use Test::More qw( no_plan );
 
-BEGIN { plan tests => 18 }
-
-use Lingua::TR::Numbers qw(num2tr);
-ok 1;
+BEGIN {
+   use_ok('Lingua::TR::Numbers', qw(num2tr));
+}
 
 print "# Using Lingua::TR::Numbers v$Lingua::TR::Numbers::VERSION\n";
 
 use 5.006;
 use strict;
 use utf8;
-use Test;
-BEGIN { plan tests => 58 }
+use Test::More qw( no_plan );
 
 use Lingua::TR::Numbers qw(num2tr num2tr_ordinal);
+
 print "# Using Lingua::TR::Numbers v$Lingua::TR::Numbers::VERSION\n";
 ok 1;