Skip to content

Commit

Permalink
r22107@222: rjbs | 2006-06-05 10:19:49 -0400
Browse files Browse the repository at this point in the history
 prepare for release
  • Loading branch information
rjbs committed Jun 5, 2006
1 parent 1bcef68 commit f9aebfc
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 10 deletions.
17 changes: 17 additions & 0 deletions Changes
@@ -0,0 +1,17 @@
Revision history for Sub-Exporter

0.100 2006-06-05
broken out of Sub-Exporter into its own dist
renamed routines to be easier to type


0.040 2006-05-11 (in Sub-Exporter)
tweaks to Data::OptList, moving toward its own dist: now it exports
expand_opt_list is now opt_list_as_hash

0.??? 2006-05-10 (in Sub-Exporter)
require Params::Util for craftier opt list validation

0.??? 2006-04-26 (in Sub-Exporter)
broken out of Sub::Exporter module
remove an "optimization" that broke expand_opt_list
9 changes: 3 additions & 6 deletions Makefile.PL
Expand Up @@ -3,16 +3,13 @@ use warnings;

use inc::Module::Install;

name ('Sub-Exporter');
name ('Data-OptList');
author ('Ricardo SIGNES <rjbs@cpan.org>');
license ('perl');
version_from ('lib/Sub/Exporter.pm');
version_from ('lib/Data/OptList.pm');

requires('Sub::Install' => 0.92); # exporter, needed by Data::OptList
requires('List::Util' => 0.00); # unknown minimum
requires('List::Util' => 0.00); # unknown minimum; used for "first"
requires('Params::Util' => 0.14); # _HASHLIKE, _ARRAYLIKE, _CODELIKE

# sign(1); # I hear this gives people grief -- rjbs, 2006-05-10

# auto_install;
WriteAll();
4 changes: 2 additions & 2 deletions lib/Data/OptList.pm
Expand Up @@ -9,13 +9,13 @@ Data::OptList - parse and validate simple name/value option pairs
=head1 VERSION
version 0.04
version 0.100
$Id$
=cut

our $VERSION = '0.04';
our $VERSION = '0.100';

=head1 SYNOPSIS
Expand Down
22 changes: 20 additions & 2 deletions t/opt-expand.t → t/hash.t
Expand Up @@ -9,7 +9,7 @@ These tests test option list expansion (from an option list into a hashref).
=cut

use Sub::Install;
use Test::More 'no_plan';
use Test::More tests => 13;

BEGIN { use_ok('Data::OptList'); }

Expand All @@ -21,11 +21,29 @@ Sub::Install::install_sub({
});

is_deeply(
OPTH([]),
OPTH(),
{},
"empty opt list expands properly",
);

is_deeply(
OPTH(undef),
{},
"undef opt list expands properly",
);

is_deeply(
OPTH([]),
{},
"empty arrayref opt list expands properly",
);

is_deeply(
OPTH({}),
{},
"empty hashref opt list expands properly",
);

is_deeply(
OPTH([ qw(foo bar baz) ]),
{ foo => undef, bar => undef, baz => undef },
Expand Down
File renamed without changes.

0 comments on commit f9aebfc

Please sign in to comment.