Commit Graph

2279 Commits (52f0a1aec3cd4019900ab8d4df3cc828c9abe755)

Author SHA1 Message Date
Rob Emery 52f0a1aec3 Merge pull request #601 from mwmiller/scroll-spam
Fix minor code layout issues.
2014-08-20 20:38:51 +01:00
Matt Miller 5481cf4ebc Fix minor code layout issues.
Reducing scroll spam from dzil by:

- Providing ABSTRACTs for all packages.
- Leaving VERSION vertical space where necessary.

Addresses #600 plus other annoyances in the process.
2014-08-20 14:45:33 -04:00
Matt Miller 7f14010a46 Merge pull request #574 from duckduckgo/zaahir/fliptext-utf8
simplify FlipText Goodie using Text::UpsideDown
2014-08-20 12:25:22 -04:00
Zaahir Moolla 4c170fa4ec reorder return logic 2014-08-20 15:18:51 +00:00
Rob Emery d33211838d Merge pull request #599 from duckduckgo/jag/divisors
Newest v. of Math::Prime::Util renamed all_factors to divisors.
2014-08-19 19:09:51 +01:00
jagtalon 169105ac62 Newest v. of Math::Prime::Util renamed all_factors to divisors.
Changing the name should make all the tests pass again.
2014-08-19 17:17:34 +00:00
Jag Talon b2ba0df3bc Merge pull request #596 from mwmiller/perl_520
VIN: remove "Useless use of greediness modifier"
2014-08-19 11:15:51 -04:00
Matt Miller 2631dcdd45 VIN: remove "Useless use of greediness modifier"
Perl 5.20 generates a warning on this which cascades into a failure in
our environment.
2014-08-19 11:01:08 -04:00
Jag Talon 6f826aacc3 Merge pull request #589 from exoWM/master
Fixes overflow error by adding 'using bigint;'
2014-08-18 18:39:03 -04:00
Jag Talon 6b667ccede Merge pull request #586 from mwmiller/small_calc
Calculator: better display for very small floats.
2014-08-18 18:07:26 -04:00
Jag Talon 5f1c351cde Merge pull request #562 from duckduckgo/jd/closed_goodies
Release closed source goodies
2014-08-18 17:42:14 -04:00
Jason 807c38a20d Fixing capitalization and overflow 2014-08-15 19:06:22 -04:00
Jason 8fc05b7600 Fixing capitalization and missing ')' 2014-08-15 18:52:08 -04:00
Jason 407002279b Fixing capitalization and missing ')' 2014-08-15 18:23:20 -04:00
exoWM 2f588a6a8a Fixing capitalization errors 2014-08-15 22:06:57 +00:00
exoWM 41372756a0 Merge branch 'master' of github.com:exowm/zeroclickinfo-goodies
Conflicts:
	t/Base.t
2014-08-15 22:05:10 +00:00
exoWM f1e79bb5b3 Fixed capitalization errors in Base.t 2014-08-15 22:03:29 +00:00
Rob Emery e40769965e Merge pull request #587 from duckduckgo/jag/autodie
TravisCI: duckpan DDG fails with old version of autodie.
2014-08-15 18:54:57 +01:00
Rob Emery da02ea557c Merge pull request #590 from duckduckgo/jag/css-comment
Calculator: Actually remove the color declaration.
2014-08-15 18:48:46 +01:00
Jason 68743342dc Update Base.t 2014-08-15 12:40:25 -04:00
exoWM f10c62743d Added tests for overflows in case of a roll back. 2014-08-15 16:20:33 +00:00
Jag Talon f70f7b6d66 Calculator: Actually remove the color declaration. 2014-08-15 12:13:11 -04:00
Jag Talon 48ea5bc032 Merge pull request #580 from mwmiller/UPPERCASE
Uppercase: switch triggers to "start"-only.
2014-08-15 11:09:21 -04:00
Rob Emery 16fde70158 Merge pull request #588 from gdrooid/patch-1
Anagram: Fix XSS
2014-08-15 12:54:05 +01:00
Dani 1c52504734 Update Anagram.pm 2014-08-15 01:59:44 +02:00
Jason c9b8e7ab79 Fixes overflow error by adding 'using bigint;' 2014-08-14 19:40:51 -04:00
exoWM cfe30ef252 Fixes the overflow issue by adding 'use bigint;' 2014-08-14 23:32:12 +00:00
Dani 85bdae6591 Anagram: Fix XSS
Sorry... I messed up this one too. Please, test it before merging -- I'm in the US (wooo!) and I have a very crappy laptop.
2014-08-15 00:36:11 +02:00
jagtalon 75e00ed0c8 TravisCI: duckpan DDG fails with old version of autodie.
utf8::all bails out when autodie is < 2.11. Adding cpanm autodie will pull in the latest version and duckpan DDG should work for Perls 5.1 and 5.16 then.
2014-08-14 19:54:13 +00:00
Matt Miller aa150cf685 Calculator: better display for very small floats.
With the addition of the number styling role, we've improved the output
for very small floats.  We don't need to round them any longer, since
they produce comprehensible display values and don't break anything.
2014-08-14 08:54:33 -04:00
Rob Emery 3eb97e456e Merge pull request #585 from mwmiller/bangalator
Calculator: fix bangful query result. Ping @jagtalon
2014-08-13 13:21:50 +01:00
jdorweiler 42982b1daf update tests and remove zci type => E 2014-08-12 16:38:50 -04:00
Matt Miller 4d28815513 Calculator: remove ! from trigger regex.
There appears to be no value in this beingincluded and it makes things
evaluate incorrectly, so we'll just remove it.
2014-08-12 15:00:05 -04:00
Matt Miller 2553c532f9 Calculator: guard against empty string as non-result.
Eval of '! + 1' returns an empty string, so we'll make it less likely
for that to happen (by not initializing tmp_result to an empty string)
and guard against it if it still does.

