forked from makamaka/Text-CSV-Encoded
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jluis/cpanpr
Janury CPAN pull Request
- Loading branch information
Showing
10 changed files
with
225 additions
and
122 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,36 +1,49 @@ | ||
use 5.00503; | ||
# This Makefile.PL for Text-CSV-Encoded was generated by | ||
# Dist::Zilla::Plugin::MakeMaker::Awesome 0.34. | ||
# Don't edit it but the dist.ini and plugins used to construct it. | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use 5.008; | ||
use ExtUtils::MakeMaker; | ||
|
||
use lib qw( ./lib ); | ||
my %WriteMakefileArgs = ( | ||
"ABSTRACT" => "Encoding aware Text::CSV.", | ||
"AUTHOR" => "Makamaka Hannyaharamitu, <makamaka[at]cpan.org>", | ||
"CONFIGURE_REQUIRES" => { | ||
"ExtUtils::MakeMaker" => 0 | ||
}, | ||
"DISTNAME" => "Text-CSV-Encoded", | ||
"LICENSE" => "perl", | ||
"MIN_PERL_VERSION" => "5.008", | ||
"NAME" => "Text::CSV::Encoded", | ||
"PREREQ_PM" => { | ||
"IO::Handle" => 0, | ||
"Test::Harness" => 0, | ||
"Test::More" => 0, | ||
"Text::CSV" => "1.31" | ||
}, | ||
"VERSION" => "0.24", | ||
"test" => { | ||
"TESTS" => "t/*.t" | ||
} | ||
); | ||
|
||
my %FallbackPrereqs = ( | ||
"IO::Handle" => 0, | ||
"Test::Harness" => 0, | ||
"Test::More" => 0, | ||
"Text::CSV" => "1.31" | ||
); | ||
|
||
# See lib/ExtUtils/MakeMaker.pm for details of how to influence | ||
# the contents of the Makefile that is written. | ||
WriteMakefile( | ||
'NAME' => 'Text::CSV::Encoded', | ||
'VERSION_FROM' => 'lib/Text/CSV/Encoded.pm', # finds $VERSION | ||
'PREREQ_PM' => { | ||
'IO::Handle' => 0, | ||
'Test::More' => 0, | ||
'Test::Harness' => 0, | ||
'Text::CSV' => 1.31, | ||
}, | ||
($] >= 5.005 ? ## Add these new keywords supported since 5.005 | ||
(ABSTRACT_FROM => 'lib/Text/CSV/Encoded.pm', # retrieve abstract from module | ||
AUTHOR => 'Makamaka Hannyaharamitu, E<lt>makamaka[at]cpan.orgE<gt>') : ()), | ||
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { | ||
delete $WriteMakefileArgs{TEST_REQUIRES}; | ||
delete $WriteMakefileArgs{BUILD_REQUIRES}; | ||
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; | ||
} | ||
|
||
( $ExtUtils::MakeMaker::VERSION >= 6.3002 ? ('LICENSE' => 'perl', ) : () ), | ||
delete $WriteMakefileArgs{CONFIGURE_REQUIRES} | ||
unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; | ||
|
||
( $ExtUtils::MakeMaker::VERSION >= 6.46 ? ( | ||
'META_MERGE' => { | ||
resources => { | ||
bugtracker => 'https://github.com/singingfish/Text-CSV-Encoded/issues', | ||
repository => { | ||
type => 'git', | ||
url => 'git@github.com:singingfish/Text-CSV-Encoded.git', | ||
web => 'https://github.com/singingfish/Text-CSV-Encoded', | ||
}, | ||
}, | ||
} ) : () | ||
), | ||
); | ||
WriteMakefile(%WriteMakefileArgs); |
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
=pod | ||
|
||
=head1 NAME | ||
|
||
Text::CSV::Encoded - Encoding aware Text::CSV. | ||
|
||
=head1 SYNOPSIS | ||
|
||
# Here in Perl 5.8 or later | ||
$csv = Text::CSV::Encoded->new ({ | ||
encoding_in => "iso-8859-1", # the encoding comes into Perl | ||
encoding_out => "cp1252", # the encoding comes out of Perl | ||
}); | ||
|
||
# parsing CSV is regarded as input | ||
$csv->parse( $line ); # $line is a iso-8859-1 encoded string | ||
@columns = $csv->fields(); # they are unicode data | ||
|
||
=head1 DESCRIPTION | ||
|
||
This module inherits L<Text::CSV> and is aware of input/output encodings. | ||
|
||
=head1 INSTALLATION | ||
|
||
This module sources are hosted on github | ||
https://github.com/singingfish/Text-CSV-Encoded | ||
and uses C<Dist::Zilla> to generate the distribution. It can be | ||
istalled: | ||
|
||
=over | ||
|
||
=item directly | ||
|
||
cpanm https://github.com/singingfish/Text-CSV-Encoded.git | ||
|
||
=item from CPAN | ||
|
||
cpan Text::CSV::Encoded | ||
cpanm https://github.com/singingfish/Text-CSV-Encoded | ||
|
||
=item maualy cloninig the repository: | ||
|
||
git clone https://github.com/singingfish/Text-CSV-Encoded.git | ||
cd https://github.com/singingfish/Text-CSV-Encoded | ||
perl Makefile.PL | ||
make | ||
make test | ||
make install | ||
|
||
=back | ||
|
||
=head1 REQUIREMENTS | ||
|
||
This distribution requires Perl v5.8.0. | ||
|
||
This distribution requires the following modules: | ||
|
||
=over 4 | ||
|
||
=item * L<Test::Pod> (version 1.41) | ||
|
||
=item * L<Text::CSV> (version 1.31) | ||
|
||
=back | ||
|
||
=head1 COPYRIGHT AND LICENSE | ||
|
||
This library is free software; you can redistribute it and/or modify | ||
it under the same terms as Perl itself. | ||
|
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name = Text-CSV-Encoded | ||
version = 0.24 | ||
author = Makamaka Hannyaharamitu, <makamaka[at]cpan.org> | ||
license = Perl_5 | ||
copyright_holder = Makamaka Hannyaharamitu | ||
[MinimumPerl] | ||
perl = 5.008 | ||
[GatherDir] | ||
[ManifestSkip] | ||
[MetaYAML] | ||
[MetaJSON] | ||
[License] | ||
[ExecDir] | ||
[ShareDir] | ||
[Manifest] | ||
[Test::Kwalitee::Extra] | ||
[TestRelease] | ||
[ConfirmRelease] | ||
[UploadToCPAN] | ||
[ReversionOnRelease] | ||
[MakeMaker::Awesome] | ||
test_file = t/*.t | ||
[@Git] | ||
|
||
|
||
[Prereqs] | ||
IO::Handle = 0 | ||
Test::More = 0 | ||
Test::Harness = 0 | ||
Text::CSV = 1.31 | ||
|
||
[PkgVersion] | ||
[PodVersion] | ||
[NextRelease] | ||
[ReadmeFromPod] | ||
type = pod | ||
|
||
[GithubMeta] | ||
issues = 1 | ||
user = singingfish | ||
repo = Text-CSV-Encoded | ||
|
||
[PodSyntaxTests] | ||
|
||
[Run::BeforeBuild] | ||
run = test ! -f Makefile.PL || rm Makefile.PL | ||
run = test ! -f META.yml || rm META.yml | ||
run = test ! -f META.json || rm META.json | ||
run = test ! -f MANIFEST || rm MANIFEST | ||
run = test ! -f README.pod || rm README.pod | ||
|
||
[Run::AfterBuild] | ||
run = cp %d/Makefile.PL ./ | ||
run = cp %d/README.pod ./ | ||
run = git status --porcelain | grep 'M Makefile.PL' && git add Makefile.PL || echo Makefile.PL up to date | ||
run = git status --porcelain | grep 'M README.pod' && git add README.pod || echo README.PL up to date | ||
run = git status --porcelain | grep 'M dist.ini' && git add dist.ini || echo dist.ini up to date | ||
run = git status --porcelain | grep 'M Makefile.PL' && git commit -m 'auto-committed by dist.ini' Makefile.PL || echo Makefile.PL up to date |
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
Oops, something went wrong.