Commit Graph

9016 Commits (e6810b754c66baf8cc155981f74459d21befd418)

Author SHA1 Message Date
Rob Emery e6810b754c HTMLEntitiesDecode: Fixing the actual display; content isn't required for the Text template; also removing html_enc so that things are displayed correctly 2016-05-16 21:02:29 +01:00
Rob Emery 07ecf6867a HTMLEntitiesDecode: Adding build_test to wrap the test_zci calls 2016-05-16 21:02:29 +01:00
Rob Emery 26ffa0d976 HTMLEntitiesDecode: Swapping out regexes on title for actual test values 2016-05-16 21:02:29 +01:00
Rob Emery 4d46a1e103 HTMLEntitiesDecode: Converting to Text Template 2016-05-16 21:02:28 +01:00
Ben Moon 3b32b27bc8 LeetSpeak: Convert to Text Template (#3073)
LeetSpeak: Converting to Text Template
2016-05-16 19:52:13 +01:00
Rob Emery 7e3ce87792 Merge pull request #3074 from duckduckgo/gd/update-tests-any-re
Tests: Update Goodies to use Test::Deep
2016-05-16 17:39:49 +01:00
Ben Moon 83b9bbd6b7 Fix newline at end of file 2016-05-16 14:19:39 +01:00
Ben Moon 5f85cf4121 Update Goodies to use Test::Deep
* Ensure Test::Deep is imported.

* Replace '-ANY-' with ignore()

* Replace regexes with re(...)
2016-05-16 14:07:57 +01:00
Rob Emery 6a201a5ece LeetSpeak: Converting to Text Template 2016-05-16 13:20:45 +01:00
Rob Emery f4119f7fbf LeetSpeak: Updating tests for text template 2016-05-16 13:18:14 +01:00
Ben Moon 8eeddb5c19 Merge pull request #3064 from duckduckgo/mintsoft/GenerateMAC-template
GenerateMAC: Switching to text template
2016-05-15 20:05:22 +01:00
Rob Emery 58ce9b09c9 Fortune: Switching to text template (#3063)
* Fortune: Switching to text template

* Fortune: Adding subtitle and using Test::Deep
2016-05-15 20:01:11 +01:00
Rob Emery 104b963bca GenerateMAC: Switching out to use Test::Deep 2016-05-15 19:22:30 +01:00
Rob Emery 3349534b76 Factors: Convert to text template (#3061) 2016-05-15 18:38:30 +01:00
Rob Emery 49e0d7b186 GenerateMAC: Switching implementation to text template 2016-05-15 18:13:12 +01:00
Rob Emery fb88949c44 GenerateMAC: Switching tests to Test::Deep and text template 2016-05-15 18:12:51 +01:00
Rob Emery 0cc555fe1b HexToDec: Convert to text template (#3054)
* HexToDec: Converting to text template

* HexToDec: Refactoring tests
2016-05-15 17:13:24 +01:00
Rob Emery c2250e1f2a Merge pull request #3046 from NaveenKarippai/typo2937/cssCheatsheet
Fix typo on css cheatsheet
2016-05-15 12:17:25 +01:00
Rob Emery 348df8e526 POTUS: Flipping out to text template (#3053)
* POTUS: Flipping out to text template

* POTUS: Tests should be calling `build_test` :)

* POTUS: Test refactor
2016-05-14 23:32:11 +01:00
Rob Emery 707350bf90 Combination: Switching to text template (#3058) 2016-05-14 23:04:54 +01:00
Rob Emery 0e438ddc08 Uppercase: Converting to text template (#3057) 2016-05-14 22:52:17 +01:00
Rob Emery 6a2fdedbf6 Lowercase: Flipping out to Text template (#3055)
* Lowercase: Flipping out to Text template
2016-05-14 22:46:41 +01:00
Rob Emery ad089234ae Titlecase: Converting to text template (#3056) 2016-05-14 22:44:23 +01:00
Pawan Pal 4abd29f5f9 New wget Cheat sheet (#2471)
* Added wget Cheat sheet
2016-05-14 19:57:41 +01:00
Sebastian Weddmark Olsson e3ee63998c Add f/1 to shell commands (#2962) 2016-05-14 19:23:50 +01:00
Pawan Pal 3bf7aa0731 New youtube-dl cheat sheet (#2465)
* added youtube-dl cheat sheet

* edit name, alias and indentation

* edit source name
2016-05-14 19:18:01 +01:00
Ben Moon da3c7b26c7 Fix test for real numbers (#3049)
Wasn't allowing the case for numbers like `1.3e-7`.
2016-05-14 19:14:43 +01:00
Naveen Karippai af18492b8a Convert simple structured to full template goodie (#3000)
* Convert simple structured 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 way to get goodies using basic templates before they had full template
support.

* change to 'text' template for structured_answer object

* refactored test suite

* added alias and removed encode

See also: Updates FlipText Goodie Re: #2767

IA: https://duck.co/ia/view/flip_text

* Remove unnecessary trigger words on flipText goodie

There were trigger words added to flipText goodie which may not be
used or confuse the search results. This should be removed.

* extra triggers removed

See also: Updates FlipText Goodie Re: #2767

* Indent code on FlipText goodie

It would be easier to eyes in the long run to understand
code when it's properly indented.

* code indented on .pm and .t
2016-05-14 19:00:12 +01:00
Ben Moon e271760377 GreatestCommonFactor: Update tests to use 'build_test' (#3048)
* Update tests to use 'build_test'

* Fix indenting
2016-05-14 18:42:58 +01:00
Roy Kokkelkoren 289948173d GreatestCommonFactor: Use Math::BigInt & change to text template (#2990)
* Removed custom GCD function replaced with library function

* Changed view to text template and updated tests

* Cleanup of tests and removed unnecessary code
2016-05-14 18:28:04 +01:00
nkarippai afcbf71591 Fix typo on css cheatsheet
There was a typo on css cheatsheet and this should be fixed.

See also: #2937
2016-05-14 12:24:38 +00:00
Naveen Karippai 6df517e87a Convert RandomNumbers to full template goodie (#3014)
* Convert RandomNumbers to full template
2016-05-14 12:17:47 +01:00
Zach Thompson 5ec54f0809 Merge pull request #3018 from duckduckgo/gd/cheat-sheets-verify-meta
CheatSheets: Add check for IA page existence
2016-05-13 14:01:10 -06:00
Ben Moon d115e04a95 Add check for IA page existence
We check to make sure that an IA page with the correct ID exists.
2016-05-13 18:28:31 +01:00
Daniel Davis 03c4ca7120 Merge pull request #3001 from harisphnx/c_goodie
C cheat sheet: Re-arranged operators according to precedence (fixes #2938)
2016-05-13 09:53:45 -07:00
Vikash Verma 1695ba5fd0 Update IA ID and aliases (#3039) 2016-05-13 13:00:34 +01:00
Zaahir Moolla 58eeb27ea5 Merge pull request #2811 from lamanh/fix_2771
Braille: fix for bad triggers #2771
2016-05-12 15:51:46 -07:00
Zaahir Moolla 7bc4b07af8 Merge pull request #2177 from kedarbramhe/evil-mode-cheat-sheet
added cheat sheet for evil-mode for emacs
2016-05-12 14:50:46 -07:00
Zach Thompson 1c7e2cca44 Merge pull request #2777 from duckduckgo/gd/cheatsheets-add-ignore
CheatSheets: Add 'ignore' attribute
2016-05-12 14:23:38 -06:00
Ben Moon aedf7ea3f5 Improve efficiency of removing ignore phrases
Thanks to @zachthompson for the algorithm (much faster).
2016-05-12 20:48:37 +01:00
Ben Moon e44920542d Switch to lc handler
So we don't need to normalize later.
2016-05-12 20:40:00 +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