Skip to content

Latest commit

 

History

History
100 lines (70 loc) · 3.03 KB

CHANGELOG.md

File metadata and controls

100 lines (70 loc) · 3.03 KB

Change log

v0.8.0 - unreleased

Added

  • Add render method to retrieve box content wrapped in a frame
  • Add ability to access box height and width
  • Add #content_width and #content_height to access content size excluding border and padding

Changed

  • Change Box to be a class to allow instance-level configuration

Fixed

  • Fix content formatting to account for border size

v0.7.0 - 2020-12-20

Added

  • Add :enable_color configuration to allow control over colouring

Changed

  • Change to ensure non-negative space filler size
  • Change to enforce private visibility for the private module methods

Fixed

  • Fix box width calculation to ignore colored text by @LainLayer
  • Fix drawing frame around multiline colored content

v0.6.0 - 2020-08-11

Changed

  • Change to preserve newline characters when wrapping content
  • Change gemspec to include metadata and remove test files
  • Change to update pastel & strings dependencies

Fixed

  • Fix Ruby 2.7 warnings

v0.5.0 - 2019-10-08

Added

  • Add ability to create frames without specifying width or height
  • Add #info, #warn, #success, #error ready frames for status messages inspired by conversation with Konstantin Gredeskoul(@kigster)

Changed

  • Change #frame to accept content as an argument in addition to a block
  • Change to match titles with border styling

v0.4.1 - 2019-08-28

Added

  • Add example to demonstrate different line endings

Fixed

  • Fix to handle different line endings

v0.4.0 - 2019-06-05

Changed

  • Change gemspec to require Ruby >= 2.0.0
  • Change to update tty-cursor dependency

Fixed

  • Fix issue with displaying box with colored content

v0.3.0 - 2018-10-08

Added

  • Add border parameters :top_left, :top_right, :bottom_left & :bottom_right to allow specifying values for box corners
  • Add :ascii border type for drawing ASCII boxes

Fixed

  • Fix box color fill to correctly recognise missing borders and match the height and width
  • Fix absolute content positioning when borders are missing

v0.2.1 - 2018-09-10

Fixed

  • Fix content alignment by @DannyBen

v0.2.0 - 2018-07-31

Changed

  • Change to stop positioning box without :top & :left coordinates
  • Change to load manually required files in gemspec without using git

v0.1.0 - 2018-07-23

  • Initial implementation and release