Skip to content

Commit

Permalink
Merge pull request #2217 from hangy/modernperl
Browse files Browse the repository at this point in the history
Update Modern::Perl
  • Loading branch information
hangy authored Aug 24, 2019
2 parents 48c0e38 + 02824e0 commit 8cb6fd2
Show file tree
Hide file tree
Showing 220 changed files with 380 additions and 363 deletions.
31 changes: 24 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
dist: bionic
branches:
except:
- l10n_master
language: perl
perl:
- "5.18.4"
env: COVERAGE=1
cache:
yarn: true
Expand All @@ -15,12 +13,29 @@ cache:
addons:
apt:
packages:
- libapache2-request-perl
- libimage-magick-perl
- libbarcode-zbar-perl
- cpanminus
- tesseract-ocr
- graphviz
sudo: false
# Packages from ./cpanfile
- libwww-perl
- libimage-magick-perl
- libxml-encoding-perl
- libtext-unaccent-perl
- libmime-lite-perl
- libcache-memcached-fast-perl
- libjson-pp-perl
- libclone-perl
- libcrypt-passwdmd5-perl
- libencode-detect-perl
- libgraphics-color-perl
- libbarcode-zbar-perl
- libxml-feedpp-perl
- liburi-find-perl
- libxml-simple-perl
- libexperimental-perl
- libapache2-request-perl
- libdigest-md5-perl
- libtime-local-perl
before_install:
- nvm install --lts
- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
Expand All @@ -40,5 +55,7 @@ before_script:
- node refresh_taxonomies.js
script:
- yarn test
after_failure:
- cat $HOME/.cpanm/build.log
notifications:
slack: openfoodfacts:Pre9ZXKFH1CYtix8DeJAaFi2
6 changes: 3 additions & 3 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Product Opener
Copyright (C) 2011-2015 Association Open Food Facts
Copyright (C) 2011-2019 Association Open Food Facts
Contact: [email protected]
Address: 21 rue des Iles, 94100 Saint-Maur des Foss�s, France
Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France

Product Opener is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
Expand All @@ -14,4 +14,4 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.
4 changes: 2 additions & 2 deletions cgi/display.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/ingredients.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
2 changes: 1 addition & 1 deletion cgi/madenearme.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
2 changes: 1 addition & 1 deletion cgi/madenearyou.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/manifest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
2 changes: 1 addition & 1 deletion cgi/nutrients.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/nutrition.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/opensearch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
2 changes: 1 addition & 1 deletion cgi/product_image.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/product_image_crop.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/product_image_move.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/product_image_rotate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/product_image_unselect.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/product_image_upload.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
2 changes: 1 addition & 1 deletion cgi/product_jqm_multilingual.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/product_multilingual.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/recent_changes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2017 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
2 changes: 1 addition & 1 deletion cgi/reset_password.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/reset_password_for_user.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
2 changes: 1 addition & 1 deletion cgi/search.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
4 changes: 2 additions & 2 deletions cgi/session.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This file is part of Product Opener.
#
# Product Opener
# Copyright (C) 2011-2018 Association Open Food Facts
# Copyright (C) 2011-2019 Association Open Food Facts
# Contact: [email protected]
# Address: 21 rue des Iles, 94100 Saint-Maur des Fossés, France
#
Expand All @@ -20,7 +20,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

use Modern::Perl '2012';
use Modern::Perl '2017';
use utf8;

use CGI::Carp qw(fatalsToBrowser);
Expand Down
Loading

0 comments on commit 8cb6fd2

Please sign in to comment.