Commit Graph

364 Commits (c3eae2a012d94856ba9c20f57d0f87541cff76da)

Author SHA1 Message Date
Dylan Lloyd c3eae2a012 refactor & add test cases 2013-08-16 15:50:15 -04:00
gsquire 1fa8219892 added in more natural queries 2013-08-15 13:27:02 -07:00
gsquire 4a30847621 Added metadata and better test cases 2013-08-10 17:15:46 -07:00
gsquire e72db7c2bc My first plugin called Week.pm 2013-08-10 13:11:30 -07:00
Dylan Lloyd 21f4cbb94b add then subtract -l/h, and don't sort rolls
discussion at (and closes)
https://github.com/duckduckgo/zeroclickinfo-goodies/issues/198

test case added
2013-08-08 15:12:33 -04:00
Dylan Lloyd 038fc15f5c fix t/GUID.t mixup 2013-07-24 15:06:17 -04:00
Dylan Lloyd 2d7bcfbc4b added module for comprehensive natural language support 2013-07-24 15:05:53 -04:00
John-Peter Etcheber a49d65d103 Added support for natural language queries from 1-20.
Added 3 new tests to test file.
2013-07-23 20:26:35 -07:00
John-Peter Etcheber 4272a6f92e Update POTUS.t
Getting update from branch pr/206
2013-07-23 19:04:39 -07:00
John-Peter Etcheber 2d2ad68a96 Update POTUS.t
Fixed test to account for linked HTML output.
2013-07-22 23:01:05 -07:00
John-Peter Etcheber 9b6da3cda6 Create POTUS.t
Initial test file for goodie.
2013-07-19 19:46:17 -07:00
John-Peter Etcheber 7691b6bd81 Create Guid.t 2013-07-18 23:32:07 -07:00
John-Peter Etcheber b32351285a Create GUID.t 2013-07-18 23:31:12 -07:00
John-Peter Etcheber 5333bc5071 removed GUID.t 2013-07-13 12:23:42 -07:00
Dylan Lloyd f006d79ba1 added irc link to DDG, refactored goodie 2013-07-06 18:23:06 -04:00
Koosha Khajeh Moogahi 93b72d829b RandomName: Add support for generating a random person 2013-07-01 00:50:19 +04:30
Dylan Lloyd 8c2bbdbed6 add solve trigger to calculator 2013-06-28 18:56:27 -04:00
Dylan Lloyd 6c89f5e9f9 fixed erroneous exit on zero value calculations 2013-06-28 17:45:24 -04:00
Dylan Lloyd 48297fc42e added international help lines & updated tests
for country in `perl ../zeroclickinfo-spice/lib/DDG/Spice/Zipcode.pm`;
    do curl "http://www.befrienders.org/directory?country=$country" 2>/dev/null
        | tee tmp
        | egrep 'There are <strong>[1-9]\d* helplines' >/dev/null
            || continue;
        foo="`
            sed -nr 's/.*Helpline 1:<\/strong>\s+([-()0-9 ]+[0-9]).*/\1/p' tmp
                | head -n1`";
        [[ ! -z "$foo" ]]
            && perl -e "print uc \"$country\", ' => \'', \"$foo',\n\"";
done;
2013-06-26 16:05:18 -04:00
Dylan Lloyd b8c08d2c9e fixed tab/space mix on t/RouterPasswords.t 2013-06-24 17:28:06 -04:00
Dylan Lloyd ee5ad5e742 update RouterPasswords inline documentation & readme 2013-06-24 16:57:06 -04:00
Dylan Lloyd a2d2cd6c63 more comprehensive testing for HelpLine 2013-06-24 14:33:56 -04:00
Dylan Lloyd 76dfbebe23 quote test locations "just in case" 2013-06-21 17:20:03 -04:00
Dylan Lloyd 09719f5d77 test all query/location permutations and declare expected tests 2013-06-21 17:19:06 -04:00
Dylan Lloyd ae66d35d8c abstract helpline tests for geoip location based testing 2013-06-21 17:04:04 -04:00
Dylan Lloyd 8fda7647e3 wrote HelpLine test file 2013-06-21 16:35:10 -04:00
Conor 6ab5a658ae cleaned up old files 2013-06-21 12:49:24 -07:00
Conor f850b599c2 First commit for suicide hotline 2013-06-21 12:43:57 -07:00
Conor e4e7ec3290 cleaned up t file 2013-06-20 18:27:22 -07:00
Conor 59130fef38 added test file 2013-06-20 18:23:06 -07:00
Dylan Lloyd 3934646133 only add <br> when multiple results found 2013-06-08 16:32:10 -04:00
Dylan Lloyd d4577695c8 return text => undef rather than an empty string 2013-06-08 16:32:10 -04:00
arroway 4b2a77d991 Uppercase ticket name in the result whatever the input is 2013-06-08 16:32:10 -04:00
arroway b5af245585 Display the project name in the result template 2013-06-08 16:32:10 -04:00
arroway bbb28f6a04 Remove header for it provides redundant information 2013-06-08 16:32:10 -04:00
arroway ca20d3d3c4 Hardcoding every project key in the regular expression
The search for the project name is dropped, but the function as
implemented now is much simpler and cleaner.
2013-06-08 16:32:10 -04:00
arroway 46e1111d41 Delete redundant tests for the Jira module 2013-06-08 16:32:10 -04:00
arroway f69cb06924 Jira Goodie first (incomplete) version
When a JIRA bug ticket number is searched, this goodie
checked if the ticket is owned by a project hosted on the Apache JIRA bugtracker
or on the Codehause JIRA bugtracker.
A JIRA ticket is formed by a KEY (corresponding to a project) and
a ticket number. The validity of the key is checked before displaying
any result (comparison with hard-coded keys).

This version is runnable but is still incomplete because not every project key
has been added yet.
2013-06-08 16:32:10 -04:00
Michael Smith d84bdbb1b7 Fix Calc some more, add another test 2013-06-08 13:51:33 -06:00
Michael Smith 4ef8cbad31 Kill the giant monster math regex of Doom. Fixes #196 and my headache. 2013-06-08 13:35:24 -06:00
Dylan Lloyd 303e67323b Merge branch 'pr/191' 2013-05-30 17:14:56 -04:00
Dylan Lloyd a78b32713d append (random) to random results as is cannonical 2013-05-30 17:14:48 -04:00
SteLim bf0071b7ae query returns only first- and lastname, as suggested 2013-05-30 21:52:07 +02:00
SteLim 9477fb58a5 removed trigger person, as suggested, and renamed the files to be more specific 2013-05-28 21:28:47 +02:00
Jag Talon 9646965510 Moonphases: Fixed test file. 2013-05-25 20:16:09 -04:00
Dylan Lloyd 56ca0258a0 test files are not packages 2013-05-25 19:29:44 -04:00
SteLim a3ade793e1 fixed more bugs 2013-05-25 23:45:10 +02:00
SteLim 6bcd4126e2 bugfix and enhancements 2013-05-25 23:24:22 +02:00
SteLim a0197a023c My first Goodie 2013-05-25 02:38:15 +02:00
Dylan Lloyd 2901aef653 Merge branch 'pr/189' 2013-05-22 15:20:45 -04:00