Commit Graph

1053 Commits (a1c8d901df9f1242b6d413299055960fbae4f3d6)

Author SHA1 Message Date
dariog88a a1c8d901df Replaced trim function with inline regex. Added encoding to slurp. Using utf8 in test file to fix tests. 2013-10-07 19:32:53 -03:00
dariog88a 5988604d96 Moved trim function and slurp outside of the handle function. Renamed input file to shortcuts.csv. 2013-10-06 16:39:03 -03:00
dariog88a 8f93ab53ff Added resource with shortcuts in CSV format (with pipe as separator). Replaced the HTTP request with file parsing. Adapted tests to the change. 2013-08-13 22:34:47 -03:00
dariog88a 4066636a68 Added resource with shortcuts in CSV format (with pipe as separator). Replaced the HTTP request with file parsing. Adapted tests to the change. 2013-08-13 22:10:50 -03:00
dariog88a 725a530e03 Remove temp file. 2013-07-30 01:13:58 -03:00
dariog88a 271def56ce Remove temp file. 2013-07-30 01:12:58 -03:00
dariog88a 39e8a38019 Complete rewrite of Shorcut plugin: added context and used Wikipedia as resource. 2013-07-30 00:21:07 -03:00
dariog88a 5b02bd5748 Complete rewrite of Shorcut plugin: added context and used Wikipedia as resource. 2013-07-30 00:20:18 -03:00
dariog88a acc573eb26 Initial commit of Shorcut plugin. 2013-07-23 21:17:40 -03: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
moollaza c75b892d74 Calculator.pm, added trigger word. Small fix to Fibonacci attribution 2013-06-28 17:18:51 -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 37443d3040 move replicated README info and point to duckduckgo readme 2013-06-24 19:39:01 -04:00
Dylan Lloyd 95282fdf0d use Snow.t as Loc.API ex. & updated documentation 2013-06-24 19:25:51 -04:00
Dylan Lloyd 9aeabcf1b4 whoops, removed spice testing line 2013-06-24 18:00:45 -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 71e012ce13 added triggers and skip list to HelpLine 2013-06-24 14:33:36 -04:00
Dylan Lloyd 1f1604e634 documented testing with the location API 2013-06-24 13:35:13 -04:00
Dylan Lloyd 662b0d856f Merge branch 'pr/200' 2013-06-24 13:15:39 -04:00
Zaahir Moolla a8d6788be9 Merge pull request #201 from koosha--/master
Tiny fix
2013-06-22 14:34:45 -07:00
Koosha Khajeh Moogahi ad065ddb49 Chess960: Fix primary example 2013-06-23 00:21:08 +04:30
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
Dylan Lloyd 485787b6fe refactor HelpLine for easy expansion 2013-06-21 16:34:59 -04:00
Dylan Lloyd 1ee565fd84 rename Helpline HelpLine 2013-06-21 16:34:32 -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
Conor 961898c391 fixed typo 2013-06-20 17:54:50 -07:00
Conor 6f3c549161 optimized assigning k variable 2013-06-20 17:48:58 -07:00
Conor 9c7a31bd0d First commit for choose goodie 2013-06-20 17:39:51 -07:00
Dylan Lloyd feef9138d2 make dice notation case insensitive 2013-06-19 20:57:27 -04:00
Dylan Lloyd 1eb3358cbc make "%-error" trigger explicit to work w/ new ddg trigger rules 2013-06-14 16:13:21 -04:00
Dylan Lloyd 48c55cf6da fix "Indirect call of method" error occurring in some perls 2013-06-14 16:00:13 -04:00
Dylan Lloyd d7e1d16301 use scoped variables instead of bareword filehandles 2013-06-12 01:38:53 -04:00
Dylan Lloyd 0e5aaa9321 changed Jira example queries 2013-06-12 01:05:04 -04: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