Commit Graph

29 Commits (240961711e98072160e6030607ccb760ab4d4697)

Author SHA1 Message Date
Zach Thompson 29fa996908 CallingCodes
CountryCodes: Remove aliasing/renaming
2015-04-11 12:42:21 -06:00
Rob Emery 56c5ea4a5e Goodies: Enabling `use strict` on all goodies 2015-02-22 20:09:29 +00:00
Chris Wilson b2c4be58d0 Update Case for Binary, BirthStone, Calculator, CalendarConversion, CallingCodes, Chars 2015-01-09 18:56:33 +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 da70710f7d EOL: remove trailing whitespace. 2014-10-28 20:36:15 +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
jdorweiler 27c0347bf5 added "america" alias back to CallingCodes.pm 2014-03-06 14:58:44 -05:00
jdorweiler b075272567 removed un-needed aliases from CallingCodes.pm 2014-03-06 13:25:55 -05:00
jdorweiler fc7c2541d9 removed 'the' from CountryCodes.pm for #350 2014-03-05 16:45:41 -05:00
jdorweiler bb5eb3a77d removed the from CallingCodes.pm 2014-03-05 13:36:44 -05: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 af45560cb3 Minor change to the abstract. 2014-02-08 10:54:26 +00:00
Eric Johnson 7763e800b4 DDG::Goodie::CallingCodes - fixed a syntax error 2014-02-08 10:53:15 +00:00
Eric Johnson 87e13c5417 Trigger on queries mention calling "codes" plural. 2014-02-08 10:53:15 +00: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 c98e22411d handle queries with "in". eg: "calling code in brazil" 2014-02-08 10:53:15 +00:00
Eric Johnson 4ee7a1937a rm duplicate "rename_country('vi' => 'the US Virgin Islands')" 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 04d92381eb Goodie::CallingCodes - Added more triggers. 2014-02-08 10:53:14 +00:00
Eric Johnson ffedecf4ce rm 'zci cached => 1;' as it is the default. 2014-02-08 10:53:14 +00:00
Eric Johnson bd6b861dd6 Goodie::CallingCodes: Added comments, better regexps. 2014-02-08 10:53:14 +00:00
Eric Johnson 725bdefac7 Add some more country aliases and country renames to Goodie::CallingCodes. 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