DateTime-Format-Natural-1.02000755001750001750 012137737166 14604 5ustar00stssts000000000000DateTime-Format-Natural-1.02/META.yml000444001750001750 455312137737166 16221 0ustar00stssts000000000000--- abstract: 'Create machine readable date/time with natural parsing logic' author: - 'Steven Schubiger ' build_requires: Cwd: 0 File::Find: 0 File::Spec: 0 FindBin: 0 Module::Util: 0 Test::MockTime: 0 Test::More: 0 configure_requires: Module::Build: 0.38 dynamic_config: 1 generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version 2.112150' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: DateTime-Format-Natural provides: DateTime::Format::Natural: file: lib/DateTime/Format/Natural.pm version: 1.02 DateTime::Format::Natural::Calc: file: lib/DateTime/Format/Natural/Calc.pm version: 1.40 DateTime::Format::Natural::Compat: file: lib/DateTime/Format/Natural/Compat.pm version: 0.07 DateTime::Format::Natural::Duration: file: lib/DateTime/Format/Natural/Duration.pm version: 0.06 DateTime::Format::Natural::Duration::Checks: file: lib/DateTime/Format/Natural/Duration/Checks.pm version: 0.04 DateTime::Format::Natural::Expand: file: lib/DateTime/Format/Natural/Expand.pm version: 0.03 DateTime::Format::Natural::Extract: file: lib/DateTime/Format/Natural/Extract.pm version: 0.11 DateTime::Format::Natural::Formatted: file: lib/DateTime/Format/Natural/Formatted.pm version: 0.07 DateTime::Format::Natural::Helpers: file: lib/DateTime/Format/Natural/Helpers.pm version: 0.06 DateTime::Format::Natural::Lang::Base: file: lib/DateTime/Format/Natural/Lang/Base.pm version: 1.08 DateTime::Format::Natural::Lang::EN: file: lib/DateTime/Format/Natural/Lang/EN.pm version: 1.59 DateTime::Format::Natural::Rewrite: file: lib/DateTime/Format/Natural/Rewrite.pm version: 0.06 DateTime::Format::Natural::Test: file: lib/DateTime/Format/Natural/Test.pm version: 0.10 DateTime::Format::Natural::Utils: file: lib/DateTime/Format/Natural/Utils.pm version: 0.05 DateTime::Format::Natural::Wrappers: file: lib/DateTime/Format/Natural/Wrappers.pm version: 0.03 recommends: Date::Calc: 0 requires: Carp: 0 Clone: 0 DateTime: 0 DateTime::TimeZone: 0 Exporter: 0 Getopt::Long: 0 List::MoreUtils: 0 Params::Validate: 0 Scalar::Util: 0 Storable: 0 Term::ReadLine: 0 boolean: 0 resources: license: http://dev.perl.org/licenses/ version: 1.02 DateTime-Format-Natural-1.02/META.json000444001750001750 712612137737166 16370 0ustar00stssts000000000000{ "abstract" : "Create machine readable date/time with natural parsing logic", "author" : [ "Steven Schubiger " ], "dynamic_config" : 1, "generated_by" : "Module::Build version 0.38, CPAN::Meta::Converter version 2.112150", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" }, "name" : "DateTime-Format-Natural", "prereqs" : { "build" : { "requires" : { "Cwd" : 0, "File::Find" : 0, "File::Spec" : 0, "FindBin" : 0, "Module::Util" : 0, "Test::MockTime" : 0, "Test::More" : 0 } }, "configure" : { "requires" : { "Module::Build" : "0.38" } }, "runtime" : { "recommends" : { "Date::Calc" : 0 }, "requires" : { "Carp" : 0, "Clone" : 0, "DateTime" : 0, "DateTime::TimeZone" : 0, "Exporter" : 0, "Getopt::Long" : 0, "List::MoreUtils" : 0, "Params::Validate" : 0, "Scalar::Util" : 0, "Storable" : 0, "Term::ReadLine" : 0, "boolean" : 0 } } }, "provides" : { "DateTime::Format::Natural" : { "file" : "lib/DateTime/Format/Natural.pm", "version" : "1.02" }, "DateTime::Format::Natural::Calc" : { "file" : "lib/DateTime/Format/Natural/Calc.pm", "version" : "1.40" }, "DateTime::Format::Natural::Compat" : { "file" : "lib/DateTime/Format/Natural/Compat.pm", "version" : "0.07" }, "DateTime::Format::Natural::Duration" : { "file" : "lib/DateTime/Format/Natural/Duration.pm", "version" : "0.06" }, "DateTime::Format::Natural::Duration::Checks" : { "file" : "lib/DateTime/Format/Natural/Duration/Checks.pm", "version" : "0.04" }, "DateTime::Format::Natural::Expand" : { "file" : "lib/DateTime/Format/Natural/Expand.pm", "version" : "0.03" }, "DateTime::Format::Natural::Extract" : { "file" : "lib/DateTime/Format/Natural/Extract.pm", "version" : "0.11" }, "DateTime::Format::Natural::Formatted" : { "file" : "lib/DateTime/Format/Natural/Formatted.pm", "version" : "0.07" }, "DateTime::Format::Natural::Helpers" : { "file" : "lib/DateTime/Format/Natural/Helpers.pm", "version" : "0.06" }, "DateTime::Format::Natural::Lang::Base" : { "file" : "lib/DateTime/Format/Natural/Lang/Base.pm", "version" : "1.08" }, "DateTime::Format::Natural::Lang::EN" : { "file" : "lib/DateTime/Format/Natural/Lang/EN.pm", "version" : "1.59" }, "DateTime::Format::Natural::Rewrite" : { "file" : "lib/DateTime/Format/Natural/Rewrite.pm", "version" : "0.06" }, "DateTime::Format::Natural::Test" : { "file" : "lib/DateTime/Format/Natural/Test.pm", "version" : "0.10" }, "DateTime::Format::Natural::Utils" : { "file" : "lib/DateTime/Format/Natural/Utils.pm", "version" : "0.05" }, "DateTime::Format::Natural::Wrappers" : { "file" : "lib/DateTime/Format/Natural/Wrappers.pm", "version" : "0.03" } }, "release_status" : "stable", "resources" : { "license" : [ "http://dev.perl.org/licenses/" ] }, "version" : "1.02" } DateTime-Format-Natural-1.02/Makefile.PL000444001750001750 247012137737166 16716 0ustar00stssts000000000000# Note: this file was auto-generated by Module::Build::Compat version 0.3800 use ExtUtils::MakeMaker; WriteMakefile ( 'PL_FILES' => {}, 'INSTALLDIRS' => 'site', 'NAME' => 'DateTime::Format::Natural', 'EXE_FILES' => [ 'scripts/dateparse' ], 'VERSION_FROM' => 'lib/DateTime/Format/Natural.pm', 'PREREQ_PM' => { 'Scalar::Util' => 0, 'DateTime' => 0, 'FindBin' => 0, 'Test::MockTime' => 0, 'File::Spec' => 0, 'Storable' => 0, 'boolean' => 0, 'File::Find' => 0, 'List::MoreUtils' => 0, 'Getopt::Long' => 0, 'Exporter' => 0, 'Carp' => 0, 'Test::More' => 0, 'DateTime::TimeZone' => 0, 'Term::ReadLine' => 0, 'Params::Validate' => 0, 'Module::Util' => 0, 'Clone' => 0, 'Cwd' => 0 } ) ; DateTime-Format-Natural-1.02/Build.PL000444001750001750 247312137737166 16243 0ustar00stssts000000000000# Note: this file has been initially created by Make::Build::Convert 0.20_01 use strict; use warnings; use Module::Build; my $build = Module::Build->new ( module_name => 'DateTime::Format::Natural', dist_author => 'Steven Schubiger ', dist_version_from => 'lib/DateTime/Format/Natural.pm', requires => { 'boolean' => 0, 'Carp' => 0, 'Clone' => 0, 'DateTime' => 0, 'DateTime::TimeZone' => 0, 'Exporter' => 0, 'Getopt::Long' => 0, 'List::MoreUtils' => 0, 'Params::Validate' => 0, 'Scalar::Util' => 0, 'Storable' => 0, 'Term::ReadLine' => 0, }, build_requires => { 'Cwd' => 0, 'File::Find' => 0, 'File::Spec' => 0, 'FindBin' => 0, 'Module::Util' => 0, 'Test::MockTime' => 0, 'Test::More' => 0, }, recommends => { 'Date::Calc' => 0 }, script_files => [ 'scripts/dateparse' ], license => 'perl', create_readme => 1, create_makefile_pl => 'traditional', ); $build->create_build_script; DateTime-Format-Natural-1.02/INSTALL000444001750001750 45412137737166 15755 0ustar00stssts000000000000To install DateTime::Format::Natural, type the following: perl Build.PL ./Build ./Build test ./Build install Or, if you're on a platform (like DOS or Windows) that doesn't like the "./" notation, you can do this: perl Build.PL perl Build perl Build test perl Build install DateTime-Format-Natural-1.02/Changes000444001750001750 13124512137737166 16302 0ustar00stssts000000000000Revision history for Perl extension DateTime::Format::Natural. 1.02 2013-04-30 - Merged development version to stable. 1.01_05 2013-04-01 - Parse and extract relative durations in reversed order. - Document reversed relative durations under examples. - Treat for grammar expressions as durations. - Refine gathering idents for from to durations. - Use rightmost matching token on left side of duration as type. - Split duration string only if accompanied by whitespace. - Strengthen matching duration substrings against regexes. - Extract regex captured punctuation marks in loop body. - Undo some loop indentation in test files. - Reorder version number variable in Calc class. 1.01_04 2013-01-17 - Concatenate duration expression chunks with separator. - Merge calls for extracting duration expressions. - Distinguish between expression types when finalizing. - Simplify finalizing date/grammar duration expressions. - Test that expressions do not overlap with duration ones. - Strip timespan separators from extract string. - Normalize whitespace of duration expressions. - Keep duration extract methods private. - Don't declare a plan for extract-expression tests. - Enhance comment in extract-expression test file. 1.01_03 2012-12-06 - Fix fatal error from extract tests on 5.{8.9,10.0}. - Display extracted strings for dateparse. 1.01_02 2012-11-29 - Extract relative and rewritten duration expressions. - Check parsing of extracted expressions. 1.01_01 2012-10-25 - Narrow scope of variables in _extract_expressions(). - Improve finalizing duration expressions. 1.01 2012-09-07 - Merged development version to stable. 1.00_02 2012-09-01 - Duplicate and extend types only for grammar expansion. - Initialize subscript variable. - Remove trailing semicolon in do block. 1.00_01 2012-07-21 - Extract expanded expressions and add a test. 1.00 2012-05-30 - Merged development version to stable. - Replace use of constant pragma with boolean. 0.99_01 2012-05-20 - Introduce ::Expand which handles expanding grammar. - Enhance main grammar loop to enable grammar expansion. - Include count of tokens for expanded grammar in lookup map. - Add test file for expansions. - Make the truncate_to grammar option an array reference. - Truncate values after each worker method called. - Move truncating code to a separate method. - Require Clone as prerequisite. - Mention expansion of grammar in docs. 0.99 2012-04-26 - Merged development version to stable. 0.98_03 2012-04-22 - Check if daytime exists in _daytime_variant(). - Load modules in test files where missing. 0.98_02 2012-04-22 - Add validation rules to allow passing DateTime::TimeZone objects. [Roman Filippov] - Test providing a DateTime::TimeZone object. - Load DateTime::TimeZone explicitly. - Test validation of constructor arguments. - List Roman Filippov in credits. 0.98_01 2012-01-01 - Mention and link to dateparse in the See also section. 0.98 2011-10-29 - Merged development version to stable. 0.97_02 2011-10-27 - Strip leading and trailing spaces from input strings. 0.97_01 2011-10-25 - Support parsing timestamp. [Xiao Yafeng] 0.97 2011-08-17 - Merged development version to stable. 0.96_04 2011-08-16 - Check that the datetime string for dateparse has at most two chunks (date/time); also require DateTime. - Elaborate on the format of dateparse's datetime string. 0.96_03 2011-08-13 - Add the datetime switch to dateparse and document it. - Print dateparse's dates formatted according to ISO 8601. 0.96_02 2011-08-10 - Revert truncating of ago formats. - Add Xiao Yafeng to credits. 0.96_01 2011-08-01 - New supported format: today ago. [Xiao Yafeng] - Truncate for this and other ago formats to day if there is no time component in order to produce more consistent results. - Add new and adjust existing regular tests for these formats; moreover, complete the list of parse failure tests. - List the added grammar in the documentation. 0.96 2011-06-01 - Merged development version to stable. 0.95_03 2011-05-30 - Add the extract switch to dateparse and document it. - Change dateparse's prefer_future option to be not negatable. 0.95_02 2011-05-28 - Reorder the nested extract loop iterating through the grammar entries to process only one subentry for all matching tokens. - Move the check for a date when extracting expressions to a method. - Add assert tests for extract_datetime(): one for the context dependant return and another for the nested extract loop fix. - Improve code visually of the parse success and failure test files. 0.95_01 2011-05-19 - Do no longer recommend Test::Pod and Test::Pod::Coverage. - Use quantifier which matches 1 or more times when extracting subroutine or method names. - Assign a list instead of pushing a string for time entries. 0.95 2011-05-14 - Merged development version to stable. 0.94_04 2011-05-11 - New supported format: