Commit Graph

2617 Commits (887bc7a6bf3c002eeb0af14480998c92bdc92b6d)

Author SHA1 Message Date
Rob Emery 887bc7a6bf Hiragana: fixing test for erors 2014-10-12 22:23:06 +01:00
Rob Emery 1639d54f31 Hiragana: Adding extended syllabograms 2014-10-10 23:06:21 +01:00
Rob Emery edd29ae329 Hiragana: first base version 2014-10-10 22:36:02 +01:00
Rob Emery 3face85f43 Merge pull request #674 from duckduckgo/mwm/conversions
Conversions: support "out_unit in count in_unit" style queries.
2014-10-08 19:20:16 +01:00
Matt Miller 3169c5b6f0 Conversions: support "out_unit in count in_unit" style queries.
Expansion of the 'in hack' to figure out which is in which.

Fixes #673.

cc: @mintsoft
2014-10-08 18:14:49 +02:00
Rob Emery 15c367e782 Merge pull request #667 from mwmiller/anagram_rethink
Anagram: allow for multi-word queries.
2014-10-07 20:47:37 +01:00
Matt Miller 0e95d935b4 Anagram: HTML encode scrambles.
Although this isn't _exactly_ a user-supplied string, it is still
somewhat under their control.  Better safe than sorry.

Thanks to @mintsoft for the suggestion.
2014-10-07 21:01:47 +02:00
Matt Miller e3bc84c52d Anagram: allow for bare keywords.
I'm depend on trigger order continuing to be important.  If you got here
via bisect, I am sorry that is no longer true.
2014-10-07 21:01:47 +02:00
Jag Talon 7ba07ddad8 Merge pull request #672 from duckduckgo/mintsoft/earl_encode_with_style
URLEncode: Making consistent style-wise with URLDecode
2014-10-07 14:15:29 -04:00
Rob Emery 8b0d4d1697 URLEncode: Making consistent style-wise with URLDecode 2014-10-07 19:09:04 +01:00
Jag Talon 6b9f116654 Merge pull request #671 from duckduckgo/zaahir/update-urldecode-triggers
reign in triggering of URLDecode
2014-10-07 12:55:30 -04:00
Zaahir Moolla 9fbbf1ec5f switch tabs to spaces 2014-10-07 12:38:19 -04:00
Zaahir Moolla c1c0e3c2df reign in triggering of URLDecode 2014-10-07 12:37:03 -04:00
Zaahir Moolla f9a51459a2 Merge pull request #640 from mwmiller/threat_level_midnight
TwelveOclock: add new instant answer to help with 12 am/pm
2014-10-07 11:48:47 -04:00
Zaahir Moolla cf33de4443 Merge pull request #622 from duckduckgo/mintsoft/url_decode
URLDecode: Adding new goodie to replace closed source version
2014-10-07 10:33:05 -04:00
Zaahir Moolla 1bb4f7395f Merge pull request #668 from killerfish/caltoday
CalendarToday: Changed to circle highlight
2014-10-07 10:09:04 -04:00
Usman Raza adfdc00469 consistent row height 2014-10-07 15:52:33 +05:00
Rob Emery fe29050823 URLDecode: Style changes a-la-@chrismorast 2014-10-07 08:08:55 +01:00
Matt Miller d74ec57bed Merge pull request #669 from mwmiller/test_count
HelpLine.t: do not construct a test plan.
2014-10-05 19:00:44 +02:00
Matt Miller d7b5501d5d HelpLine.t: do not construct a test plan.
We're not actually getting a test count from test_zci. Someday soon this
will reconcile exactly with the number of `test_zci` calls you make, but
it clearly does not today (see the extra 2 factor).

Rather than try to predict which version is running these tests, remove
the plan for now.
2014-10-05 17:18:37 +02:00
Usman Raza b0ea0dd1e1 circle on highlight 2014-10-05 18:17:28 +05:00
Matt Miller 791a4005ba Anagram: allow for multiple word inputs.
- Cache by default; only turn off for "scrambled" results.
- Simplify `calc_freq` slightly.
- Remove "length" argument, as it doesn't make sense with anagrams.
- Cache letter frequency info as dictionary words are examined.
- Allow for multi-word queries to match single word anagrams.

This still does not allow for multi-word anagrams.  Although it
would be nice to do so, it adds significant computational complexity.
2014-10-04 12:15:59 +02:00
Matt Miller 3eb11ec20e Anagram: require connector words for context. 2014-10-04 10:41:49 +02:00
Rob Emery 7a9a8461cb Merge pull request #666 from mwmiller/anagram
Anagram: add missing quotation mark.
2014-10-03 19:48:41 +01:00
Matt Miller 3a68b6a3b2 Anagram: add missing quotation mark.
Also, make tests of HTML answers more sensitive.

