0.0
Low commit activity in last 3 years
No release in over a year
A Dynarex flavoured log file for humans which is archived daily
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.10, >= 1.10.0
~> 0.2, >= 0.2.4
 Project Readme

Introducing the DynarexDaily gem

The DynarexDaily gem is designed to create a Dynarex file on a daily basis. The archived files are stored in a directory called 'days'.

Here's a quick example:

require 'dynarex-daily'

DynarexDaily.new.create(time: Time.now.to_s, desc: 'desc 123').save

If the file dynarexdaily.xml doesn't exist then it is created and used to store the RecordX entries.

Here's the sample output from the example above:

<?xml version='1.0' encoding='UTF-8'?>
<entries>
  <summary>
    <date>2013-08-11 16:30:00 +0100</date>
    <recordx_type>dynarex</recordx_type>
    <format_mask>[!time] [!desc]</format_mask>
    <schema>entries[date]/entry(time, desc)</schema>
    <default_key>time</default_key>
    <order>descending</order>
  </summary>
  <records>
    <entry id='1' created='2013-08-11 16:30:00 +0100' last_modified=''>
      <time>2013-08-11 16:30:00 +0100</time>
      <desc>desc 123</desc>
    </entry>
  </records>
</entries>

dynarexdaily gem