Skip to content

Commit

Permalink
! Attempting to solve the deep recursion from TravisCI in the new bugfix
Browse files Browse the repository at this point in the history
+ Added perl 5.22 to TravisCI testing
! Fixed the failing TravisCI build
  • Loading branch information
jandrew committed Jun 11, 2015
1 parent ecd39ab commit 0e076e5
Show file tree
Hide file tree
Showing 21 changed files with 83 additions and 56 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -6,9 +6,10 @@ perl:
- "5.16"
- "5.18"
- "5.20"
- "5.22"
matrix:
include:
- perl: 5.20
- perl: 5.22
env: COVERAGE=1
before_install:
- eval $(curl https://travis-perl.github.io/init) --auto
8 changes: 7 additions & 1 deletion Changes
Expand Up @@ -11,7 +11,13 @@ be method matched to Spreadsheet::ParseExcel prior to the 1.0 release.

{{$NEXT}}

* Fixed the failing TravisCI build
* Another cool change

v0.36.24 2015-06-10 19:44:32-07:00 America/Los_Angeles

! Attempting to solve the deep recursion from TravisCI in the new bugfix
+ Added perl 5.22 to TravisCI testing
! Fixed the failing TravisCI build

v0.36.22 2015-06-10 17:11:39-07:00 America/Los_Angeles

Expand Down
32 changes: 16 additions & 16 deletions META.json
Expand Up @@ -80,63 +80,63 @@
"provides" : {
"Spreadsheet::XLSX::Reader::LibXML" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::Cell" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/Cell.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::CellToColumnRow" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/CellToColumnRow.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::Error" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/Error.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::FmtDefault" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/FmtDefault.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::GetCell" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/GetCell.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::ParseExcelFormatStrings" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/ParseExcelFormatStrings.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::Types" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/Types.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::XMLReader" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::XMLReader::CalcChain" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/CalcChain.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::XMLReader::Chartsheet" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Chartsheet.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::XMLReader::SharedStrings" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/SharedStrings.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::XMLReader::Styles" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Styles.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::XMLReader::Worksheet" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Worksheet.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
},
"Spreadsheet::XLSX::Reader::LibXML::XMLReader::XMLToPerlData" : {
"file" : "lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/XMLToPerlData.pm",
"version" : "v0.36.22"
"version" : "v0.36.24"
}
},
"release_status" : "stable",
Expand All @@ -151,7 +151,7 @@
"web" : "https://github.com/jandrew/Spreadsheet-XLSX-Reader-LibXML"
}
},
"version" : "v0.36.22",
"version" : "v0.36.24",
"x_authority" : "cpan:JANDREW",
"x_contributors" : [
"Frank Maas <maas.frank@gmail.com>",
Expand Down
32 changes: 16 additions & 16 deletions META.yml
Expand Up @@ -39,49 +39,49 @@ name: Spreadsheet-XLSX-Reader-LibXML
provides:
Spreadsheet::XLSX::Reader::LibXML:
file: lib/Spreadsheet/XLSX/Reader/LibXML.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::Cell:
file: lib/Spreadsheet/XLSX/Reader/LibXML/Cell.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::CellToColumnRow:
file: lib/Spreadsheet/XLSX/Reader/LibXML/CellToColumnRow.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::Error:
file: lib/Spreadsheet/XLSX/Reader/LibXML/Error.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::FmtDefault:
file: lib/Spreadsheet/XLSX/Reader/LibXML/FmtDefault.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::GetCell:
file: lib/Spreadsheet/XLSX/Reader/LibXML/GetCell.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::ParseExcelFormatStrings:
file: lib/Spreadsheet/XLSX/Reader/LibXML/ParseExcelFormatStrings.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::Types:
file: lib/Spreadsheet/XLSX/Reader/LibXML/Types.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::XMLReader:
file: lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::XMLReader::CalcChain:
file: lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/CalcChain.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::XMLReader::Chartsheet:
file: lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Chartsheet.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::XMLReader::SharedStrings:
file: lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/SharedStrings.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::XMLReader::Styles:
file: lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Styles.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::XMLReader::Worksheet:
file: lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Worksheet.pm
version: v0.36.22
version: v0.36.24
Spreadsheet::XLSX::Reader::LibXML::XMLReader::XMLToPerlData:
file: lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/XMLToPerlData.pm
version: v0.36.22
version: v0.36.24
requires:
Archive::Zip: 0
Carp: 0
Expand Down Expand Up @@ -112,7 +112,7 @@ resources:
bugtracker: https://github.com/jandrew/Spreadsheet-XLSX-Reader-LibXML/issues
homepage: https://github.com/jandrew/Spreadsheet-XLSX-Reader-LibXML
repository: https://github.com/jandrew/Spreadsheet-XLSX-Reader-LibXML.git
version: v0.36.22
version: v0.36.24
x_authority: cpan:JANDREW
x_contributors:
- 'Frank Maas <maas.frank@gmail.com>'
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Expand Up @@ -72,7 +72,7 @@ my %WriteMakefileArgs = (
"XML::LibXML::Reader" => 0,
"version" => "0.77"
},
"VERSION" => "v0.36.22",
"VERSION" => "v0.36.24",
"test" => {
"TESTS" => "t/Spreadsheet/XLSX/Reader/*.t t/Spreadsheet/XLSX/Reader/LibXML/*.t t/Spreadsheet/XLSX/Reader/LibXML/XMLReader/*.t"
}
Expand Down
4 changes: 3 additions & 1 deletion README.pod
Expand Up @@ -19,7 +19,7 @@ Spreadsheet::XLSX::Reader::LibXML - Read xlsx spreadsheet files with LibXML
</a>

<a>
<img src="https://img.shields.io/badge/this version-0.36.22-brightgreen.svg" alt="this version">
<img src="https://img.shields.io/badge/this version-0.36.24-brightgreen.svg" alt="this version">
</a>

<a href="https://metacpan.org/pod/Spreadsheet::XLSX::Reader::LibXML">
Expand Down Expand Up @@ -1359,6 +1359,8 @@ L<Toby Inkster|https://github.com/morungos>

L<Breno G. de Oliveira|https://github.com/garu>

L<Bill Baker|https://github.com/wdbaker54>

=back

=head1 COPYRIGHT
Expand Down
6 changes: 4 additions & 2 deletions lib/Spreadsheet/XLSX/Reader/LibXML.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML;
use version 0.77; our $VERSION = qv('v0.36.22');
use version 0.77; our $VERSION = qv('v0.36.24');

use 5.010;
use List::Util 1.33;
Expand Down Expand Up @@ -911,7 +911,7 @@ Spreadsheet::XLSX::Reader::LibXML - Read xlsx spreadsheet files with LibXML
</a>
<a>
<img src="https://img.shields.io/badge/this version-0.36.22-brightgreen.svg" alt="this version">
<img src="https://img.shields.io/badge/this version-0.36.24-brightgreen.svg" alt="this version">
</a>
<a href="https://metacpan.org/pod/Spreadsheet::XLSX::Reader::LibXML">
Expand Down Expand Up @@ -2251,6 +2251,8 @@ L<Toby Inkster|https://github.com/morungos>
L<Breno G. de Oliveira|https://github.com/garu>
L<Bill Baker|https://github.com/wdbaker54>
=back
=head1 COPYRIGHT
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/Cell.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::Cell;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

$| = 1;
use 5.010;
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/CellToColumnRow.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::CellToColumnRow;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use Moose::Role;
requires
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/Error.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::Error;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use Moose;
use Carp qw( cluck );
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/FmtDefault.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::FmtDefault;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use 5.010;
use Moose::Role;
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/GetCell.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::GetCell;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use Moose::Role;
requires qw(
Expand Down
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::ParseExcelFormatStrings;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use 5.010;
use Moose::Role;
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/Types.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::Types;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use strict;
use warnings;
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::XMLReader;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use 5.010;
use Moose;
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/CalcChain.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::XMLReader::CalcChain;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use 5.010;
use Moose;
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Chartsheet.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::XMLReader::Chartsheet;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');


use 5.010;
Expand Down
24 changes: 20 additions & 4 deletions lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/SharedStrings.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::XMLReader::SharedStrings;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use 5.010;
use Moose;
Expand Down Expand Up @@ -56,8 +56,16 @@ sub get_shared_string_position{
if( !$self->has_position ){
###LogSD $phone->talk( level => 'debug', message => [
###LogSD "Pulling the first cell" ] );
my $found_it = $self->next_element( 'si' );
if( $found_it < 1 ){
my $found_it;
eval '$found_it = $self->next_element( "si" )';
if( $@ ){
###LogSD $phone->talk( level => 'debug', message => [
###LogSD "Found an unexpected end of file: ", $@] );
$self->set_error( 'libxml2 error message' . $@ );
$self->_set_unique_count( 0 );
$self->_i_am_here( 0 );
return undef;
}elsif( defined $found_it and $found_it < 1 ){
$self->set_error( "No strings stored in the sharedStrings file" );
return undef;
}
Expand All @@ -68,14 +76,22 @@ sub get_shared_string_position{
while( $self->where_am_i < $position ){
###LogSD $phone->talk( level => 'debug', message => [
###LogSD "Pulling the next cell: " . ($self->where_am_i + 1) ] );
eval '$self->next_element( "si" )';
my $found_it;
eval '$found_it = $self->next_element( "si" )';
if( $@ ){
###LogSD $phone->talk( level => 'debug', message => [
###LogSD "Found an unexpected end of file: ", $@] );
$self->set_error( 'libxml2 error message' . $@ );
$self->_set_unique_count( $self->where_am_i + 1 );
$self->_i_am_here( 0 );
return undef;
}elsif( defined $found_it and $found_it < 1 ){
###LogSD $phone->talk( level => 'debug', message => [
###LogSD "Found an unexpected end of file: $found_it" ] );
$self->set_error( "Unexpected end of file found" );
$self->_set_unique_count( $self->where_am_i + 1 );
$self->_i_am_here( 0 );
return undef;
}
$self->_i_am_here( $self->where_am_i + 1 );
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Styles.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::XMLReader::Styles;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use 5.010;
use Moose;
Expand Down
2 changes: 1 addition & 1 deletion lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Worksheet.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::XMLReader::Worksheet;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use 5.010;
use Moose;
Expand Down
4 changes: 2 additions & 2 deletions lib/Spreadsheet/XLSX/Reader/LibXML/XMLReader/XMLToPerlData.pm
@@ -1,5 +1,5 @@
package Spreadsheet::XLSX::Reader::LibXML::XMLReader::XMLToPerlData;
use version; our $VERSION = qv('v0.36.22');
use version; our $VERSION = qv('v0.36.24');

use Moose::Role;
use 5.010;
Expand Down Expand Up @@ -216,7 +216,7 @@ sub _parse_element{
###LogSD "Identified an empty string" ] );
$current_ref->{v} = {raw_text => ''};
delete $current_ref->{t};
}elsif( exists $current_ref->{t} and $current_ref->{t} eq '1' ){
}elsif( exists $current_ref->{t} and $current_ref->{t} and $current_ref->{t} eq '1' ){
###LogSD $phone->talk( level => 'debug', message => [
###LogSD "badly formed space record" ] );
$current_ref->{t} = {raw_text => $current_ref->{raw_text}};
Expand Down

0 comments on commit 0e076e5

Please sign in to comment.