-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
298 additions
and
454 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
use strict; | ||
use warnings; | ||
use ExtUtils::MakeMaker; | ||
|
||
# Check for Time::HiRes; | ||
eval { require Time::HiRes; }; | ||
if($@) { | ||
print "Warning: Time::HiRes not installed, but that's ok, " . | ||
"%r will use full seconds\n"; | ||
} | ||
|
||
my $meta_merge = { | ||
META_MERGE => { | ||
"meta-spec" => { version => 2 }, | ||
resources => { | ||
repository => 'https://github.com/mschilli/log4perl', | ||
repository => { | ||
type => 'git', | ||
url => '[email protected]:github.com/mschilli/log4perl.git', | ||
web => 'https://github.com/github.com/mschilli/log4perl', | ||
}, | ||
MailingList => 'mailto:[email protected]', | ||
bugtracker => { | ||
bugtracker => { | ||
web => 'https://github.com/mschilli/log4perl/issues', | ||
}, | ||
}, | ||
|
@@ -28,6 +27,15 @@ my $meta_merge = { | |
'Log::Dispatch::FileRotate' => '1.10', | ||
'XML::DOM' => '1.29', | ||
}, | ||
requires => { | ||
'File::Spec' => '0.82', | ||
'File::Path' => '2.07', | ||
}, | ||
}, | ||
test => { | ||
requires => { | ||
'Test::More' => '0.88', # done_testing | ||
}, | ||
}, | ||
}, | ||
} | ||
|
@@ -36,10 +44,6 @@ my $meta_merge = { | |
WriteMakefile( | ||
'NAME' => 'Log::Log4perl', | ||
'VERSION_FROM' => 'lib/Log/Log4perl.pm', # finds $VERSION | ||
'PREREQ_PM' => { Test::More => 0.45, | ||
File::Spec => 0.82, | ||
File::Path => 2.07, | ||
}, # e.g., Module::Name => 1.1 | ||
ABSTRACT_FROM => 'lib/Log/Log4perl.pm', # retrieve abstract from module | ||
AUTHOR => 'Mike Schilli <[email protected]>', | ||
MIN_PERL_VERSION => '5.006', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,8 @@ | |
# Mike Schilli, 2002 ([email protected]) | ||
########################################### | ||
|
||
######################### | ||
# change 'tests => 1' to 'tests => last_test_to_print'; | ||
######################### | ||
use Test; | ||
use strict; | ||
use Test::More; | ||
|
||
BEGIN { | ||
if($ENV{INTERNAL_DEBUG}) { | ||
|
@@ -16,7 +13,6 @@ BEGIN { | |
} | ||
} | ||
|
||
BEGIN { plan tests => 34 }; | ||
use Log::Log4perl::Level; | ||
BEGIN { | ||
Log::Log4perl::Level->import("Level"); | ||
|
@@ -59,3 +55,5 @@ ok(Log::Log4perl::Level::isGreaterOrEqual($My::Level::DEBUG, $My::Level::INFO)); | |
ok(Log::Log4perl::Level::isGreaterOrEqual($My::Level::INFO, $My::Level::WARN)); | ||
ok(Log::Log4perl::Level::isGreaterOrEqual($My::Level::WARN, $My::Level::ERROR)); | ||
ok(Log::Log4perl::Level::isGreaterOrEqual($My::Level::ERROR, $My::Level::FATAL)); | ||
|
||
done_testing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,4 +246,4 @@ eval { | |
}; | ||
like($@, qr/log4perl.logger.Foo.Bar redefined/); | ||
|
||
BEGIN { plan tests => 14, } | ||
done_testing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.