Skip to content

Commit

Permalink
Merge pull request #1 from jluis/cpanpr
Browse files Browse the repository at this point in the history
Janury CPAN pull Request
  • Loading branch information
dr-kd committed Jan 28, 2016
2 parents b6f3681 + 4c28af2 commit b58ecc1
Show file tree
Hide file tree
Showing 10 changed files with 225 additions and 122 deletions.
36 changes: 0 additions & 36 deletions MANIFEST

This file was deleted.

27 changes: 0 additions & 27 deletions META.yml

This file was deleted.

73 changes: 43 additions & 30 deletions Makefile.PL
@@ -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);
19 changes: 0 additions & 19 deletions README

This file was deleted.

70 changes: 70 additions & 0 deletions README.pod
@@ -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.

58 changes: 58 additions & 0 deletions dist.ini
@@ -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
49 changes: 47 additions & 2 deletions lib/Text/CSV/Encoded.pm
@@ -1,10 +1,10 @@
package Text::CSV::Encoded;

use strict;
use vars qw( $VERSION );
use warnings;
use Carp ();

$VERSION = '0.23';
# VERSION


BEGIN {
Expand Down Expand Up @@ -269,6 +269,8 @@ Text::CSV::Encoded - Encoding aware Text::CSV.
$csv->parse( $line ); # $line is a iso-8859-1 encoded string
@columns = $csv->fields(); # they are unicode data
=for readme stop
# combining list is regarded as output
$csv->combine(@columns); # they are unicode data
$line = $csv->string(); # $line is a cp1252 encoded string
Expand Down Expand Up @@ -302,11 +304,54 @@ Text::CSV::Encoded - Encoding aware Text::CSV.
# pass check value to coder class
$csv->coder->encode_check_value( Encode::FB_PERLQQ );
=for readme start
=head1 DESCRIPTION
This module inherits L<Text::CSV> and is aware of input/output encodings.
=begin :readme
=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
=for readme plugin requires
=head1 COPYRIGHT AND LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=end :readme
=for readme stop
=head1 ENCODINGS
Acceptable names of encodings (C<encoding_in>, C<encoding_out> and C<encoding>)
Expand Down
7 changes: 3 additions & 4 deletions lib/Text/CSV/Encoded/Coder/Base.pm
@@ -1,10 +1,9 @@
package Text::CSV::Encoded::Coder::Base;

use strict;
# VERSION

BEGIN {
$Text::CSV::Encoded::Coder::Base::VERSION = '0.03';
}
use strict;
use warnings;

sub new {
my $class = shift;
Expand Down

0 comments on commit b58ecc1

Please sign in to comment.