Fixes #665.
2014-10-03 19:30:22 +02:00
Zaahir Moolla ef156c23de Merge pull request #664 from mwmiller/calendar_today
CalendarToday: tighten up query triggers a bit.
2014-10-03 11:56:38 -04:00
Matt Miller 8f858b387e CalendarToday: tighten up query triggers a bit.
- Add filler_words list which can be stripped from the query before
  trying to parse date strings.
- Anchor datestring_regex so as to allow for only date left in query
  after clean-up.
- Improve guard against empty strings and `undef` in Dates role parsers.

Fixes #661.
2014-10-03 17:16:33 +02:00
Tommy Leung da1322ace8 Rewrote CUSIP goodie to take advantage of Business::CUSIP 2014-10-03 11:06:59 -04:00
Zaahir Moolla 9ce075f45a Merge pull request #663 from duckduckgo/zaahir/manual-merge-cusip
Zaahir/manual merge cusip
2014-10-03 11:00:37 -04:00
Tommy Leung bfc2c1dde9 Rewrote CUSIP goodie to take advantage of Business::CUSIP 2014-10-03 10:56:44 -04:00
Tommy Leung 7833f3c1f3 Code cleanup/optimization for CUSIP check digit Goodie 2014-10-03 10:56:44 -04:00
Tommy Leung 7683fb70d1 Code changes for style and clarity to new CUSIP Goodie
Added HTML output
Removed POSIX dependency
2014-10-03 10:56:44 -04:00
Tommy Leung 9e8a01f678 Changed "switch" style to remove dependency 2014-10-03 10:56:44 -04:00
Tommy Leung 35e955b8a9 Added CUSIP Check Digit Validation Goodie 2014-10-03 10:56:44 -04:00
Zaahir Moolla 16aa56edc8 Merge pull request #655 from duckduckgo/mwm/explicit_caching
Set explicit caching everywhere.
2014-10-03 10:15:43 -04:00
Matt Miller 1df8a6c5bc Merge branch 'master' into mwm/explicit_caching
Conflicts:
	lib/DDG/Goodie/Hijri.pm
	t/Hijri.t
2014-10-03 15:56:01 +02:00
Rob Emery 4ee36136b1 Merge pull request #634 from mwmiller/chinese_zodiac_to_role
ChineseZodiac: expand trigger space with DatesRole.
2014-10-03 13:30:12 +01:00
Jag Talon 485a8810b6 Merge pull request #652 from duckduckgo/mwm/jalali
CalendarConversions: now with the Jalali calendar
2014-10-02 13:42:49 -04:00
Jag Talon e9eef2e046 Merge pull request #641 from mwmiller/vimparse
VimCheatSheet Updates,
2014-10-02 11:33:31 -04:00
Jag Talon 20f58421ef Merge pull request #647 from mwmiller/hidden_in_plain_site
DuckDuckGo: hidden service updates.
2014-10-02 11:22:58 -04:00
Matt Miller 109bd64681 CalendarConversion: update styling.
- New date outputs with per-calendar months.
- More standardized CSS.

I'm less than excited that you can't enter the other calendars with
month names, but that'll have to be ok for now.
2014-10-02 15:38:44 +02:00
Matt Miller 06d00f2a70 CalendarConversion: expand test coverage.
Also cleaned up some code to make sure triggering makes at least minimal
sense.
2014-10-02 09:03:25 +02:00
Zaahir Moolla 235806140a Merge pull request #659 from mwmiller/code_url
Example.pm template: correct code_url
2014-10-01 10:42:46 -04:00
Matt Miller 8b6ff8d866 Hijri: enable answer caching. 2014-10-01 08:42:01 +02:00
Matt Miller 14923e5c08 TwelveOclock: add and style HTML answer. 2014-10-01 05:32:07 +02:00
Matt Miller 18b3319726 TwelveOclock: add answer_type and is_cached. 2014-10-01 04:39:37 +02:00
Matt Miller ff65eab80c Example.pm template: correct code_url 2014-09-30 23:27:43 +02:00
Zaahir Moolla 2e6f77577e Merge pull request #658 from mwmiller/template_update
Example.pm template: freshener updates
2014-09-30 15:24:11 -04:00
Matt Miller a7a2cd9ffe Example.pm template: freshener updates
- Point to metadata docs to help fill out section.
- Reorganize metadata into same order as docs.
- Remove "icon_url" and "source" which do not generally apply to
  Goodies.
- Better example strings for the `attribution` section.
- Use "guard" before "work" in example code.
2014-09-30 20:43:52 +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