Commit Graph

12 Commits (240961711e98072160e6030607ccb760ab4d4697)

Author SHA1 Message Date
Rob Emery f5de9046a9 Goodies: Harmonising trimming to use Text::Trim 2015-03-31 19:06:42 +01:00
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 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
Jag Talon 92ff7d5450 Shortcut: Removed example from metadata.
It wasn't working.
2013-10-28 13:10:14 -04:00
dariog88a 2435722eda Simplified code to get the column content. 2013-10-25 17:32:51 -03:00
dariog88a 802a95e505 Removed zci is_cached => 1. Regex to keep only letters and spaces (remove versioning). Added optional space to match 'os x'. Cleaner return. Replaced \n with <br>. 2013-10-25 17:06:10 -03:00
dariog88a a1c8d901df Replaced trim function with inline regex. Added encoding to slurp. Using utf8 in test file to fix tests. 2013-10-07 19:32:53 -03:00
dariog88a 5988604d96 Moved trim function and slurp outside of the handle function. Renamed input file to shortcuts.csv. 2013-10-06 16:39:03 -03:00
dariog88a 8f93ab53ff Added resource with shortcuts in CSV format (with pipe as separator). Replaced the HTTP request with file parsing. Adapted tests to the change. 2013-08-13 22:34:47 -03:00
dariog88a 5b02bd5748 Complete rewrite of Shorcut plugin: added context and used Wikipedia as resource. 2013-07-30 00:20:18 -03:00
dariog88a acc573eb26 Initial commit of Shorcut plugin. 2013-07-23 21:17:40 -03:00