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