Commit Graph

18 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
Hugo Thiessard 1789d18039 Updates CallingCodes Goodie Re #2767 (#2864) 2016-04-28 19:25:14 +01:00
Chris Wilson 2f11d6cc76 Update Binary IA to Uppercase. Fix All Test Cases for Uppercase Changes. 2015-01-09 19:46:54 +11:00
Usman Raza 7c9d168430 Adds check for codes which are listed but have no country assigned yet 2014-11-21 20:16:08 +05:00
Matt Miller c960433d78 CallingCodes: use structured answer. 2014-11-15 21:33:00 +02:00
Matt Miller 4a5d376363 CallingCodes: adjust trigger-space.
- Remove 'country code'/'country codes'
- Add 'dial-in' as alternative for 'dial in'
- Add more combinations of the various words

Fixes #682...in part.
2014-10-15 16:07:33 +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 96ee8d29c5 Upgraded to Locale::Codes v3.30
Made corresponding changes to CallingCodes.pm.
2014-03-03 20:10:09 -05:00
Eric Johnson dd32a1a3f2 Support additional calling code queries.
Now handles queries like 'calling code for brazil +55' when people are trying
to verify they have the correct calling code.
2014-02-25 21:28:43 -05:00
Eric Johnson 95738322a7 Added aliases for 3 countries + easter eggs. 2014-02-25 16:41:14 -05:00
Eric Johnson c295a9c686 Make the answer a complete sentence -- end it with a period. 2014-02-08 10:53:15 +00:00
Eric Johnson 562dd34e28 Tests for example queries and queries that don't trigger the instant answer. 2014-02-08 10:53:14 +00:00
Eric Johnson f1fde2dfd9 CallingCodes: I was cleanin up whitespace but its not needed. Removed related
tests as well.
2014-02-08 10:53:14 +00:00
Eric Johnson f1692b0a75 Goodie::CallingCodes - alias the US to 'America'. +test 2014-02-08 10:53:14 +00:00
Eric Johnson 53eefeb688 Goodie::CallingCodes - better white space handling. +tests 2014-02-08 10:53:14 +00:00
Eric Johnson 5237abe84d Update t/CallingCodes.t to match code changes. 2014-02-08 10:53:14 +00:00
Eric Johnson 50afa8a042 Convert between international calling codes and countries and vice versa 2014-02-08 10:53:14 +00:00