* Updated a few metadata items that were missing in .pm files. These
might be simply regarded as typos and thus, this commit is of very
small importance.
Signed-off-by: mr.Shu <mr@shu.io>
- Add filler_words list which can be stripped from the query before
trying to parse date strings.
- Anchor datestring_regex so as to allow for only date left in query
after clean-up.
- Improve guard against empty strings and `undef` in Dates role parsers.
Fixes#661.
This explicity sets the caching behavior for all goodies. Goodies which
did not have caching behavior set in their package have had it added.
Similarly for the tests.
This resulted in a number of changes for caching behavior, mostly
moving towards more frequent caching.
I identified three cases where goodies should not be cached. They are when
the result depends upon:
- some random element,
- the time of day or year (as with relative dates), or
- the location of the requesting user
In all other cases, I presumed that the goodies were sufficiently
deterministic in their output to warrant caching.
- Rename 'style.css' to appropriate ID-based name.
- Remove explicit inclusion of CSS, as it will now be auto-included.
- Update tests which explicitly checked for styling.
- Deprecate 'parse_all_strings_to_date()' in favor of
'parse_all_datestrings_to_date()' for consistency.
- Remove the deprecated functions.
- Update all calls.
- Clean up/remove some globals which confused things.
- Simplify logic-flow.
- Remove extraneous </div> from HTML output.
- Expand triggers to short months.
DatesRole:
- Create month_regex() to handle combo of short and full.
DateTime doesn't like to have timezones passed in which it can't parse.
So, just continue on with whatever we have by default if the call
doesn't work.
Remove parsePsuedoDate which is now basically just an alias for
parse_vague_string_todate.
Also, reuse the timezoned DateTime for our default, rather than create
a new object.