From c6df6cf533d120716bff38f8ff9885e1ce2a4ac3 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Thu, 4 Apr 2019 21:08:55 -0700 Subject: [PATCH] Release 0.9.0 (#35) Also set default development version to Swift 5 and fix one warning. --- .swift-version | 2 +- CHANGELOG.md | 14 ++++++++++++++ Source/SwiftyTextTable/TextTable.swift | 2 +- SwiftyTextTable.podspec | 2 +- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.swift-version b/.swift-version index 8c50098..819e07a 100644 --- a/.swift-version +++ b/.swift-version @@ -1 +1 @@ -3.1 +5.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 603a628..8272f1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +## 0.9.0 + +##### Breaking + +* None + +##### Enhancements + +* Pre-compute column width to increase rendering performance. + +##### Bug Fixes + +* Fix column width when using terminal escape sequences such as coloring. + ## 0.8.2 ##### Breaking diff --git a/Source/SwiftyTextTable/TextTable.swift b/Source/SwiftyTextTable/TextTable.swift index eba302c..0fa302f 100644 --- a/Source/SwiftyTextTable/TextTable.swift +++ b/Source/SwiftyTextTable/TextTable.swift @@ -246,7 +246,7 @@ public extension Array where Element: TextTableRepresentable { Returns a rendered text table containing the data in the array. - returns: A `String` containing the rendered text table. */ - public func renderTextTable() -> String { + func renderTextTable() -> String { let table = TextTable(objects: self) return table.render() } diff --git a/SwiftyTextTable.podspec b/SwiftyTextTable.podspec index 967fd79..dff8bdb 100644 --- a/SwiftyTextTable.podspec +++ b/SwiftyTextTable.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = "SwiftyTextTable" - s.version = "0.8.2" + s.version = "0.9.0" s.summary = "A lightweight Swift library for generating text tables." # This description is used to generate tags and improve search results.