Ben Moon
1e2b4448db
Set signal to high
...
Sometimes it wasn't displaying when it should (was overridden).
2016-03-07 19:16:39 +00:00
Ben Moon
d17148be99
Add support for 'what was the...' forms
2016-03-07 18:46:42 +00:00
Ben Moon
19776b1c7c
Improve triggering
...
Add a bunch more common forms that I've seen in the searches - also
supports a couple of forms that should've been supported before.
2016-03-07 18:42:40 +00:00
Ben Moon
5583f00e29
Merge pull request #2112 from tyleryasaka/UltimateAnswer
...
UltimateAnswer: Expand query space
2016-03-07 12:52:18 +00:00
sagarwal
3245b6fdf5
Add stardate goodie
2016-03-07 05:01:22 +00:00
Rob Emery
999fda78be
SubnetCalc: Refactoring regex somewhat for readability
2016-03-06 10:29:18 +00:00
Rob Emery
b630ddf017
SubnetCalc: Renaming helper subs to be more descriptive
2016-03-06 10:23:40 +00:00
Charlie Garrison
8f48d86145
Additional trigger words, and tests
...
Ref: #1968
Signed-off-by: Charlie Garrison <cngarrison@gmail.com>
2016-03-05 14:43:59 +11:00
Rob Emery
19e4248bfb
SubnetCalc: Minor tidying up of subs
2016-03-04 19:40:20 +00:00
Rob Emery
3320873e6e
Merge pull request #2699 from riqpe/timeszoneconverter
...
Fixes #2697 : 12:00 now parsed as Noon if am not specified
2016-03-04 19:31:43 +00:00
rsilvola
f0f10e2428
Fixes #2697 : 12:00 now parsed as Noon if am not specified
2016-03-04 14:07:39 +00:00
Zaahir Moolla
42a2f2e21c
Merge pull request #1967 from GuiltyDolphin/gibberishgenerator
...
New GibberishGenerator Goodie
2016-03-03 12:13:51 -05:00
Zaahir Moolla
e5dfbc126f
Merge pull request #2691 from duckduckgo/gd/lorem-ipsum-words-fix
...
LoremIpsum: Fix display with just words
2016-03-03 11:38:01 -05:00
Ben Moon
48ce7089ff
Fix incorrect display of words
...
Words (as opposed to paragraphs) would not provide the wrap option.
2016-03-03 16:08:13 +00:00
Zaahir Moolla
cea2e79b6b
Remove IsAwesome Goodies
2016-03-03 10:19:08 -05:00
Zaahir Moolla
20387264e8
Merge pull request #1984 from GuiltyDolphin/improve-lorem
...
Improve LoremIpsum Goodie
2016-03-02 20:20:46 -05:00
Zach Thompson
526d5bb6b8
Merge pull request #2170 from GuiltyDolphin/cheatsheet-triggers
...
Make Cheat Sheets more Awesome
2016-03-02 10:56:38 -07:00
Ben Moon
ee861c07e4
Correct 'foreach' statement
...
Whoops ;)
2016-03-02 17:26:50 +00:00
Ben Moon
bcf28ab77f
Remove support for 'ignore' attribute
...
This requires further discussion and work.
2016-03-02 16:37:58 +00:00
amoraleda
a0204e9816
Map template added
2016-03-02 11:22:57 +00:00
sagarwal
61eda51cd6
Remove parentheses
2016-03-02 01:11:57 +00:00
marianosimone
c7e6041f0f
support - and whitespace in number spelling
2016-03-01 19:56:27 +00:00
marianosimone
b8c57b832f
use Numericalize for dice trigger
2016-03-01 19:12:48 +00:00
Ben Moon
f7d1196817
Combine whitespace regexes
2016-03-01 16:50:39 +00:00
marianosimone
a2c3f19b9d
support "dices" spelling for dice trigger
...
fixes #1255 (except for not converting "two" into 2)
2016-02-28 20:05:34 +00:00
Rob Emery
0ef3075361
Merge pull request #2642 from duckduckgo/gd/caesar-cipher-trigger-info
...
CaesarCipher: Add 'How to decode?' response
2016-02-28 12:36:45 +00:00
Ben Moon
716bae7baa
Add Wikipedia as source
2016-02-27 11:14:20 +00:00
Ben Moon
b79f825e81
Add more triggers for decode information
2016-02-27 11:05:36 +00:00
Ben Moon
43c739ad02
Ignore case when matching decode query
2016-02-27 11:02:40 +00:00
Ben Moon
731477e822
Move actual cipher out of handler
2016-02-27 10:52:31 +00:00
Ben Moon
32f18a8cc4
Add tests for decode information
2016-02-27 10:46:02 +00:00
Ben Moon
e8ac68e2a7
Add Caesar cipher description triggering
2016-02-27 10:35:12 +00:00
Zaahir Moolla
a23f42cbf4
Merge pull request #2628 from duckduckgo/gd/kana-silence
...
Silence Kana warning
2016-02-26 17:00:45 -05:00
Ben Moon
7cfb956267
Silence Kana warning
...
Fixes #2380
2016-02-26 20:52:14 +00:00
Ben Moon
b21be8a05f
Improve handling of ignored components
...
Allows multiple categories to have the same ignored components - instead
of overriding them as before.
2016-02-26 20:38:29 +00:00
Zaahir Moolla
8dab17c25e
Merge pull request #1982 from Mailkov/diceissue1163
...
Issue #1163 - Convert Dice to use templates
2016-02-25 14:54:54 -05:00
Zaahir Moolla
032cc4fbd7
Merge pull request #1950 from Mailkov/issue1934
...
Fix #1934 - Rubiks Cube Patterns: Show all patterns for "rubics cube patterns", add images to results
2016-02-24 22:23:55 -05:00
Ben Moon
54af020926
Remove alias test from main file
2016-02-24 21:29:55 +00:00
Mailkov
8ea250489e
fix tests
2016-02-24 16:57:15 +00:00
Mailkov
35018f7143
fix graphic review
2016-02-24 16:00:37 +00:00
Ben Moon
b4031a1fc0
Revert "Fix YAML::XS update issue (temporary)"
2016-02-23 16:20:37 +00:00
Rob Emery
503dc9d911
Merge pull request #2060 from GuiltyDolphin/datemath-improvements
...
DateMath: Improvements
2016-02-21 12:25:46 +00:00
Ben Moon
530563137b
Fix YAML::XS update issue (temporary)
...
Fixes an issue that arises with v0.61 of YAML::XS.
Does not change any behavior.
2016-02-21 11:19:43 +00:00
sagarwal
f5f9c0f15f
Beam me up, Scotty!
2016-02-21 02:32:57 +00:00
Rob Emery
ba0e5dcfc4
Conversions: Implementing maximum value of 1E100
2016-02-20 20:19:50 +00:00
Rob Emery
46f10c3f4a
Conversions: Fixing template
2016-02-20 20:19:09 +00:00
Rob Emery
1e19168df3
Conversions: Scaffolding for template
2016-02-20 20:19:09 +00:00
Rob Emery
8e902e39ff
Conversions: Switching output to text template
2016-02-20 20:19:09 +00:00
tagawa
dab4ed2eff
Security addons: Added Vivaldi to browser list
2016-02-19 08:05:13 +00:00
Ben Moon
8e66f97fc6
Replace 'JSON::XS' with 'JSON::MaybeXS'
2016-02-18 16:40:39 +00:00
Ben Moon
78443c321b
Update use of 'JSON' to 'JSON::XS'
2016-02-18 12:48:02 +00:00
Zaahir Moolla
a952adc749
Merge pull request #1970 from GuiltyDolphin/piglatin-trigger-fix
...
PigLatin: Update to use templates
2016-02-17 11:54:23 -05:00
Ben Moon
6931761844
Allow for currently unassigned categories
2016-02-17 11:25:40 +00:00
Ben Moon
620f0a051c
Add support for 'ignore' option
...
Fixes #1528
2016-02-17 11:17:14 +00:00
Ben Moon
3e212d11c0
Move ID check into loop
2016-02-17 09:48:19 +00:00
Ben Moon
170eee5b36
Replace 'YAML' with 'YAML::XS'
2016-02-17 09:43:55 +00:00
Ben Moon
b951b103bd
Remove JSON import
...
Already using JSON::XS
2016-02-16 19:38:27 +00:00
Ben Moon
fb72ef5091
Replace 'Load' with 'LoadFile'
2016-02-16 17:54:47 +00:00
Zaahir Moolla
1a3faee8e4
Merge pull request #2296 from swapagarwal/improve-bitsum
...
Bitsum: Fixes #1902
2016-02-15 17:50:15 -05:00
Zaahir Moolla
1fffcaeb14
Merge pull request #2298 from duckduckgo/pr/1924
...
Pr/1924
2016-02-15 17:32:29 -05:00
Zaahir Moolla
58a8f00e7b
Cleanup comment alignment
2016-02-15 17:06:44 -05:00
Zaahir Moolla
90174a5bd4
fix template, define regex once, cleanup indents
2016-02-15 17:02:07 -05:00
Ben Moon
49da10c136
Merge pull request #2264 from Mailkov/issue2239
...
Parsecron: adding support for start + interval arguments
2016-02-15 19:51:38 +00:00
sagarwal
8b00a066a3
Improve subtitle text layout
2016-02-15 19:29:52 +00:00
Ben Moon
442d7ef07a
Move triggers and template maps into YAML
2016-02-15 19:19:25 +00:00
Zaahir Moolla
cf7901ddb0
Merge pull request #1965 from duckduckgo/mintsoft/template/abc
...
Switching ABC to text template
2016-02-15 14:18:54 -05:00
sagarwal
507935e74b
Improve layout to include base
2016-02-15 18:18:26 +00:00
Ben Moon
46d571e296
Update handle to use 'query'
...
For normalized white-space.
2016-02-15 18:09:30 +00:00
Ben Moon
cd1cba2187
Improve lookup method
...
Triggers now map to template types and/or files, rather than categories.
This means that a **direct** lookup can be used, rather than having to
iterate through an array of categories.
2016-02-15 18:04:30 +00:00
Zaahir Moolla
1c858b959e
Merge pull request #1916 from Mailkov/issue1786
...
Fix #1786 - Frequency Spectrum: Convert to use templates + JS
2016-02-15 12:26:59 -05:00
Ben Moon
9edeb02b09
Update 'matched_trigger' normalizing
2016-02-15 17:06:54 +00:00
Ben Moon
6941f2ab05
De-ref 'trigger_lookup'
2016-02-15 17:04:40 +00:00
Zaahir Moolla
593f4c1f7d
Merge pull request #1961 from Mailkov/convertlatlonissue1163
...
Issue #1163 - Convert ConvertLatLon to use template
2016-02-15 11:09:27 -05:00
Zaahir Moolla
4ef141564c
Merge pull request #1981 from Mailkov/dessertissue1163
...
Issue #1163 - Convert Dessert to use templates
2016-02-15 11:03:42 -05:00
Ben Moon
038c335347
Improve naming
2016-02-14 20:31:18 +00:00
Ben Moon
7bb3e709f0
Remove hash check
...
It's always a HASH! Forgot about that, but yeah, because you *cannot*
specify that the name isn't required, there is no ambiguity - a name
must always be present :)
2016-02-14 20:18:30 +00:00
Ben Moon
53ed499a4a
Remove support for trigger options
...
Not providing enough good use cases at the moment.
2016-02-14 20:08:17 +00:00
Ben Moon
2df91bb5c1
Move category generation in with aliases
...
So it doesn't have to be computed at 'run time'.
2016-02-14 19:54:21 +00:00
Ben Moon
3a2126e83d
Update handling of whitespace in trigger
2016-02-14 19:03:27 +00:00
Ben Moon
a55321667e
Merge 'generate_triggers' and 'make_all_triggers'
...
They were both part of the same work.
2016-02-14 18:49:56 +00:00
Ben Moon
d346ba7db2
Correct lookup casing
2016-02-14 18:43:06 +00:00
Ben Moon
eada77586e
Remove some redundant code
2016-02-14 17:21:46 +00:00
Ben Moon
901c373479
Remove 'standard' triggers
...
No longer needed due to selection based on ID.
2016-02-14 17:21:13 +00:00
Ben Moon
1a8e422f1c
Simplify trigger handling
...
Hopefully...
2016-02-14 16:58:57 +00:00
Ben Moon
5ce28ee927
Remove trigger normalizing
...
Can merge it into the main generator.
2016-02-14 16:37:13 +00:00
Rob Emery
cdf6954ab7
Merge pull request #2047 from GuiltyDolphin/conversions-sci-notation
...
Conversions: Fix #2041
2016-02-14 16:23:06 +00:00
Ben Moon
4b4c2a1740
Add category map support
...
Maps from templates to categories - should help reduce trigger
redundancy.
2016-02-14 15:01:54 +00:00
Ben Moon
982295cfb6
Add 'full_match' option
...
Determines whether the remainder of the query must be empty for the
trigger to match
2016-02-14 15:01:54 +00:00
Ben Moon
a49e6315b4
Allow more flexibility with custom triggers
...
Uses a hash with the file and options rather than just a file name.
2016-02-14 15:01:54 +00:00
Ben Moon
7b87770d1a
Allow disabling of trigger from hash
2016-02-14 15:01:54 +00:00
Ben Moon
58073764e0
Fix warning when no triggers were enabled
...
If you had something like
```
"id": {
"start": {
"trigger": 0
}
}
```
It would cause warnings from DDG trigger handling.
2016-02-14 15:01:54 +00:00
Ben Moon
a99c3ded21
Fix issue with custom non 'startend's
...
Additional triggers were behaving a bit... Oddly.
2016-02-14 15:01:54 +00:00
Ben Moon
4326c965ce
Improve handling of standard queries
...
No messing around this time - just straight up checking against
supported categories.
2016-02-14 15:01:54 +00:00
Ben Moon
cf82be37c2
Rewrite handling of custom triggers
...
Uses a (hopefully) much more efficient system for handling custom
triggers.
2016-02-14 15:01:54 +00:00
Ben Moon
2b91c551ca
Update CheatSheets to use hash triggers
2016-02-14 15:01:54 +00:00
Ben Moon
3ad96d129e
Die when an unknown category is specified
2016-02-14 15:01:54 +00:00
Ben Moon
1171aa6488
Improve formatting
2016-02-14 15:01:54 +00:00
Ben Moon
d80a31b1b0
Move additional triggers to triggers file
...
And reduce some code as per these changes.
2016-02-14 15:01:54 +00:00
Ben Moon
fa72a01fcd
Move standard triggers into JSON file
2016-02-14 15:01:54 +00:00
Ben Moon
65ed06f4ed
Improve death message on duplicate aliases
2016-02-14 15:01:54 +00:00
Ben Moon
d67c679fee
Clean up options setter
2016-02-14 15:01:53 +00:00
Ben Moon
c6a2f3b069
Remove List::Util dependency
2016-02-14 15:01:53 +00:00
Ben Moon
ccc1ef35cc
Remove redundant 'cheat_names_equal' sub
2016-02-14 15:01:53 +00:00
Ben Moon
67d059e25d
Clean up 'add_triggers' sub
2016-02-14 15:01:53 +00:00
Ben Moon
e2534309e7
Remove List::MoreUtils dependency
2016-02-14 15:01:53 +00:00
Ben Moon
c43a750f61
Fix issue with undefined triggers
2016-02-14 15:01:53 +00:00
Ben Moon
ea5836c04e
Move triggers into separate json file
2016-02-14 15:01:53 +00:00
Ben Moon
a79d4674af
Add additional triggers for 'code'
...
'syntax', 'methods', and 'functions'.
2016-02-14 15:01:53 +00:00
Ben Moon
6544491be5
Improve name collision detection
2016-02-14 15:01:53 +00:00
Ben Moon
31fe740300
Remove alias warning from main Goodie
...
Don't need to duplicate the warning with the tests.
2016-02-14 15:01:53 +00:00
Ben Moon
f04b3d3dc5
Assume name required for triggers by default
2016-02-14 15:01:53 +00:00
Ben Moon
354fd1561a
Allow non-array triggers
...
More in-line with the actual trigger system
2016-02-14 15:01:53 +00:00
Ben Moon
6eb7cd33b8
Demote alias of file name to warning
...
I think there will be times when having this duplication will be
necessary, such as when the file name keeps changing!
2016-02-14 15:01:53 +00:00
Ben Moon
4fae8f769b
Add 'math' category
...
For equations.
2016-02-14 15:01:53 +00:00
Ben Moon
24284a6a8d
Improve formatting
2016-02-14 15:01:53 +00:00
Rob Emery
164b68861e
ABC: adding html_enc to output for the encoding bug
2016-02-13 20:23:31 +00:00
Rob Emery
d3363049f1
ABC: Switching to text template
2016-02-13 20:23:31 +00:00
Rob Emery
82c5172034
ABC: Switching to text template
2016-02-13 20:22:24 +00:00
Rob Emery
69c8c725c6
ABC: adding html_enc to output for the encoding bug
2016-02-13 20:20:08 +00:00
Rob Emery
a1be284d44
ABC: Switching to text template
2016-02-13 20:20:07 +00:00
Rob Emery
adb153ef0f
ABC: Switching to text template
2016-02-13 20:20:07 +00:00
Zach Thompson
de13ae2746
Remove Ascii which has been replaced by Bin2Unicode
2016-02-12 11:54:20 -07:00
Zaahir Moolla
67972ea88a
Merge pull request #2272 from Mailkov/warningunixtime
...
UnixTime - Fixes Use of uninitialized value $+{"trigger"}
2016-02-12 12:59:11 -05:00
Mailkov
d426d03b64
fix use of initialized value
2016-02-12 16:27:46 +00:00
Ben Moon
1361fef76b
Encode title
...
Using html_enc for title too.
2016-02-12 15:00:11 +00:00
Ben Moon
b905d90634
Remove imperative trigger
...
Should not trigger on 'piglatin X'.
2016-02-12 14:51:27 +00:00
Ben Moon
34e241c9e6
Improve clarity of 'use_paragraphs' attribute
...
Make it clearer that it is a boolean value by using just 1 and 0.
2016-02-12 14:19:13 +00:00
ilv
32b5c23929
Merge branch 'master' of https://github.com/duckduckgo/zeroclickinfo-goodies into fix_latex_sum
2016-02-12 13:14:47 +00:00
Zaahir Moolla
103d9dc389
Merge pull request #1985 from Mailkov/teredoissue1163
...
Issue #1163 - Convert Teredo to use templates
2016-02-12 00:26:17 -05:00
Zaahir Moolla
ffcc97f303
Merge pull request #2045 from duckduckgo/zt/bin2unicode
...
Binary to unicode converter
2016-02-12 00:20:04 -05:00
ilv
9dc03e6c46
Added missing underscore in Latex sum example
2016-02-12 05:14:03 +00:00
Zaahir Moolla
2482acc0e8
Switch tabs to spaces
2016-02-11 23:57:45 -05:00
Zaahir Moolla
2230788ab9
Merge pull request #1963 from cngarrison/minecraft-triggering
...
Minecraft: Fixes #1949
2016-02-11 23:56:15 -05:00
Zaahir Moolla
c9319840d6
Merge pull request #1990 from Mailkov/reverseresistorcoloursissue1163
...
Issue #1163 - Convert ReverseResistorColours to use templates
2016-02-11 23:28:18 -05:00
Zaahir Moolla
00dbfe9963
Merge pull request #2267 from duckduckgo/pr/1017
...
Continue #1017
2016-02-11 19:00:49 -05:00
Zaahir Moolla
882957cea2
Remove comments
2016-02-11 18:46:03 -05:00
Zaahir Moolla
2e544c476f
Simplify weights hash
2016-02-11 18:45:43 -05:00
Zaahir Moolla
907ad3a5e0
Add max weight limit
2016-02-11 18:37:24 -05:00
Zaahir Moolla
0b76d356cd
Remove Perl metadata, handled by IA Page
2016-02-11 18:27:36 -05:00
Zaahir Moolla
14d238f042
Merge pull request #2262 from GuiltyDolphin/remove-metadata
...
Remove Metadata
2016-02-11 16:41:56 -05:00
Zaahir Moolla
2e8dd988b0
Merge pull request #1991 from Mailkov/figletissue1163
...
Issue #1163 - Convert FIGlet to use templates
2016-02-11 15:22:16 -05:00
Mailkov
1d9a8df404
delete unused code
2016-02-11 18:47:05 +00:00
Mailkov
f30a827950
make unique sub to solve x/y argument
2016-02-11 18:22:56 +00:00
Mailkov
724fad5bc8
add support for start + interval arguments on weekday
2016-02-11 18:01:30 +00:00
Mailkov
cd5dd0470a
add support for start + interval arguments on month
2016-02-11 17:57:04 +00:00
Mailkov
6a3f4b9f33
add support for start + interval arguments on date
2016-02-11 17:51:28 +00:00
Mailkov
bc970a643e
add support for start + interval arguments on minutes
2016-02-11 17:42:03 +00:00
Mailkov
0eff1575b9
addgsupport for start + interval arguments on hours
2016-02-11 17:25:25 +00:00
Ben Moon
46b19a54a7
Remove metadata
2016-02-11 13:36:11 +00:00
tyasaka
a2744b6c79
Minor tweaks.
...
Adjusted wording, added test cases.
Changes to be committed:
modified: lib/DDG/Goodie/UltimateAnswer.pm
modified: t/UltimateAnswer.t
2016-02-07 23:14:32 +00:00