Commit Graph

4310 Commits (433a989c7461830f20c73db9b0fe36186731b692)

Author SHA1 Message Date
1122131 1ebff3e65b reverted .pm file 2016-06-18 14:09:42 +00:00
1122131 17170a91e6 updated .t file 2016-06-18 14:06:05 +00:00
1122131 773f1f5e30 added local images and other changes 2016-06-18 13:38:04 +00:00
1122131 b09fb96890 update-4 2016-06-18 05:47:21 +00:00
rgaul aa932b30f0 Templates type should be group 2016-06-18 01:14:45 +00:00
sradhakrishnan cdb0f91902 Add more tests. Add weeks, years, months, milliseconds 2016-06-17 13:20:49 +00:00
Zaahir Moolla d6c0e510fa Merge pull request #3208 from gaulrobe/issue-1044
Tip IA: Trigger calculations off of 'tax' and some cleanup
2016-06-16 13:10:57 -04:00
sdua f6c15045c3 Fix tests 2016-06-14 11:22:18 +00:00
sradhakrishnan c4ecb7f910 Add single regex 2016-06-14 06:48:22 +00:00
mhunsinger b1874b8f23 Returning Yes/No, and minor (sub)title formatting. 2016-06-14 04:57:47 +00:00
mhunsinger 4155fcab61 Refactored tests and minor parts of Perl script.
Removed stripping whitespace around the query, as remainder_lc
already does this.
Refactored build_test to include testing for build_pred_test.
2016-06-14 04:51:34 +00:00
sdua 09e9a93b07 Update module to use record template 2016-06-14 00:01:45 +00:00
sdua 3c34cba13c Minor formatting fix 2016-06-13 22:12:31 +00:00
sdua b601f0a070 Update to use List template 2016-06-13 20:23:04 +00:00
sradhakrishnan d63603bad6 Fix tests and subtract 2016-06-13 13:53:06 +00:00
NeoSilky ad58d054b2 URLEncode: enable triggering on 'uri' as well 2016-06-10 08:50:21 +00:00
mhunsinger 7971d0b6f0 Merge branch 'master' of https://github.com/duckduckgo/zeroclickinfo-goodies into fibonacci 2016-06-10 07:01:32 +00:00
mhunsinger 71b855660c Added IA for "is n a Fibonacci number?". 2016-06-10 07:00:31 +00:00
tagawa 94acf5c43c SHA-3: Added 'sha-3' trigger 2016-06-10 05:05:29 +00:00
mhunsinger 6ec43de449 Merge branch 'master' of https://github.com/duckduckgo/zeroclickinfo-goodies into fibonacci 2016-06-09 20:07:01 +00:00
mhunsinger 1172e7b7b5 Updated Fibonacci to use Perl Math::NumSeq::Fibonacci package.
Changed the handler from "request" to "request_lc".
Fixed a problem where the regexp didn't handle "nd" ordinal suffix.
Created new test to ensure it would handle both of these cases.
2016-06-09 20:01:15 +00:00
Roysten 3bcfbede0f Merge remote-tracking branch 'ddg/master' into 2048rewrite 2016-06-09 18:17:08 +00:00
Zaahir Moolla 8775bed07a Merge pull request #2846 from duckduckgo/mattr/stopwatch-port
Port Stopwatch to Goodies
2016-06-09 11:48:40 -04:00
sradhakrishnan ddf853efe0 Fix Test 2016-06-09 13:43:23 +00:00
sradhakrishnan 35b448af6c Change to use Duration 2016-06-09 13:00:33 +00:00
Rob dbd21dad71 CoffeeToWaterRatio: Renaming aliases to be more explicit 2016-06-09 13:10:05 +01:00
Rob 693c0e415c CoffeeToWaterRatio: Refactoring datastructures and empty answer a bit 2016-06-09 12:55:51 +01:00
Rob 5d086ab37a CoffeeToWaterRatio: Removing : from the default answer as it looks unsightly 2016-06-09 12:44:33 +01:00
Rob c88bedcd8b Merge remote-tracking branch 'lamanh/fix_2767_CoffeeToWaterRatio' into mintsoft/CoffeeToWaterRatio-template 2016-06-09 12:39:26 +01:00
sradhakrishnan 6f7f4e1664 Fixes Broken Test 2016-06-09 11:23:05 +00:00
rgaul 4731a97c0d Trigger calculations off of 'tax' and some cleanup 2016-06-09 01:58:45 +00:00
Zaahir Moolla 404420734c Merge pull request #2775 from duckduckgo/gd/calc-roots-full-template
CalcRoots: Update to use full template
2016-06-08 19:10:20 -04:00
Zaahir Moolla db2a739352 Add upper bound on input, remove unnecessary IF statement 2016-06-08 18:46:55 -04:00
Ben Moon 5125691705 Merge pull request #3207 from duckduckgo/zt/bin2uni-stringify
Bin2Unicode: Fix stringy output
2016-06-08 23:22:53 +01:00
Zach Thompson 91113aa0bd Precedence in concatenation/ternary op 2016-06-08 14:21:15 -06:00
Zaahir Moolla 4485439fc7 Merge pull request #3111 from jonk1993/extend-base-converstion
Base Conversion: Allow converting between arbitrary bases
2016-06-08 16:01:04 -04:00
Zaahir Moolla 099ebaf88d Merge pull request #3076 from duckduckgo/mintsoft/macaddress-template
MacAddress: Convert to template
2016-06-08 15:34:38 -04:00
Zaahir Moolla 9ebb903f3e Merge pull request #3069 from duckduckgo/mintsoft/jira-template
JIRA: Switching to info template
2016-06-08 15:32:10 -04:00
Zaahir Moolla 520893b409 Merge pull request #3051 from duckduckgo/mintsoft/constants-template
Constants: Switching to template
2016-06-08 15:27:45 -04:00
Ben Moon fcd84610c3 Merge pull request #3098 from duckduckgo/mintsoft/rc4-template
RC4: Converting to text template
2016-06-08 18:55:42 +01:00
sradhakrishnan 9e91e93237 Add Duration Calculator 2016-06-08 15:27:19 +00:00
Rob Emery 74f903a63c Merge pull request #3179 from sm4rk0/patch-1
ReverseResistorColours: Add x0.1 and x0.01 multipliers
2016-06-08 08:13:31 +01:00
Zaahir Moolla b91ff2337a Merge pull request #2808 from rasikapohankar/countdown
Countdown Goodie
2016-06-07 12:27:48 -04:00
Zaahir Moolla 4105377cfa Merge pull request #3204 from duckduckgo/mintsoft/url-uri-decode
URLDecode: should trigger with uri as well as url
2016-06-07 11:33:39 -04:00
Zaahir Moolla b69893efd3 Merge pull request #3096 from NaveenKarippai/2840/helpLine
Convert HelpLine Goodie to list template
2016-06-07 11:23:31 -04:00
Zaahir Moolla 61d49035d7 Merge pull request #2898 from gaulrobe/altcalendars-cleanup
Improvements to AltCalendars IA
2016-06-07 11:18:45 -04:00
Rob da560073d4 URLDecode: Now triggers with uri as well as url 2016-06-06 21:45:57 +01:00
Zaahir Moolla 47bd1c834f Merge pull request #1303 from charles-l/master
ChordDiagrams (continues #1023)
2016-06-06 16:22:41 -04:00
NaveenKarippai 8ca89d0961 Update test suite to match modified goodie file
The test suite should be modified to match the modified goodie
file for list template.

* prototype of test cases written

See also: #2840
2016-06-06 16:13:05 +00:00
rpohankar d7ffa25bf8 Update perl file to remove time calculations and rely on the Dates Role, update test file, move creation of duration object inside callback of require. 2016-06-05 14:08:31 +00:00
Marko Stanković 6f1095218f Improve ReverseResistorColours.pm
Currently, the goodie returns 10ohm for "brown black gold silver resistor", which is wrong, as this is the code for 1ohm.
* add gold and silver multipliers (x0.1 and x0.01)
* simplify the multiplier formula
* remove unused "mult" variable
2016-06-04 03:30:56 +02:00
rpohankar 8061d5698c Add title to returned answer in javascript instead of perl. 2016-06-02 18:01:27 +00:00
rpohankar b4ae852dc6 Add title in structured_answer,remove progress circle,remove table from display in handlebars template, remove css for display box and progress circle. 2016-06-02 17:44:33 +00:00
Zaahir Moolla cc9b48c954 Merge pull request #3158 from NaveenKarippai/3144/triggerSort
sort: stop triggering for single input query on sort_goodie
2016-06-01 15:18:10 -04:00
Jacob Woliver 7a53bed02c GreatestCommonFactor: Prevent triggering on single numbers (#3167)
Fixes #3047.
2016-06-01 16:52:16 +01:00
NaveenKarippai fb5c48d35b Remove whitespace characters from source module
There were some unnecessary whitespace characters included on source
code module. This should be removed.

See also: #3144
2016-05-31 18:20:41 +00:00
Zaahir Moolla b498d2af12 Merge pull request #2849 from duckduckgo/mintsoft/timediff
Timediff: Duration between two datetimes in a variety of units
2016-05-31 12:14:04 -04:00
Matthew Ramina b7ac37c0fb Merge pull request #3078 from duckduckgo/mintsoft/makemeasandwich
MakeMeASandwich: Switching to template
2016-05-30 19:27:50 -04:00
charlie 279f9143b8 ... 2016-05-30 17:19:46 -04:00
Zaahir Moolla cb79350f1f Switch to subtitle with title_content template 2016-05-30 16:35:19 -04:00
NaveenKarippai 6dbb2d39c1 Remove whitespace characters on source module
There were whitespace characters inserted on source module
of sort_goodie. This was inserted on purpose with an aim to
beautify code module but it should be removed as it is no
longer necessary,

See also: #3144
2016-05-30 20:30:23 +00:00
charlie e43ac15830 minor cleanup 2016-05-30 16:07:01 -04:00
charlie 161f67934f cleanup 2016-05-30 16:07:01 -04:00
charlie e74d1a4aca fixed typo 2016-05-30 16:07:01 -04:00
charlie b23dc35ce2 minor fix 2016-05-30 16:07:01 -04:00
charlie aea02cf1ed more cleanup 2016-05-30 16:07:01 -04:00
charlie ed1785c6a2 cleanup 2016-05-30 16:07:01 -04:00
ninjacharlie d9d505b7a5 fixed according to tests 2016-05-30 16:07:01 -04:00
charlie e6b5a36693 formatting 2016-05-30 16:07:01 -04:00
charlie 4caa54d8e0 ... 2016-05-30 16:07:01 -04:00
charlie b55e022b61 ... 2016-05-30 16:07:01 -04:00
charlie 2fbe77cec1 ... 2016-05-30 16:07:01 -04:00
charlie 5098965aac trying to get more info from test failures 2016-05-30 16:07:01 -04:00
charlie 99711de9a9 fixed warning 2016-05-30 16:07:01 -04:00
charlie f80edaa88d fixed ukulele minor chords 2016-05-30 16:07:01 -04:00
charlie 0872978f82 refactored instrument selection 2016-05-30 16:07:01 -04:00
charlie 772e1f9891 fixed instrument selection 2016-05-30 16:07:01 -04:00
charlie e0948d4648 started adding ukulele chords in 2016-05-30 16:07:01 -04:00
charlie 8d6774c817 oops, revert changes on FrequencySpectrum 2016-05-30 16:07:01 -04:00
Ben Moon 571baa000a Merge pull request #3163 from duckduckgo/mintsoft/EmailValidator-template
EmailValidator: Switching to text template
2016-05-30 20:44:44 +01:00
charlie ec9c910d4a added text display for chords further up neck 2016-05-30 15:36:35 -04:00
charlie 9e230e8919 started fixing displays 2016-05-30 15:36:35 -04:00
charlie bd02a6cc19 fixed as per comments 2016-05-30 15:36:35 -04:00
charlie e3172cf987 added variations 2016-05-30 15:36:35 -04:00
charlie 6370f4a9d4 added item styling 2016-05-30 15:36:35 -04:00
charlie 147848b627 fixed chord title 2016-05-30 15:36:35 -04:00
charlie f81afeec05 handle aug 2016-05-30 15:36:35 -04:00
charlie 502ae8550a removed unused code 2016-05-30 15:36:35 -04:00
charlie 601508d33c actually grab chords from input 2016-05-30 15:36:35 -04:00
charlie 7bd372c23c began moving over to new code 2016-05-30 15:36:35 -04:00
charlie 9347d3daee css cleanup, code cleanup 2016-05-30 15:36:35 -04:00
charlie f777aa5469 fixed offset 2016-05-30 15:36:35 -04:00
charlie 07675b16d9 better styling 2016-05-30 15:36:35 -04:00
charlie f542c25de7 added points 2016-05-30 15:36:35 -04:00
charlie 70a4ecf5f4 grid base 2016-05-30 15:36:35 -04:00
charlie 20781abc62 added basic svg functionality 2016-05-30 15:36:35 -04:00
Charles S 5d05a6e404 renamed to ChordDiagrams 2016-05-30 15:32:36 -04:00
Charles S 701a55ff40 indentation 2016-05-30 15:32:36 -04:00
Charles S 917d8529fb fixed attribution metadata 2016-05-30 15:32:36 -04:00
Charles S a4a6e09fcb simplified logic 2016-05-30 15:32:36 -04:00
Charles S ff207e3d32 formatting 2016-05-30 15:32:36 -04:00
Charles S 90c0ea82d0 changed name 2016-05-30 15:32:36 -04:00
Charles S 0aa8dc69e5 fixed merge 2016-05-30 15:32:36 -04:00
Charles S 3d94352f56 check if instrument is defined before trying to search hash 2016-05-30 15:32:36 -04:00
Charles S e9269fedfb Added my username to contributers 2016-05-30 15:32:36 -04:00
Charles S bbfdb0bbe5 chords now working properly for both uke and guitar! 2016-05-30 15:32:36 -04:00
Charles S cee12e5d16 oops, chords were mirrored 2016-05-30 15:32:36 -04:00
Charles S b361263cb1 slice of end of array 2016-05-30 15:32:36 -04:00
Charles S 77a9061a9b got more working 2016-05-30 15:32:36 -04:00
Charles S 3bde26d17c initial rewrite of chord PR to use templates 2016-05-30 15:32:36 -04:00
gerhuyy 28ec5f591c Updated the files to correct a few mistakes 2016-05-30 15:31:42 -04:00
gerhuyy 059b308b6b Created a file, test file, and css file 2016-05-30 15:31:42 -04:00
Ben Moon 1ffb2a1381 Merge pull request #3113 from msingle/binarylogic-uppercase
Enhancement: Binary Logic: Add uppercase OR, XOR, AND, NOT operators
2016-05-30 20:17:15 +01:00
Zac Pappis 51fb944ee9 Merge pull request #3161 from duckduckgo/mintsoft/conversions-whitespacing
Conversions: Hack tweaks for #3160
2016-05-30 11:46:46 -07:00
Rob Emery 7f53c7de26 Merge pull request #3117 from NaveenKarippai/improvement2767/daysBetween
Convert DaysBetween to full template goodie
2016-05-30 19:23:32 +01:00
Rob 1b89249a78 EmailValidator: Switching to text template 2016-05-30 19:13:01 +01:00
Rob 5bb7b0fb2f Conversions: Removing word boundary restriction; I think this won't have any undesirables as it needs to match the global unit regex anyway 2016-05-30 14:12:24 +01:00
NaveenKarippai 7db0bee552 Use array scalar to check for array length
The goodie should not be triggered for array length smaller
than one.

* code refactored

See also: #3144
2016-05-29 19:17:19 +00:00
NaveenKarippai b9e8d190c4 Stop triggering for single input query on sort_goodie
The sort_goodie should not be triggered for single numbers (input)
query. This could be fixed by using a return statement check on handler.

* goodie not triggered for single number (input)

See also: #3144
2016-05-29 15:55:26 +00:00
jonk1993 18f63f02d2 removed eval, instead regex check for bad input 2016-05-28 17:08:04 +00:00
lwood1 18c77cb6b0 Prevent item details view from appearing 2016-05-28 02:08:33 +00:00
jonk1993 32d1b25a60 made regex capture names more clear 2016-05-27 02:03:36 +00:00
rgaul d5031a50a2 Tighten regex 2016-05-27 00:01:49 +00:00
rgaul 4774611756 Escape IA if no parent_era has been found 2016-05-26 23:51:21 +00:00
Mariano Simone b2d4251ab6 Cleanup Chinese Zodiac IA
- Remove meta-data from code
- Simplify attribute passing
- Use interpolation instead of concatenation
2016-05-26 06:08:45 +00:00
lwood1 04fc26075b Removed id => military_rank now that @moollaza fixed the ID on the IA page 2016-05-26 01:37:03 +00:00
Zaahir Moolla 75abc7df8f Merge pull request #3050 from duckduckgo/gd/shuffle-new-ia
New Shuffle Instant Answer
2016-05-25 18:02:25 -04:00
NaveenKarippai e6adaed99e Fix goodie subtitle data format
There was a whitespace character shown on goodie result' subtitle data field.
This could be fixed by changing subtitle data return result.
2016-05-24 21:01:38 +00:00
Rob 9709d66f62 Jira: Switching to info template! No HTML needed yey! 2016-05-24 20:40:41 +01:00
Rob a3550be4c9 MakeMeASandwich: Each item in the array should be either a string or an object, it can't be an object containing text: string 2016-05-24 20:22:03 +01:00
NaveenKarippai c95d84fb9b Refactor code module and test suite
There were some test cases which did not follow the ISO date format
suggested by the community. The test suite should be refactored and
some test cases should be added.

* removed whitespace characters on test suite and code module

* test cases added to suite

See also: #2767
2016-05-24 19:21:52 +00:00
Rob b8fda89aac MakeMeASandwich: Switching to raw text template! 2016-05-24 17:50:14 +01:00
Zaahir Moolla bc65850267 Merge pull request #3041 from duckduckgo/mintsoft/html-entities-decode/template
HTMLEntitiesDecode: Converting to Text Template
2016-05-24 11:04:11 -04:00
Ben Moon 3cc434822c Merge pull request #3132 from duckduckgo/mintsoft/password-template
Password: Switching to text template
2016-05-24 14:02:29 +01:00
Ben Moon 942cc5824c Ensure dates are random on production
Hopefully!
2016-05-24 13:38:32 +01:00
Rob 34cf88394a Password: Tabs to spaces 2016-05-23 17:34:36 +01:00
Zaahir Moolla 63e5e1ed90 Merge pull request #3007 from gaulrobe/issue-2002
Use v4 UUID generation
2016-05-23 10:57:22 -04:00
Rob Emery 6e4f269dca Merge pull request #2805 from duckduckgo/gd/datemath-after-before
DateMath: Add before/after forms
2016-05-23 13:09:04 +01:00
Rob d34f0d1f22 RC4: Key should be html encoded too 2016-05-23 12:57:43 +01:00
Ben Moon dd382be163 Merge pull request #3130 from duckduckgo/mintsoft/pi-template
Pi: Switching to text template
2016-05-23 12:53:27 +01:00
Rob 29741fd6fe Pi: Refactoring and removing sexy tabs in favour of kludgy spaces 2016-05-23 12:47:42 +01:00
Ben Moon aab36e2163 Merge pull request #3072 from duckduckgo/mintsoft/kana-template
Kana: Updating to the text template
2016-05-23 12:47:37 +01:00
Rob 83935015fd Password: Refactoring string interpolation 2016-05-23 12:42:12 +01:00
Ben Moon f7f9439d76 Fix MagicEightBall tests (#3138)
We don't need to enc the response.
2016-05-23 12:24:10 +01:00
Ben Moon 77f79c3e77 Merge pull request #3077 from duckduckgo/mintsoft-magiceightball
MagicEightBall: Converting to text template
2016-05-23 12:03:30 +01:00
Ben Moon 4494d6702c Merge pull request #3122 from duckduckgo/mintsoft/sha3-template
SHA3: Switching to text template
2016-05-23 12:02:14 +01:00
Ben Moon a84bc817dc Merge pull request #3119 from gaulrobe/issue-2767-sha
Update Sha Goodie to text template per #2767
2016-05-23 11:54:54 +01:00
Ben Moon 9d6199f45e Merge pull request #3125 from duckduckgo/mintsoft/parsecron-template
ParseCron: Switching to text template
2016-05-23 11:52:12 +01:00
Ben Moon 4f6ca6e3e8 Merge pull request #3124 from duckduckgo/mintsoft/timezone-converter-template
TimezoneConverter: Switching to text template
2016-05-23 11:49:07 +01:00
Ben Moon cbfc97b08b Merge pull request #3128 from duckduckgo/mintsoft/coin-template
Coin: Switching to text template
2016-05-23 11:46:22 +01:00
Ben Moon cb27186ee6 Merge pull request #3127 from duckduckgo/mintsoft/twelveOClock-template
TwelveOclock: Switching to text template
2016-05-23 11:44:49 +01:00
Ben Moon a18639549b Merge pull request #3126 from duckduckgo/mintsoft/week-template
Week: Switching to text template
2016-05-23 11:42:19 +01:00
Ben Moon ee46903a00 Merge pull request #3131 from duckduckgo/mintsoft/percentof-template
PercentOf: Switching to text template
2016-05-23 11:38:18 +01:00
Rob 7bbe80917b SHA3: Tweak as suggested by @guiltydolphin 2016-05-22 22:19:34 +01:00
Rob 341ed286af Password: Switching to text template 2016-05-22 22:14:58 +01:00
Rob 2141d1f880 PercentOf: Switching to text template 2016-05-22 22:04:48 +01:00
Rob 34ff108ac1 Pi: Switching to text template 2016-05-22 21:56:46 +01:00
Rob e73e4cd868 Coin: Switching to text template 2016-05-22 21:36:07 +01:00
Rob d6ba3fe753 TwelveOclock: Switching to text template 2016-05-22 21:24:53 +01:00
Rob 261d18d9be Week: Switching to text template 2016-05-22 21:18:13 +01:00
Rob 3c2936c6c6 ParseCron: Switching to text template 2016-05-22 21:08:09 +01:00
Rob 8981ffe50c TimezoneConverter: Switching to text template 2016-05-22 20:55:37 +01:00
rgaul 447c4cfef9 Make changes per review 2016-05-22 19:37:26 +00:00
Rob ba8fe158bf Sort: Convert to text template 2016-05-22 20:37:21 +01:00
Rob b1c8f29cd5 SHA3: Switching to text template 2016-05-22 20:09:14 +01:00
msingletary 875f216598 Clean grammar for query_lc 2016-05-22 18:21:03 +00:00
msingletary 322d37a08d Change query_raw to query_lc 2016-05-22 18:14:40 +00:00
msingletary d87975c88a Add changes @GuiltyDolphin mentioned in #3114 2016-05-22 17:13:45 +00:00
NaveenKarippai 42f790bcb2 Convert help line goodie to KV list template
It would be a good approach by switching the goodie to use
KV list template (content sub-template). This would improve
the readability of query output to end-user.

* removed unused handlebars template

* switched to use `content` sub-template for KV list

* modified yml data by adding name field

See also: #2840
2016-05-22 16:00:30 +00:00
rpohankar 9b04667a36 Make indentation uniform. 2016-05-22 13:04:55 +00:00
rpohankar dea944d67f Change regex to match time of the form hr:min am/pm or hr am/pm. 2016-05-22 12:38:01 +00:00
lwood1 a018f3f2f6 Use end trigger instead of regex trigger 2016-05-22 06:41:46 +00:00
rgaul da36876f42 Update Sha Goodie to text template 2016-05-22 05:37:32 +00:00
NaveenKarippai ff7baf5f8e Convert DaysBetween to full template goodie
Goodies have full support for templates, and it'd be great
to make sure all Goodies use full templates.
The "simple structured_answer" was provided as a temporary
workaround.

* change to 'text' template for structured_answer object

* refactored test suite

Re: #2767
2016-05-22 00:08:06 +00:00
msingletary 6eb63bfed8 Add binary operators OR,AND,XOR,NOT 2016-05-21 09:40:45 +00:00
jonk1993 a03a4da732 removed unnecessary docs 2016-05-21 00:09:21 +00:00
jonk1993 84ad168f61 merged with master 2016-05-20 23:59:21 +00:00
jonk1993 7689363510 small change to comment 2016-05-20 23:40:20 +00:00
lowellosaurus cea6ded850 Move data to YAML file 2016-05-20 22:34:38 +04:30
Ben Moon 9fc349de5a Improve chances of decent randomness on production
Hopefully this call to 'srand' will ensure we get fairly random results
on production.
2016-05-20 18:24:49 +01:00
jonk1993 229e6bd871 handled case where IA would trigger with two ways of defining input base 2016-05-20 17:01:36 +00:00
jonk1993 d119b0bad3 Added tests, updated examples in Base.pm 2016-05-20 16:55:22 +00:00
Ben Moon d07d944ff0 Expand triggers (even more) 2016-05-20 13:47:12 +01:00
Ben Moon efdd4a987c Add DateTime::Locale import for Travis build
Hopefully this will force Travis to build the dependency.
2016-05-20 13:19:44 +01:00
Ben Moon 645eede936 Clarify blacklist items 2016-05-20 13:18:46 +01:00
Ben Moon 34286dbecd Add more triggers 2016-05-20 13:12:33 +01:00
Ben Moon 50f2aa6426 Add support for basic ranges
E.g., `shuffle a..z`, `shuffle 1..7`.
2016-05-20 12:51:52 +01:00
Ben Moon b550ec9852 Add support for word lists
E.g., `1 and 2 and 3, and 4`
2016-05-20 12:04:06 +01:00
Ben Moon a1fa583294 Update items attribute to be the shuffled items
More useful than just returning the items.
2016-05-20 11:39:08 +01:00
Ben Moon 777c661d9b Turn off caching
Whoops - we don't want to cache random results!
2016-05-20 11:35:04 +01:00
jonk1993 7d19ec5997 added prefix as base specifier for input 2016-05-20 06:36:01 +00:00
jonk1993 f5f133946b Added converting between arbitrary bases for most input, handle error cases when Base2Int croaks and other invalid input 2016-05-20 06:17:06 +00:00
lowellosaurus 105a714cea Fix optional grade regex 2016-05-20 09:54:44 +04:30
lowellosaurus b3df879d13 Added test cases 2016-05-20 09:11:18 +04:30
jonk1993 cad3734222 included all letters so will work up to base 36 2016-05-20 01:10:09 +00:00
Caine Tighe 5343f46935 Merge pull request #3088 from duckduckgo/nilnilnil/yahoo-owned-server
DDG::Goodie::DuckDuckGo: Initial DNS delegation explanation.
2016-05-19 14:48:02 -04:00
Ben Moon 4e7dbbf1a5 Merge pull request #3075 from rasikapohankar/workdays_between
WorkdaysBetween: Convert to full template
2016-05-19 19:25:52 +01:00
Ben Moon b6d01fa0b6 Merge pull request #3103 from duckduckgo/mintsoft/Rot13-template
Rot13: Converting to text template
2016-05-19 18:40:00 +01:00
Ben Moon 8a1f0b0320 Merge pull request #3104 from rasikapohankar/weekdays_between
WeekdaysBetween: Convert to full template
2016-05-19 18:38:42 +01:00
Ben Moon 8fc3a9f78d Merge pull request #3094 from duckduckgo/mintsoft/Passphrase-template
Passphrase: Converting to text template
2016-05-19 18:35:35 +01:00
Ben Moon 09326d14a6 Merge pull request #3093 from duckduckgo/mintsoft/Paper-template
Paper: Converting to text template
2016-05-19 18:34:20 +01:00
Ben Moon fcd4b6ae31 Merge pull request #3105 from duckduckgo/mintsoft/Scramble-template
Scramble: Switching to text template
2016-05-19 18:33:28 +01:00
rpohankar 39b1e710bf Pass values for verb and weekdays_plurality from build_test, fix indentation. 2016-05-19 17:31:17 +00:00
Ben Moon 5c2b6ced39 Merge pull request #3102 from duckduckgo/mintsoft/Roman-template
Roman: Switching to text template
2016-05-19 18:31:15 +01:00
Ben Moon e9165bbbae Merge pull request #3095 from duckduckgo/mintsoft/Phonealphabet-template
PhoneAlphabet: Converting to text template
2016-05-19 18:30:28 +01:00
jonk1993 63e19eee8a extended regular expression to parse arbitrary bases on left 2016-05-19 17:28:44 +00:00
Ben Moon a312e0e4a6 Merge pull request #3101 from duckduckgo/mintsoft/RIPEMD-template
RIPEMD: Converting to text template
2016-05-19 18:28:37 +01:00
Ben Moon e9a0118df6 Merge pull request #3097 from duckduckgo/mintsoft/Rafl-template
Rafl: Switching to text template
2016-05-19 18:25:02 +01:00
Ben Moon 69eb193abf Merge pull request #3099 from duckduckgo/mintsoft/esreveR-template
Reverse: Converting to text template
2016-05-19 18:21:42 +01:00
Ben Moon c37398e421 Merge pull request #3100 from duckduckgo/mintsoft/ReverseComplement-template
ReverseComplement: Convert to text template
2016-05-19 18:08:51 +01:00
Ben Moon eae76a898a Merge pull request #3106 from duckduckgo/mintsoft/Wavelength-template
WaveLength: Switching to text template
2016-05-19 18:04:17 +01:00
Zach Thompson ad47da492c Merge pull request #3043 from duckduckgo/gd/cheat-sheets-fix-ignore
CheatSheets: Ensure multi-word ignores are processed correctly
2016-05-19 11:01:10 -06:00
Rob Emery cfd0ff5155 Reverse: Would previously return on "0" as input 2016-05-19 13:14:08 +01:00
Rob Emery 31bdb5574b WaveLength: Switching to text template 2016-05-19 13:00:40 +01:00
Rob Emery 386616d2d9 Scramble: Switching to text template 2016-05-19 12:51:53 +01:00
rpohankar e06a56c2c9 Update WeekdaysBetween to use full template. 2016-05-19 08:18:35 +00:00
Rob Emery 8a1b15f858 Rot13: Converting to text template 2016-05-18 23:23:28 +01:00
Rob Emery 62faa0c3ce Roman: Switching to text template 2016-05-18 23:13:31 +01:00
Rob Emery d4544d84bd RIPEMD: Switching to text template 2016-05-18 23:01:51 +01:00
Rob Emery 729a5ff09b RIPEMD: Converting to text template 2016-05-18 22:57:54 +01:00
Rob Emery 3c152febc2 ReverseComplement: Switching to text template 2016-05-18 22:20:30 +01:00
Rob Emery f8d20e524b Reverse: Converting to text template 2016-05-18 21:05:35 +01:00
Rob Emery 1ccc31c175 RC4: Converting to text template 2016-05-18 20:57:34 +01:00
Rob Emery 7c245df230 Rafl: Switching to text template 2016-05-18 20:47:44 +01:00
Caine Tighe 1e4f15d07f DuckDuckGo.pm: comment update. 2016-05-18 15:26:39 -04:00
Caine Tighe 0e365064d3 DuckDuckGo.pm: nits. 2016-05-18 15:25:30 -04:00
Caine Tighe f939051f36 DuckDuckGo.pm: Fix tests. 2016-05-18 15:13:03 -04:00
Caine Tighe 8e5ddcb372 DuckDuckGo.pm: Add sensible Yahoo aliases. 2016-05-18 14:50:51 -04:00
Caine Tighe 6d88795ece DuckDuckGo.pm: Handle all whois madness in DuckDuckGo.pm and save YAML from confusion. 2016-05-18 14:31:58 -04:00
Caine Tighe c7a996dc1e DuckDuckGo.pm: short circuit bad response key pairs. 2016-05-18 14:29:46 -04:00
Caine Tighe e49f59f59c DuckDuckGo.pm: Add ability to reason about particular trigger words via trigger stripping. 2016-05-18 14:23:33 -04:00
nkarippai 5e47e0f1a8 Convert goodie to list template
The formatting of HelpLine goodie should be improved
so that multiple numbers (query results) are on
different lines. This can be achieved by using `list`
template.

* use `list` template on HelpLine goodie

* handlebars file added for a simple list view

See also: #2840
2016-05-18 17:11:45 +00:00
Ben Moon 4e0fd3b590 Merge pull request #3091 from duckduckgo/mintsoft/paleo-template
PaleoIngredientCheck: Converting to text template
2016-05-18 15:29:45 +01:00
Rob Emery ebd008fe04 PhoneAlphabet: Converting to text template 2016-05-18 13:26:47 +01:00
Rob Emery c4b4eab11f Passphrase: Converting to text template 2016-05-18 13:17:25 +01:00
Rob Emery e1313735f7 Paper: Converting to text template 2016-05-18 13:06:17 +01:00
Rob Emery a913c6af02 PaleoIngredientCheck: encoding the input string for XSS protection (we think this is still neded) 2016-05-18 12:40:39 +01:00
Ben Moon 04a6925302 Merge pull request #3067 from duckduckgo/mintsoft/iso639-template
ISO639: Converting to text template
2016-05-18 11:59:13 +01:00
Ben Moon c4879378b9 Merge pull request #3062 from duckduckgo/mintsoft/fibonacci-template
Fibonacci: Converting to Text Template
2016-05-18 11:56:56 +01:00
Ben Moon 3db0512635 Morse: Convert to text template (#3090)
Morse: Converting to text template
2016-05-18 11:52:52 +01:00
Ben Moon c170b95b9e Merge pull request #3089 from duckduckgo/mintsoft/MoonPhases
Moon Phases: Convert to structured answer
2016-05-18 11:50:25 +01:00
rpohankar c907934aa8 Remove concatenation from title and response in Weight.pm, modify values passed to build_test in test file. 2016-05-17 20:20:55 +00:00
Rob Emery 463027d896 PaleoIngredientCheck: Converting to text template 2016-05-17 21:18:02 +01:00
Rob Emery ceec3492ba Morse: Converting to text template 2016-05-17 20:55:30 +01:00
Rob Emery 39af74d685 MoonPhases: Adding subtitle and cleaning up tests a little 2016-05-17 20:33:57 +01:00
Rob Emery ce8804804e MoonPhases: Converting to text template 2016-05-17 20:32:42 +01:00
rpohankar 202113b250 Update Weight to use the full template. 2016-05-17 17:33:12 +00:00
Rob Emery 24755a1018 MD5: Convert to text template (#3084) 2016-05-17 15:18:21 +01:00
Ben Moon 0e5ddc6983 Merge pull request #2966 from dbech/coin-flip
Coin: Triggers on 'coin flip'
2016-05-17 15:14:51 +01:00
rpohankar c00c956dd0 Remove comments from WorkdaysBetween.pm . 2016-05-17 13:58:42 +00:00