Rename to more descriptive name
Dagfinn Ilmari Mannsåker [Tue, 6 Dec 2011 19:11:01 +0000 (19:11 +0000)]
.gitignore
Changes
Makefile.PL
lib/MooseX/Types/DateTime/MoreCoercions.pm [moved from lib/MooseX/Types/DateTimeX.pm with 81% similarity]
t/01_basic.t

index 23a6b60..575bd45 100644 (file)
@@ -8,4 +8,4 @@ Makefile
 MYMETA.*
 /blib/*
 pm_to_blib
-MooseX-Types-DateTimeX-*
+MooseX-Types-DateTime-MoreCoercions-*
diff --git a/Changes b/Changes
index e3d4971..31ef657 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
 
         - Switch back to MooseX::Types::DateTime
+        - Rename to more descriptive name
 
 0.06    - Updated distmeta
         - Migrated to MX:T:DateTime::ButMaintained
index 6c778a2..827ac97 100755 (executable)
@@ -1,9 +1,9 @@
 use inc::Module::Install;
 
-name     'MooseX-Types-DateTimeX';
+name     'MooseX-Types-DateTime-MoreCoercions';
 perl_version '5.008';
-all_from 'lib/MooseX/Types/DateTimeX.pm';
-author   'Evan Carroll <me@evancarroll.com>';
+all_from 'lib/MooseX/Types/DateTime/MoreCoercions.pm';
+author   "Dagfinn Ilmari Manns\x{e5)ker <ilmari\@ilmari.org>";
 license  'perl';
 
 requires 'Moose'              => '0.41'; # class_type
@@ -20,7 +20,7 @@ test_requires 'Test::use::ok'    => '0.02';
 test_requires 'Test::Exception'  => '0.27';
 test_requires 'Test::More';
 
-repository 'git@github.com:EvanCarroll/mx-t-datetimex.git';
+repository 'git://git.moose.perl.org/MooseX-Types-DateTime-MoreCoercions.git';
 
 auto_install;
 
similarity index 81%
rename from lib/MooseX/Types/DateTimeX.pm
rename to lib/MooseX/Types/DateTime/MoreCoercions.pm
index c969ec0..010e735 100644 (file)
@@ -1,4 +1,4 @@
-package MooseX::Types::DateTimeX;
+package MooseX::Types::DateTime::MoreCoercions;
 use strict;
 use warnings;
 
@@ -37,13 +37,13 @@ __END__
 
 =head1 NAME
 
-MooseX::Types::DateTimeX - Extensions to L<MooseX::Types::DateTime>
+MooseX::Types::DateTime::MoreCoercions - Extensions to L<MooseX::Types::DateTime>
 
 =head1 SYNOPSIS
 
     package MyApp::MyClass;
 
-    use MooseX::Types::DateTimeX qw( DateTime );
+    use MooseX::Types::DateTime::MoreCoercions qw( DateTime );
 
     has created => (
         isa => DateTime,
@@ -63,21 +63,19 @@ Please see the test case for more example usage.
 
 This module builds on L<MooseX::Types::DateTime> to add additional custom types and coercions.  Since it builds on an existing type, all coercions and constraints are inherited.
 
-The package name is left as is for legacy reasons: this module is really a Type with coercions for L<DateTimeX::Easy>. DateTimeX is just a namespace for non-core or less-official L<DateTime> modules.
-
 =head1 SUBTYPES
 
 This module defines the following additional subtypes.
 
 =head2 DateTime
 
-Subtype of 'DateTime'.  Adds an additional coercion from strings.
+Subtype of L<MooseX::Types::DateTime/DateTime>.  Adds an additional coercion from strings.
 
 Uses L<DateTimeX::Easy> to try and convert strings, like "yesterday" into a valid L<DateTime> object.  Please note that due to ambiguity with how different systems might localize their timezone, string parsing may not always return the most expected value.  IN general we try to localize to UTC whenever possible.  Feedback welcomed!
 
 =head2 Duration
 
-Subtype of 'DateTime::Duration' that coerces from a string.  We use the module L<Time::Duration::Parse> to attempt this.
+Subtype of L<MooseX::Types::DateTime/Duration> that coerces from a string.  We use the module L<Time::Duration::Parse> to attempt this.
 
 =head1 CAVEATS
 
@@ -91,6 +89,8 @@ Firstly, this module uses L<DateTimeX::Easy> which is way to more DWIM than any
 
 =item * L<DateTimeX::Easy> Backend of this module
 
+=item * L<Time::Duration::Parse> Duration parsing backend for this module
+
 =back
 
 =head1 AUTHOR
@@ -99,6 +99,10 @@ John Napiorkowski E<lt>jjn1056 at yahoo.comE<gt>
 
 Broken into a seperate package from L<MooseX::Types::DateTime> by Evan Carroll.
 
+Forked from L<MooseX::Types::DateTimeX> and ported back to use
+L<MooseX::Types::DateTime> by Dagfinn Ilmari MannsE<aring>ker
+E<lt>ilmari@ilmari.orgE<gt>.
+
 =head1 LICENSE
 
     Copyright (c) 2008 John Napiorkowski.
index c1077b1..5d2996f 100644 (file)
@@ -11,7 +11,7 @@ BEGIN {
 use Test::Exception;
 use DateTime;
 
-use ok 'MooseX::Types::DateTimeX';
+use ok 'MooseX::Types::DateTime::MoreCoercions';
 
 =head1 NAME
 
@@ -29,21 +29,21 @@ This module defines the following tests.
 
 =head2 Test Class
 
-Create a L<Moose> class that is using the L<MooseX::Types::DateTimeX> types.
+Create a L<Moose> class that is using the L<MooseX::Types::DateTime::MoreCoercions> types.
 
 =cut
 
 {
-       package MooseX::Types::DateTimeX::CoercionTest;
+       package MooseX::Types::DateTime::MoreCoercions::CoercionTest;
        
        use Moose;
-       use MooseX::Types::DateTimeX qw(DateTime Duration);
+       use MooseX::Types::DateTime::MoreCoercions qw(DateTime Duration);
        
        has 'date' => (is=>'rw', isa=>DateTime, coerce=>1);
        has 'duration' => (is=>'rw', isa=>Duration, coerce=>1); 
 }
 
-ok my $class = MooseX::Types::DateTimeX::CoercionTest->new
+ok my $class = MooseX::Types::DateTime::MoreCoercions::CoercionTest->new
 => 'Created a good class';