Skip to content

0.4.0

Latest
Compare
Choose a tag to compare
@igneus igneus released this 27 Jun 19:35
· 4 commits to master since this release

Added

  • date range selection: cal-like option -3 to select the current month together with the preceding and following one (contributed by Fabio Soares @fabiosoaresv)
  • if exactly one sanctorale data file is specified and its YAML front matter references a parent calendar (key extends), the file is loaded with its complete graph of parents
  • option --[no-]load-parents to explicitly enable/disable loading of parent calendars
  • basic support for remote calendars: the --calendar= option now accepts also a calendar API URL like --calendar=http://calapi.inadiutorium.cz/api/v0/en/calendars/general-la, the referenced API is expected to be compatible with Liturgical Calendar API v0
  • calendar listing (--calendars) marks default calendar as such
  • calendar listing lists each calendar's parents
  • option --verbose
  • condensed view (--format=condensed), intended for use cases like printing current day in a window manager toolbar and the like
  • option --to-sunday= to configure which temporale solemnities should be transferred to Sunday (e.g. --to-sunday=epiphany)
  • option --temporale-extension= to activate temporale extension (supported values are temporale extension class names, e.g. --temporale-extension=ChristEternalPriest)
  • any class in the Calrom::Formatter module is considered formatter and its lowercased name can be used as value for the --format= option - custom formatters can be added by defining new classes in the namespace
  • options --day-filter= and --celebration-filter= for filtering days and celebrations by a Ruby expression
  • environment variable CALROM_CURRENT_DATE can be used to override current date (intended mainly for testing)

Changed

  • automated locale selection based on sanctorale data file relies solely on the locale key of the file's YAML front matter (previously it relied on a file naming convention)
  • option --calendar= expands tilde in path (if it isn't expanded by shell, as is the case e.g. in configuration files)
  • when displaying just a single day, highlighting of the current day is disabled by default (i.e. if the day being displayed is current day, it won't be highlighted as such)
  • list view (--list): rank is not printed for ferials and Sundays
  • overview view always arranges the displayed months in multiple columns, just like cal (previously date ranges spanning less than three months were printed in a single column)
  • date range specification: support for dates with year higher than 9999 (e.g. 10000-01-01)

Fixed

  • crash on invalid value of --locale
  • list view: when printing a date range between the same months of different years (e.g. 2000-01-xx .. 2001-01-xx), year was not printed in month headings