Commit Graph

18 Commits (e9c9456f985d248fb6d9e81f2d00ab36b1829ac6)

Author SHA1 Message Date
Rob Emery e6810b754c HTMLEntitiesDecode: Fixing the actual display; content isn't required for the Text template; also removing html_enc so that things are displayed correctly 2016-05-16 21:02:29 +01:00
Rob Emery 07ecf6867a HTMLEntitiesDecode: Adding build_test to wrap the test_zci calls 2016-05-16 21:02:29 +01:00
Rob Emery 26ffa0d976 HTMLEntitiesDecode: Swapping out regexes on title for actual test values 2016-05-16 21:02:29 +01:00
Rob Emery 4d46a1e103 HTMLEntitiesDecode: Converting to Text Template 2016-05-16 21:02:28 +01:00
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
Rob Emery fd749c799e HTMLEntitiesDecode: fixing up implementation so it actually works 2015-08-31 21:57:37 +01:00
Rob Emery 96c3c4d625 HTMLEntitiesDecode: bombing out the decimal and hex output and using the structured_answer 2015-08-31 21:48:47 +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 3b6391c339 Change look of decode answer like chinese zodiac 2014-07-01 13:01:09 -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 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 2d1101dd42 Fix regex g flags, comments, attribution
- Fixed global flag on regex subs
- Change the Decode module to the old module name (in case it is linked
by someone)
- Fix attribution links, add ‘crazedpsyc’ to attribution section in the
new module
- Add a comment about the separation of the encode and decode
functionality
- Fix test file for the module name change
2014-06-15 18:17:16 +05:30
nishanths 274709a52a add 'html entity' trigger to Decode 2014-06-13 21:47:17 +05:30
nishanths 01cd73383d Decoder added html div tags 2014-06-13 20:02:38 +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