Commit Graph

14 Commits (240961711e98072160e6030607ccb760ab4d4697)

Author SHA1 Message Date
Rob Emery 56c5ea4a5e Goodies: Enabling `use strict` on all goodies 2015-02-22 20:09:29 +00:00
jagtalon 981538c7c1 Attribution updates!
The string in index 1 should be the name of the developer. This allows us to group them together, i.e., we need a way to group the attribution by people.
2015-01-07 18:24:47 +00:00
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
Matt Miller 5481cf4ebc Fix minor code layout issues.
Reducing scroll spam from dzil by:

- Providing ABSTRACTs for all packages.
- Leaving VERSION vertical space where necessary.

Addresses #600 plus other annoyances in the process.
2014-08-20 14:45:33 -04:00
Dylan Lloyd 99b429b827 remove execute bit from Tips.pm 2013-01-24 14:42:15 -05:00
Jag Talon b73ad5b385 An example in second_example_queries was removed from `Tips.pm`.
The example 'root mean square 1,2,3' is for the plugin `Average.pm`.
2012-12-20 14:54:03 -05:00
Dylan Lloyd 049b54fe19 s/everyday_goodies/everyday/ 2012-11-07 00:59:54 -05:00
Dylan Lloyd 7b25e8fd45 added metadata to Tips.pm 2012-11-06 18:43:09 -05:00
Jag Talon 7a09d97420 Added regexp to match queries like "20% tip of 43.3". 2012-10-05 09:17:40 -04:00
Dylan Lloyd 88a05a3781 added semicolon to tips results 2012-10-01 14:24:27 -04:00
Dylan Lloyd 5ba616f03e tips goodie now word type trigger 2012-09-29 19:19:39 -04:00
Dylan Lloyd 61f2c5103f expanded tips trigger 2012-09-29 19:15:47 -04:00
mattlehning fcf20d85be added tips goodie 2012-09-29 19:13:20 -04:00