Permalink
Browse files

Prep for CPAN release

  • Loading branch information...
1 parent d9d1b77 commit d59f9ee540f750bb3143672414a7c0a62c456247 @jandrew committed Apr 19, 2012
View
@@ -1,5 +1,5 @@
{
- "abstract" : "a mashup allowing multiple date formats\r",
+ "abstract" : "a mashup for consuming multiple date formats\r",
"author" : [
"Jed Lund <jandrew@cpan.org>"
],
@@ -23,7 +23,7 @@
"requires" : {
"DateTime" : 0,
"DateTime::Format::DateManip" : 0,
- "DateTime::Format::Epoch" : "v0.13.0",
+ "DateTime::Format::Epoch" : "0.013",
"DateTime::Format::Excel" : 0,
"Moose::Role" : 0,
"MooseX::StrictConstructor" : 0,
@@ -40,12 +40,13 @@
"MooseX::ClassCompositor" : 0,
"Test::MockTime" : 0,
"Test::Moose" : 0,
+ "Test::More" : 0,
"Test::Most" : 0,
"YAML::Any" : 0
}
}
},
"release_status" : "testing",
- "version" : "v0.07_01"
+ "version" : "v0.007_003"
}
View
@@ -1,5 +1,5 @@
---
-abstract: "a mashup allowing multiple date formats\r"
+abstract: "a mashup for consuming multiple date formats\r"
author:
- 'Jed Lund <jandrew@cpan.org>'
build_requires:
@@ -8,6 +8,7 @@ build_requires:
MooseX::ClassCompositor: 0
Test::MockTime: 0
Test::Moose: 0
+ Test::More: 0
Test::Most: 0
YAML::Any: 0
configure_requires:
@@ -22,12 +23,12 @@ name: DateTimeX-Mashup-Shiras
requires:
DateTime: 0
DateTime::Format::DateManip: 0
- DateTime::Format::Epoch: v0.13
+ DateTime::Format::Epoch: 0.013
DateTime::Format::Excel: 0
Moose::Role: 0
MooseX::StrictConstructor: 0
MooseX::Types: 0
MooseX::Types::Moose: 0
Smart::Comments: 0
version: 0.94
-version: v0.07_01
+version: v0.007_003
View
@@ -9,14 +9,15 @@ use ExtUtils::MakeMaker 6.30;
my %WriteMakefileArgs = (
- "ABSTRACT" => "a mashup allowing multiple date formats\r",
+ "ABSTRACT" => "a mashup for consuming multiple date formats\r",
"AUTHOR" => "Jed Lund <jandrew\@cpan.org>",
"BUILD_REQUIRES" => {
"Modern::Perl" => 0,
"Moose" => 0,
"MooseX::ClassCompositor" => 0,
"Test::MockTime" => 0,
"Test::Moose" => 0,
+ "Test::More" => 0,
"Test::Most" => 0,
"YAML::Any" => 0
},
@@ -30,7 +31,7 @@ my %WriteMakefileArgs = (
"PREREQ_PM" => {
"DateTime" => 0,
"DateTime::Format::DateManip" => 0,
- "DateTime::Format::Epoch" => "v0.13",
+ "DateTime::Format::Epoch" => "0.013",
"DateTime::Format::Excel" => 0,
"Moose::Role" => 0,
"MooseX::StrictConstructor" => 0,
@@ -39,7 +40,7 @@ my %WriteMakefileArgs = (
"Smart::Comments" => 0,
"version" => "0.94"
},
- "VERSION" => "v0.07_01",
+ "VERSION" => "v0.007_003",
"test" => {
"TESTS" => "t/*.t"
}
@@ -2,7 +2,7 @@ package DateTimeX::Mashup::Shiras;
use Moose::Role;
use MooseX::StrictConstructor;
-use version; our $VERSION = qv('0.07_01');
+use version; our $VERSION = qv('0.007_003');
use Smart::Comments -ENV;
### Smart-Comments turned on for DateTimeX::Mashup::Shiras
use MooseX::Types::Moose qw(
@@ -140,7 +140,7 @@ __END__
=head1 NAME
-DateTimeX::Mashup::Shiras - a mashup allowing multiple date formats
+DateTimeX::Mashup::Shiras - a mashup for consuming multiple date formats
=head1 SYNOPSIS
@@ -186,20 +186,21 @@ DateTimeX::Mashup::Shiras - a mashup allowing multiple date formats
L<Shiras|http://en.wikipedia.org/wiki/Moose#Subspecies> - A small subspecies of
Moose found in the western United States.
-This is a Moose Role that provides combined functionality from three different
-L<DateTime::Format> packages. The three modules are;
-L<DateTime::Format::DateManip>, L<DateTime::Format::Epoch>, and
-L<DateTime::Format::Excel>. It then uses the Moose type coersion system to choose
-the correct way to format the date. This means that all input strings are
-parsed by ::DateManip. All numbers are parsed either by ::Format::Excel or
-::Format::Epoch. Since the numbers of each overlap, the general rule is all
-positive numbers under 7 positions left of the decimal are given to ::Excel and
-negative integers and integers of 7 or greater positions are given to ::Epoch.
-Numbers outside of this range fail the type constraints. I<See the 'Attribute'
-section below for a way to force the numerical values to be parsed by the
-non-preffered formatter in the overlap.> Currently the Epoch is fixed at midnight
-1-January-1970. Since all the date 'getters' return DateTime objects, all the
-L<DateTime> formats can be applied directly. ex. $inst->get_today_wkend->ymd( "/" ).
+B<This is a Moose L<Role|https://metacpan.org/module/Moose::Manual::Roles>>
+that provides combined functionality from three different L<DateTime::Format>
+packages. The three modules are; L<DateTime::Format::DateManip>,
+L<DateTime::Format::Epoch>, and L<DateTime::Format::Excel>. It then uses the
+Moose type coersion system to choose the correct way to format the date. This
+means that all input strings are parsed by ::Format::DateManip. All numbers are
+parsed either by ::Format::Excel or ::Format::Epoch. Since the numbers of each
+overlap, the rule is all positive numbers under 7 positions left of the decimal
+are given to ::Excel and negative integers and integers of 7 or greater positions
+are given to ::Epoch. Numbers outside of this range fail the type constraints.
+I<See the L</Attribute> section below for a way to force the numerical values to be
+parsed by the non-preffered formatter in the overlap.> Currently the Epoch is fixed
+at midnight 1-January-1970. Since all the date 'getters' return DateTime objects,
+all the L<DateTime> formats can be applied directly. ex.
+$inst->get_today_wkend->ymd( "/" ).
I learned the magic for the input coersion from
L<The Moose is Flying (part 2)|http://www.stonehenge.com/merlyn/LinuxMag/col95.html>
@@ -304,7 +305,7 @@ then that formatting will be applied.
=back
-=head1 BUGS
+=head1 SUPPORT
L<DateTimeX-Mashup-Shiras/issues|https://github.com/jandrew/DateTimeX-Mashup-Shiras/issues>
@@ -318,14 +319,6 @@ L<DateTimeX-Mashup-Shiras/issues|https://github.com/jandrew/DateTimeX-Mashup-Shi
=back
-=head1 SUPPORT
-
-=over
-
-=item jandrew@cpan.org
-
-=back
-
=head1 AUTHOR
=over
@@ -354,6 +347,8 @@ LICENSE file included with this module.
=item L<version>
+=item L<Smart::Comments> - with the -ENV setting
+
=item L<MooseX::Types::Moose>
=item L<MooseX::Types>
@@ -376,6 +371,10 @@ LICENSE file included with this module.
=over
+=item L<Date::Parse>
+
+=item L<Date::Manip::Date>
+
=item L<DateTimeX::Format>
=back
@@ -1,9 +1,9 @@
#! C:/Perl/bin/perl
package DateTimeX::Mashup::Shiras::Types;
-use version 0.94; our $VERSION = qv('0.15_01');
+use version 0.94; our $VERSION = qv('0.015_001');
use DateTime;
-use DateTime::Format::Epoch v0.13;
+use DateTime::Format::Epoch 0.013;
use DateTime::Format::Excel;
use DateTime::Format::DateManip;
use MooseX::Types -declare => [ qw(
@@ -122,7 +122,7 @@ __END__
=head1 NAME
-DateTimeX::Mashup::Shiras::Types - See the title
+DateTimeX::Mashup::Shiras::Types - Types for DateTimeX::Mashup::Shiras
=head1 SYNOPSIS
@@ -146,7 +146,7 @@ This is a set of custom types for the L<DateTimeX::Mashup::Shiras> Moose role.
There are only Moose usable types in this package! Read the code to understand
the type range.
-=head1 BUGS
+=head1 SUPPORT
L<DateTimeX-Mashup-Shiras/issues|https://github.com/jandrew/DateTimeX-Mashup-Shiras/issues>
@@ -160,14 +160,6 @@ L<DateTimeX-Mashup-Shiras/issues|https://github.com/jandrew/DateTimeX-Mashup-Shi
=back
-=head1 SUPPORT
-
-=over
-
-=item jandrew@cpan.org
-
-=back
-
=head1 AUTHOR
=over
@@ -210,6 +202,10 @@ LICENSE file included with this module.
=over
+=item L<Date::Parse>
+
+=item L<Date::Manip::Date>
+
=item L<DateTimeX::Format>
=back
View
@@ -1,16 +1,8 @@
#! C:/Perl/bin/perl
-### Test that the module loads
-use Test::Most;
-
+### Test that the module(s) load!(s)
+use Test::More;
use lib '../lib', 'lib';
-
-my @modules = (
- 'DateTimeX::Mashup::Shiras v0.07',
- 'DateTimeX::Mashup::Shiras::Types v0.15',
- );
-
-map{ use_ok( $_ ) } @modules;
-done_testing;
-
-
-
+use DateTimeX::Mashup::Shiras v0.007;
+use DateTimeX::Mashup::Shiras::Types v0.015;
+pass( "Test loading the modules in the package" );
+done_testing();
@@ -8,7 +8,7 @@ use Test::MockTime qw(
restore_time
);
use YAML::Any;
-#~ use Smart::Comments '###';
+use Smart::Comments -ENV;
use lib '../lib', 'lib';
use DateTimeX::Mashup::Shiras v0.07;#Manage version tested
@@ -2,7 +2,7 @@ package MyPackage;
use Moose;
use lib '../lib';
-with 'DateTimeX::Mashup::Shiras' => { -VERSION => 0.07 };
+with 'DateTimeX::Mashup::Shiras' => { -VERSION => 0.007 };
no Moose;
__PACKAGE__->meta->make_immutable;

0 comments on commit d59f9ee

Please sign in to comment.