Commit Graph

17 Commits (master)

Author SHA1 Message Date
Ben Moon 83b9bbd6b7 Fix newline at end of file 2016-05-16 14:19:39 +01:00
Ben Moon 5f85cf4121 Update Goodies to use Test::Deep
* Ensure Test::Deep is imported.

* Replace '-ANY-' with ignore()

* Replace regexes with re(...)
2016-05-16 14:07:57 +01:00
Zach Thompson 73d8f72fc0 Remove id/name from Perl modules and tests 2016-03-18 11:49:33 -06:00
Rob Emery 43e926725b HTMLEntitiesEncode: Adding subtitle as requested by @abeyang 2015-09-02 23:08:19 +01:00
Rob Emery 26396032c4 HTMLEntitiesEncode: Adding title as requested by @abeyang 2015-08-31 21:23:32 +01:00
Rob Emery 4a28994a27 HTMLEntitiesEncode: Totally messed up the references, these tests now pass 2015-07-19 20:59:17 +01:00
Rob Emery 8168dcd185 HTMLEntitiesEncode: Nearly all tests passing; just the record template tests to fix 2015-07-19 20:50:40 +01:00
Matt Miller da70710f7d EOL: remove trailing whitespace. 2014-10-28 20:36:15 +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
nishanths c473be2ae1 Add named capture regex
- also correct tests wording to make more sense
2014-06-27 23:19:51 -07:00
nishanths b54999273c change queries, add more natural queries with "?" 2014-06-26 15:06:23 -07:00
nishanths d2efbb9dac add support for natural queries
- triggers to ‘any’
- add more triggers
- regex
- add tests
2014-06-25 21:28:20 -07:00
nishanths 38ec92a4a8 cleanup
- accented_chars changes for the future
- substitutions in the Encode Goodie are now after the ‘else’ block
- regex change to one liners
- tests
2014-06-24 20:19:37 -07:00
nishanths ced5244f8b Add css
File level:
- Rename decode module

Changes:
- Add css (not in share folder)
- Improve triggers
- Improve brackets vs. bracket, quotes vs. quote

Other:
- More tests
- Comments
- minor regex for spaces, html decoding
2014-06-23 22:12:47 -07:00
nishanths d4fedd24d4 add zci__mor-at class for links 2014-06-17 02:59:20 +05:30
nishanths 617d27c394 update test files for new triggers 2014-06-17 02:03:57 +05:30
nishanths c0b15421eb Add separate modules HTMLEncode, Decode; URLEncode
– Add HTMLEntitiesDecode.pm and .t
– Add HTMLEntitiesEncode.pm and .t
– Add URLEncode and .t
– Remove HTMLEntities.pm and HTMLEntitiesCode.pm and their test files
2014-06-13 19:29:01 +05:30