Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverted to commit ca62a2d66. #5

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Revision history for Spreadsheet-ParseXLSX

{{$NEXT}}

0.27 2016-08-16
- Fix issues parsing sheets whose cell elements do not have location
attributes (dgiordano, #61)
Expand Down
32 changes: 0 additions & 32 deletions LICENSE

This file was deleted.

83 changes: 0 additions & 83 deletions Makefile.PL

This file was deleted.

21 changes: 0 additions & 21 deletions README

This file was deleted.

108 changes: 40 additions & 68 deletions lib/Spreadsheet/ParseXLSX.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package Spreadsheet::ParseXLSX;
our $AUTHORITY = 'cpan:DOY';
$Spreadsheet::ParseXLSX::VERSION = '0.27';
use strict;
use warnings;
use 5.010;
Expand All @@ -14,7 +12,37 @@ use XML::Twig;

use Spreadsheet::ParseXLSX::Decryptor;

=head1 SYNOPSIS

use Spreadsheet::ParseXLSX;

my $parser = Spreadsheet::ParseXLSX->new;
my $workbook = $parser->parse("file.xlsx");
# see Spreadsheet::ParseExcel for further documentation

=head1 DESCRIPTION

This module is an adaptor for L<Spreadsheet::ParseExcel> that reads XLSX files.
For documentation about the various data that you can retrieve from these
classes, please see L<Spreadsheet::ParseExcel>,
L<Spreadsheet::ParseExcel::Workbook>, L<Spreadsheet::ParseExcel::Worksheet>,
and L<Spreadsheet::ParseExcel::Cell>.

=cut

=method new(%opts)

Returns a new parser instance. Takes a hash of parameters:

=over 4

=item Password

Password to use for decrypting encrypted files.

=back

=cut

sub new {
my $class = shift;
Expand All @@ -26,6 +54,14 @@ sub new {
return $self;
}

=method parse($file, $formatter)

Parses an XLSX file. Parsing errors throw an exception. C<$file> can be either
a filename or an open filehandle. Returns a
L<Spreadsheet::ParseExcel::Workbook> instance containing the parsed data.
The C<$formatter> argument is an optional formatter class as described in L<Spreadsheet::ParseExcel>.

=cut

sub parse {
my $self = shift;
Expand Down Expand Up @@ -1099,60 +1135,6 @@ sub _new_twig {
);
}


1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Spreadsheet::ParseXLSX - parse XLSX files

=head1 VERSION

version 0.27

=head1 SYNOPSIS

use Spreadsheet::ParseXLSX;

my $parser = Spreadsheet::ParseXLSX->new;
my $workbook = $parser->parse("file.xlsx");
# see Spreadsheet::ParseExcel for further documentation

=head1 DESCRIPTION

This module is an adaptor for L<Spreadsheet::ParseExcel> that reads XLSX files.
For documentation about the various data that you can retrieve from these
classes, please see L<Spreadsheet::ParseExcel>,
L<Spreadsheet::ParseExcel::Workbook>, L<Spreadsheet::ParseExcel::Worksheet>,
and L<Spreadsheet::ParseExcel::Cell>.

=head1 METHODS

=head2 new(%opts)

Returns a new parser instance. Takes a hash of parameters:

=over 4

=item Password

Password to use for decrypting encrypted files.

=back

=head2 parse($file, $formatter)

Parses an XLSX file. Parsing errors throw an exception. C<$file> can be either
a filename or an open filehandle. Returns a
L<Spreadsheet::ParseExcel::Workbook> instance containing the parsed data.
The C<$formatter> argument is an optional formatter class as described in L<Spreadsheet::ParseExcel>.

=head1 INCOMPATIBILITIES

This module returns data using classes from L<Spreadsheet::ParseExcel>, so for
Expand Down Expand Up @@ -1265,16 +1247,6 @@ Parts of this code were paid for by

=back

=head1 AUTHOR

Jesse Luehrs <[email protected]>

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2016 by Jesse Luehrs.

This is free software, licensed under:

The MIT (X11) License

=cut

1;
35 changes: 5 additions & 30 deletions lib/Spreadsheet/ParseXLSX/Decryptor.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package Spreadsheet::ParseXLSX::Decryptor;
our $AUTHORITY = 'cpan:DOY';
$Spreadsheet::ParseXLSX::Decryptor::VERSION = '0.27';
use strict;
use warnings;

Expand Down Expand Up @@ -207,36 +205,13 @@ sub new {
return bless $self, $class;
}

=begin Pod::Coverage

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Spreadsheet::ParseXLSX::Decryptor

=head1 VERSION

version 0.27

=for Pod::Coverage new
new
open

=head1 AUTHOR

Jesse Luehrs <[email protected]>

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2016 by Jesse Luehrs.

This is free software, licensed under:

The MIT (X11) License
=end Pod::Coverage

=cut

1;
35 changes: 5 additions & 30 deletions lib/Spreadsheet/ParseXLSX/Decryptor/Agile.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package Spreadsheet::ParseXLSX::Decryptor::Agile;
our $AUTHORITY = 'cpan:DOY';
$Spreadsheet::ParseXLSX::Decryptor::Agile::VERSION = '0.27';
use strict;
use warnings;

Expand Down Expand Up @@ -99,37 +97,14 @@ sub verifyPassword {
die "Wrong password: $self" unless ($encryptedVerifierHash0 eq $encryptedVerifierHash);
}

=begin Pod::Coverage

1;

__END__

=pod

=encoding UTF-8

=head1 NAME

Spreadsheet::ParseXLSX::Decryptor::Agile

=head1 VERSION

version 0.27

=for Pod::Coverage decrypt
decrypt
decryptFile
verifyPassword

=head1 AUTHOR

Jesse Luehrs <[email protected]>

=head1 COPYRIGHT AND LICENSE

This software is Copyright (c) 2016 by Jesse Luehrs.

This is free software, licensed under:

The MIT (X11) License
=end Pod::Coverage

=cut

1;
Loading