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