845a39
From 49bf49b99a7ffb12b68035f096c160bc51e48775 Mon Sep 17 00:00:00 2001
845a39
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
845a39
Date: Thu, 21 Nov 2019 09:22:33 +0100
845a39
Subject: [PATCH] Use system Object::HashBase
845a39
MIME-Version: 1.0
845a39
Content-Type: text/plain; charset=UTF-8
845a39
Content-Transfer-Encoding: 8bit
845a39
845a39
Signed-off-by: Petr Písař <ppisar@redhat.com>
845a39
---
845a39
 Makefile.PL                 | 1 +
845a39
 lib/Term/Table.pm           | 2 +-
845a39
 lib/Term/Table/Cell.pm      | 2 +-
845a39
 lib/Term/Table/CellStack.pm | 2 +-
845a39
 lib/Term/Table/LineBreak.pm | 2 +-
845a39
 5 files changed, 5 insertions(+), 4 deletions(-)
845a39
845a39
diff --git a/Makefile.PL b/Makefile.PL
845a39
index 44de066..4d4c7d4 100644
845a39
--- a/Makefile.PL
845a39
+++ b/Makefile.PL
845a39
@@ -20,6 +20,7 @@ my %WriteMakefileArgs = (
845a39
     "Carp" => 0,
845a39
     "Importer" => "0.024",
845a39
     "List::Util" => 0,
845a39
+    "Object::HashBase" => "0.008",
845a39
     "Scalar::Util" => 0
845a39
   },
845a39
   "TEST_REQUIRES" => {
845a39
diff --git a/lib/Term/Table.pm b/lib/Term/Table.pm
845a39
index 578eba8..3190bcd 100644
845a39
--- a/lib/Term/Table.pm
845a39
+++ b/lib/Term/Table.pm
845a39
@@ -11,7 +11,7 @@ use Scalar::Util qw/blessed/;
845a39
 use List::Util qw/max sum/;
845a39
 use Carp qw/croak carp/;
845a39
 
845a39
-use Term::Table::HashBase qw/rows _columns collapse max_width mark_tail sanitize show_header auto_columns no_collapse header allow_overflow pad/;
845a39
+use Object::HashBase 0.008 qw/rows _columns collapse max_width mark_tail sanitize show_header auto_columns no_collapse header allow_overflow pad/;
845a39
 
845a39
 sub BORDER_SIZE()   { 4 }    # '| ' and ' |' borders
845a39
 sub DIV_SIZE()      { 3 }    # ' | ' column delimiter
845a39
diff --git a/lib/Term/Table/Cell.pm b/lib/Term/Table/Cell.pm
845a39
index 978ef06..10d2b70 100644
845a39
--- a/lib/Term/Table/Cell.pm
845a39
+++ b/lib/Term/Table/Cell.pm
845a39
@@ -9,7 +9,7 @@ use Term::Table::Util qw/uni_length/;
845a39
 
845a39
 use List::Util qw/sum/;
845a39
 
845a39
-use Term::Table::HashBase qw/value border_left border_right _break _widths border_color value_color reset_color/;
845a39
+use Object::HashBase 0.008 qw/value border_left border_right _break _widths border_color value_color reset_color/;
845a39
 
845a39
 my %CHAR_MAP = (
845a39
     # Special case, \n should render as \n, but also actually do the newline thing
845a39
diff --git a/lib/Term/Table/CellStack.pm b/lib/Term/Table/CellStack.pm
845a39
index 7b99f6a..a948d10 100644
845a39
--- a/lib/Term/Table/CellStack.pm
845a39
+++ b/lib/Term/Table/CellStack.pm
845a39
@@ -4,7 +4,7 @@ use warnings;
845a39
 
845a39
 our $VERSION = '0.015';
845a39
 
845a39
-use Term::Table::HashBase qw/-cells -idx/;
845a39
+use Object::HashBase 0.008 qw/-cells -idx/;
845a39
 
845a39
 use List::Util qw/max/;
845a39
 
845a39
diff --git a/lib/Term/Table/LineBreak.pm b/lib/Term/Table/LineBreak.pm
845a39
index dc70ca3..ef95f7e 100644
845a39
--- a/lib/Term/Table/LineBreak.pm
845a39
+++ b/lib/Term/Table/LineBreak.pm
845a39
@@ -8,7 +8,7 @@ use Carp qw/croak/;
845a39
 use Scalar::Util qw/blessed/;
845a39
 use Term::Table::Util qw/uni_length/;
845a39
 
845a39
-use Term::Table::HashBase qw/string gcstring _len _parts idx/;
845a39
+use Object::HashBase 0.008 qw/string gcstring _len _parts idx/;
845a39
 
845a39
 sub init {
845a39
     my $self = shift;
845a39
-- 
845a39
2.21.0
845a39