Of course, this shouldn't trigger on '! + 1', so that still needs to be
resolved.
2014-08-12 14:35:44 -04:00
Caine Tighe 8ee8e7957d Merge pull request #583 from duckduckgo/caine/md5-xss
DDG::Goodie::MD5: Prevent XSS by encoding HTML entities.
2014-08-12 10:41:51 -04:00
Caine Tighe bc920e33a0 DDG::Goodie::MD5: Prevent XSS by encoding HTML entities. 2014-08-12 10:35:27 -04:00
Matt Miller 56d75336b6 Uppercase: switch triggers to "start"-only.
Since these act like a command, it makes sense to have it at the start
only.  This is also in line with the triggers for the very similar
lowercase IA.

Attempt to address issue #578.
2014-08-10 14:23:48 -04:00
moollaza 874be8d5d6 Add Text::UpsideDown to dist.ini 2014-08-08 15:45:10 +00:00
moollaza 13bd64bc88 simplify FlipText Goodie using Text::UpsideDown, allows better handling of unicode/utf8 2014-08-08 15:39:42 +00:00
Jag Talon 8231b25d23 Merge pull request #569 from duckduckgo/mintsoft/conversion_calcs
Normalizing Number Handling.
2014-08-07 12:02:24 -04:00
Matt Miller a9548a2c31 00-roles.t: switch Test::Most to Test::More.
Test::More is guaranteed to be installed everywhere already.. and we
don't need anything extra from Test::Most, so just switch it back.
2014-08-07 11:29:50 -04:00
Matt Miller 9e14be1a87 NumberStyler: add testing.
This is a port of the previous tests for these functions, updated for
its new status as a role.  I can be convinced that this is not the best
way to do this, but it seems well-enough to me.
2014-08-06 21:14:33 -04:00
Matt Miller d23e695d36 NumberStyle: use match count for commify.
THis makes it easier for the casual reader to understand.  Thanks to
@jagtalon for the suggestion.
2014-08-06 16:53:19 -04:00
Rob Emery bc5983b497 Merge branch 'mintsoft/conversion_calcs' of github.com:duckduckgo/zeroclickinfo-goodies into mintsoft/conversion_calcs 2014-08-06 19:19:21 +01:00
Rob Emery 0adb50b6fe Conversions: fixing bug with "convert 1 cm to 2 mm" 2014-08-06 19:18:54 +01:00
Matt Miller f909cfcd28 NumberStyle: add comment for with_html.
A bit of description as to what it is doing.
2014-08-06 14:08:46 -04:00
Matt Miller d0deb10c9e NumberStyle: default exponential to 'e'.
It's quite possible that this will never change, so o ahead and set the
efault so we don't need to specify it everywhere.
2014-08-06 14:06:27 -04:00
Rob Emery 93fc908a99 Merge branch 'master' into mintsoft/conversion_calcs 2014-08-01 23:37:02 +01:00
Rob Emery 4bbe139964 Merge branch 'mintsoft/conversion_calcs' of github.com:duckduckgo/zeroclickinfo-goodies into mintsoft/conversion_calcs
Conflicts:
	lib/DDG/GoodieRole/NumberStyle.pm
2014-08-01 23:35:39 +01:00
Rob Emery 13f6af99e8 Merge pull request #570 from duckduckgo/jag/encode
Lowercase/Uppercase: Encode the query before injecting to HTML.
2014-08-01 20:06:01 +01:00