Skip to content

v1.9.0

Choose a tag to compare

@flori flori released this 23 Oct 20:05

Features

  • Enhanced Hackmac::Graph with better terminal graphics using Unicode block
    characters () for 2px vertical resolution.
  • Added comprehensive module documentation for Hackmac module including
    project purpose, target users, and core functionality.

Refactorings

  • Extracted Hackmac::Graph::Formatters module into its own file
    (lib/hackmac/graph/formatters.rb).
  • Moved Hackmac::Graph::Display::Cell class to a dedicated file
    (lib/hackmac/graph/display/cell.rb).
  • Refactored Hackmac::Graph rendering logic:
    • Introduced draw_graph private method to encapsulate graph drawing
      logic.
    • Added data_range helper method for calculating data range.
    • Simplified start_loop by removing redundant code and leveraging new
      helper methods.
    • Removed duplicate pick_color method.

Documentation

  • Added detailed documentation for all public methods in Hackmac::Graph and
    related modules.
  • Included usage examples for Hackmac::Graph::Formatters.
  • Added YARD doc for Hackmac::Config::DEFAULT constant.
  • Added YARD doc for Hackmac::GithubSource::GITHUB_API_URL constant.
  • Added YARD doc for Hackmac::Graph::Display::ANSI constant.