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
Ben Moon
0d1c29d08c
Add test for postfix form
2016-05-14 17:17:04 +01:00
Ben Moon
07dc434bf8
Ensure no triggering on empty remainder
2016-05-14 17:15:45 +01:00
Ben Moon
ba3c840566
Ensure we don't trigger if we've nowt to shuffle
...
shuffle xs | length xs <= 1 = xs forall xs
That says it all.
2016-05-14 17:11:50 +01:00
Ben Moon
775c1e0f49
Add Shuffle Instant Answer
...
Allows shuffling of random inputs (mainly lists).
2016-05-14 17:10:31 +01:00
Naveen Karippai
a426dccaf5
Convert CountryCodes to full template goodie ( #3037 )
...
Goodies have full support for templates, and it'd be great
to make sure that 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
See also: Updates CountryCodes Goodie Re: #2767
2016-05-12 14:23:28 +01:00
Rob Emery
435480ab73
Merge pull request #3040 from jophab/patch-8
...
Update sql.json
2016-05-12 13:34:44 +01:00
JOBIN PHILIP ABRAHAM
b6ae44f9b8
Update sql.json
...
Removed second appearance of "foreign key"
fixed#3036
2016-05-12 17:47:48 +05:30
Ben Moon
3a0e90fb62
Merge pull request #3019 from duckduckgo/mintsoft/conversions/plurals
...
Conversions: Harmonise unit definitions
2016-05-11 20:42:26 +01:00
Rob Emery
10eac5a798
Conversions: Adding tests around singular for mmHg
2016-05-11 20:03:11 +01:00
Rob Emery
54ef078da5
Conversions: Singular test for ton of TNT
2016-05-11 18:54:16 +01:00
Rob Emery
f62adb5b70
Conversions: Adding hash for the opposite direction (plural_to_unit) to quickly determine if a unit/alias is plural
2016-05-11 18:49:28 +01:00
Rob Emery
3831d2bf71
Conversions: Fixing tnt vs TNT for @guiltydolphin
2016-05-11 18:45:02 +01:00
Rasika Pohankar
9b5d96c5c3
Update ValarMorghulis to use full template. ( #3034 )
2016-05-11 12:43:08 +01:00
Rob Emery
460b0978ac
Merge pull request #3029 from s7nio/cheatsheets-add-zfs
...
Update the description of the zfs cheat sheet
2016-05-10 22:13:36 +01:00
Rasika Pohankar
d2996bf4d5
Birthstone: Convert to full template ( #2807 )
...
* Added plaintext response.
* Removed id and name.
* Fixed alignment.
* Changed subtitle to Birthstone for month.
* Changed subtitle in test file.
2016-05-10 22:00:42 +01:00
Sebastian Nemak
ab81e41359
Update the description
2016-05-10 22:54:08 +02:00
Ben Moon
a459531950
Remove trailing white space
2016-05-10 21:46:51 +01:00
Rasika Pohankar
16f3fd4599
Zapp Brannigan: Convert to full template ( #2994 )
...
* Change to full template, add handlebars file for new line in quote.
* Change data to -ANY- in test file.
* Replace regex with re().
2016-05-10 21:41:54 +01:00
Rob Emery
fcc5983d0c
Merge pull request #2982 from J-tt/patch-2
...
Move exit commands to top issue [FIXED] #2885
2016-05-09 23:11:32 +01:00
Rob Emery
264ec03ae5
Merge pull request #2911 from tagawa/tagawa/logarithms
...
Logarithms cheatsheet: Fixed description
2016-05-09 22:44:08 +01:00
Rob Emery
9517ba17ce
Merge pull request #2980 from rkokkelk/rkokkelk/unixtime
...
UnixTime: Expanded trigger words
2016-05-09 22:29:38 +01:00
Rob Emery
820f34d192
Merge pull request #3021 from s7nio/cheatsheets-add-zfs
...
Create cheat sheet for zfs
2016-05-09 21:52:40 +01:00
Rob Emery
bdd54b6a8f
Conversions: now it's in a list of values; we can use List::Util again!
2016-05-09 20:34:15 +01:00
Rob Emery
13509c09b1
Conversions: Not sure why I was looking up the value everytime from the hash here
2016-05-09 20:33:02 +01:00
Rob Emery
9418f7baef
Conversions: Didn't use List::Util in the end as it's all in hashes
2016-05-09 20:31:36 +01:00
Rob Emery
4417d51443
Conversions: More tidying up; also dodged bug where units would be added twice
2016-05-09 20:30:34 +01:00
Rob Emery
679a1d7fdf
Conversions: Plural isn't used in the response from get_matches as it's looked up in the hash
2016-05-09 20:28:49 +01:00
Rob Emery
cd4bf80a17
Conversions: Minor code tidies
2016-05-09 20:28:00 +01:00
Rob Emery
6775764f28
Conversions: refactoring and tidying up around set_unit_pluralisation
2016-05-09 20:25:37 +01:00
Rob Emery
539e5dcd78
Conversions: Tiding up a little
2016-05-09 20:20:08 +01:00
Rob Emery
aedcc1d560
Conversions: Better off without the JSON formatted version for now
2016-05-09 20:18:21 +01:00
Rob Emery
ed3c5560b3
Conversions: All tests now passing
2016-05-09 20:17:32 +01:00
Sebastian Nemak
ac079dcae0
Update section pools and datasets
2016-05-09 21:16:09 +02:00
Rob Emery
3085cef17a
Conversions: Again I think the intent behind the query `ml in gallons` is "how many ml are there in a gallon?"
2016-05-09 20:11:38 +01:00
Rob Emery
a76e193f8d
Conversions: I think the query how many cm in metres should return the answer "1 meter = 100cm"
2016-05-09 20:09:58 +01:00
Rob Emery
e684a14a5f
Conversions: TNT will always be returned as tnt now
2016-05-09 20:03:19 +01:00
Rob Emery
abad3d0d1f
Conversions: The previous code assumed that everything was lowercase; I've injected lc all over the place to make the tests pass
2016-05-09 19:55:59 +01:00
Rob Emery
31d94115cb
Conversions: Fixing some unit mistakes
2016-05-09 19:41:23 +01:00
Ben Moon
a873ff4228
Remove extra alias
...
We missed one!
2016-05-09 18:39:46 +01:00
Indranil Dutta
d1914da1b9
Updated aliases as per #2967 ( #2996 )
2016-05-09 18:38:56 +01:00
Ethan Chiu
e15deda8cf
Telugu Cheat Sheet: Removed "english to telugu" and "basic telugu" aliases ( #3003 )
...
* Removed "english to telugu" and "basic telugu"
https://github.com/duckduckgo/zeroclickinfo-goodies/issue/2967
2016-05-09 18:36:31 +01:00
Ben Moon
be39939bf7
Fix missing template type ( #3017 )
2016-05-09 17:41:02 +01:00
Ben Moon
0141a0558b
Rename share/goodie/cheat_sheets/visual-studio.json to share/goodie/cheat_sheets/json/visual-studio.json
2016-05-09 17:25:48 +01:00
Rob Emery
02b39325ad
Conversions: Adding JSON representation which works far better than YAML
2016-05-09 01:15:05 +01:00
Rob Emery
65ad6fce17
Conversions: non-working version using the plural from the YAML
2016-05-08 22:22:28 +01:00