Commit Graph

5 Commits (194556f7388ca778528cde59aa8d4989e33e893f)

Author SHA1 Message Date
Matt Miller 2eb74fd3d2 Tips: use as more general percentage calculator.
The guts were already here, just made them all work properly.

- Greatly expand triggering and allow guard to kick back false
  positives
- Use NumberStyler to handle and "make pretty" a variety of number
  formats
- Use named captures to make things easier to follow.

Fixes #690.
2014-10-16 13:59:13 +02:00
Matt Miller 68fc7c8dec Set explicit caching everywhere.
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.
2014-09-27 10:35:17 -04:00
Eric Johnson 9c29b27338 Added tests for example queries which are not currently tested.
Conflicts:

	t/TimezoneConverter.t
2014-02-10 21:36:14 +00:00
Dylan Lloyd 88a05a3781 added semicolon to tips results 2012-10-01 14:24:27 -04:00
Dylan Lloyd 1348a5c1ee added tests for tips goodie 2012-09-29 19:25:23 -04:00