Advanced-Config
view release on metacpan or search on metacpan
- Added toHash() method to convert object into a hash.
- Fixed sensitive bug in Options.pm.
- Now uses DBUG's built in argument masking method instead of hacking the
code to enforce masking. Enables us to put the arguments in a more sane
order in the future and eliminated convoluted code for masking what wasn't
needed for module functionality.
- Updated min version of DBUG allowed in Makefile.PL so previous fix works!
(version: 1.03)
- Fixed jan/dec bug in Options.pm for next/previous month check.
- t/00-basic.t now uses BAIL_OUT() to force "make test" to abort if
it hits compile errors with my module. Makes it easier to debug
changes.
- Added test case dependencies to Makefile.PL
Never uploaded to CPAN.
1.01 2018-08-06 08:30:00
- Prepping for an Initial Public Release from a private personal baseline.
Never uploaded to CPAN.
# It's main goal is to be able to take config files from various sources and
# products and to be able to use them natively in this module. Making any
# config file look the same to a Perl program!
# See the many test cases and config files for how powerful things can be.
# Once you start using it I don't see you going back to using any other
# config file module.
# This module makes heavy use of Fred::Fish::DBUG to provide tracing for the
# test cases and to help with debugging this code. But this logging feature is
# turned off for normal operations. But it's still a prerequisite for using
# this module.
# Run "perldoc Advanced::Config::Examples" for more details & examples
# in using Advaned::Config once this module has been installed.
INSTALLATION
=====================================================================
full_developer_test.pl.src view on Meta::CPAN
# module is expected to be run by normal users.
# It just proves that using Fred::Fish::DBUG "on" vs "off" doesn't change
# the behaviour of my module.
# ------------------------------------------------------------------------
# Running: full_developer_test.pl t/<name>.t
# ------------------------------------------------------------------------
# Forces a "make" first.
# Runs just that one test program 2 times instead of the full "make test".
# Does this via "prove -bv t/<name>.t"
# Before each run it will reset FISH_OFF_FLAG. It's just a quick and
# dirty way to fully debug individual test progs.
# ------------------------------------------------------------------------
use strict;
use warnings;
use ExtUtils::MakeMaker 6.30;
use File::Spec;
use Cwd 'abs_path';
use File::Basename;
use File::Copy;
t/55-validate-strings.t view on Meta::CPAN
dbug_ok (0, "Tags $_ match when they shouldn't! (${s})");
}
}
DBUG_RETURN ( $ok );
}
# ====================================================================
# Tests the results.
# Only prints out failures when testing the contents.
# There are just too many tests otherwise to debug things!
# ====================================================================
sub test_results
{
DBUG_ENTER_FUNC ( @_ );
my $cfg = shift;
my $mis = shift; # The list of tags not in the string config.
my @lst1 = sort keys %Config;
my @lst2 = sort $cfg->find_tags ();
t/75-check_all_languages.t view on Meta::CPAN
print CONFIG "MoY_${_} = $l->{MoY}->[$_] # ENCRYPT\n";
}
print CONFIG "\n";
foreach ( 0..11 ) {
print CONFIG "MoYs_${_} = $l->{MoYs}->[$_] # ENCRYPT\n";
}
print CONFIG "\n";
# The status to use for the dbug_ok() tests in the following loop ...
# Done this way so I can easily flip the switch to cause failed
# tests during debugging this lc(uc(month)) issue!
my $ok_tst = 1;
my $ok_msg = $ok_tst ? "failed" : "worked";
foreach ( 0..11 ) {
my $uc1 = uc ($l->{MoY}->[$_]);
my $uc2 = uc ($l->{MoYs}->[$_]);
my $lc1 = lc ($l->{MoY}->[$_]);
my $lc2 = lc ($l->{MoYs}->[$_]);
# Search for upper case issues ...
t/76-check_all_languages2.t view on Meta::CPAN
print CONFIG "MoY_${_} = $l->{MoY}->[$_] # ENCRYPT\n";
}
print CONFIG "\n";
foreach ( 0..11 ) {
print CONFIG "MoYs_${_} = $l->{MoYs}->[$_] # ENCRYPT\n";
}
print CONFIG "\n";
# The status to use for the dbug_ok() tests in the following loop ...
# Done this way so I can easily flip the switch to cause failed
# tests during debugging this lc(uc(month)) issue!
my $ok_tst = 1;
my $ok_msg = $ok_tst ? "failed" : "worked";
foreach ( 0..11 ) {
my $uc1 = uc ($l->{MoY}->[$_]);
my $uc2 = uc ($l->{MoYs}->[$_]);
my $lc1 = lc ($l->{MoY}->[$_]);
my $lc2 = lc ($l->{MoYs}->[$_]);
# Search for upper case issues ...
( run in 1.066 second using v1.01-cache-2.11-cpan-49f99fa48dc )