Commit Graph

2496 Commits (ae0ae151154f22e36ea55db6f59e37183a5da336)

Author SHA1 Message Date
Russell Holt ae0ae15115 Merge pull request #630 from duckduckgo/mwmiller/easier_css
Goodie CSS Changes.
2014-09-12 00:48:40 -04:00
Matt Miller a6a5d9ffbb ResistorColors/ColorCodes: update new selector names.
Changed to be a bit less generic at the behest of @russellholt
2014-09-11 17:37:13 -04:00
Matt Miller eb93246657 ColorCodes.t: test to see if we styled in the correct background.
With the full test below of where the background styling takes place,
this should be sufficient to ensure that we haven't made any wildly
wrong code changes.
2014-09-10 18:33:05 -04:00
Matt Miller e18062e177 ResistorColors: move from inline CSS. 2014-09-10 17:33:33 -04:00
Matt Miller 4a24d5165b ColorCodes: move from inline css 2014-09-10 17:33:32 -04:00
Matt Miller b7517fd6d9 UltimateAnswer: move from inline css 2014-09-10 17:28:30 -04:00
Matt Miller 8eabfe0c35 UltimateAnswer: remove trailing whitespace. 2014-09-10 17:28:30 -04:00
Matt Miller 2b0f13826e Unifornify: move from inline CSS. 2014-09-10 17:28:30 -04:00
Matt Miller f48a4c8ccc Dice: move from inline CSS. 2014-09-10 17:28:30 -04:00
Matt Miller 80897ce535 ValarMorghulis: move from inline CSS. 2014-09-10 17:28:30 -04:00
Matt Miller 4e7ad3143e SHA: move from inline CSS. 2014-09-10 17:28:30 -04:00
Matt Miller ebd15f598a Move goodies to new styling mechanism.
- Rename 'style.css' to appropriate ID-based name.
- Remove explicit inclusion of CSS, as it will now be auto-included.
- Update tests which explicitly checked for styling.
2014-09-10 17:28:30 -04:00
Matt Miller b391fe3204 Merge pull request #625 from mwmiller/color_sanity
ColorCodes: simplify and comment a bit.
2014-09-10 17:24:22 -04:00
Rob Emery 18b89d8870 Merge pull request #629 from mwmiller/date_math
DateMath: properly recognize and handle weeks.
2014-09-10 17:32:40 +01:00
Matt Miller 5faf30c129 DateMath: properly recognize and handle weeks.
Fixes #628.
2014-09-10 08:27:54 -04:00
Matt Miller 7ace24facb ColorCodes: rough in a different HTML template.
Real templates are coming, but this is a step.
2014-09-09 18:54:38 -04:00
Matt Miller ce92e69d7d ColorCodes: allow for rgb #123456-style queries 2014-09-09 18:23:13 -04:00
Matt Miller c84f0464d2 ColorCodes: simplify and comment a bit.
- Simplify logic and increase explanation to make it easier
  for the casual reader.
- Remove the undocumented, untested and not-clearly-working
  "percentage" support.
- Replace `eval` with `try`, as is my wont.

Addresses #620.
2014-09-09 11:36:10 -04:00
Rob Emery 59de8f3a87 Merge pull request #623 from mwmiller/mo_dates_mo_problems
DatesRole: support standard output of date(1) & RFC 2822
2014-09-07 23:47:55 +01:00
Matt Miller 17fc1447c9 DatesRole: add RFC2822 support. 2014-09-07 18:36:48 -04:00
Matt Miller 97f737e0be DatesRole: support standard output of date(1).
- Convert to ISO-8601 for the parse.
- Support short month to number in service of above.
- Support TZ to UTC offset in service of above.

In cases where the TZ abbreviation was ambiguous I selected what I
deemed to be the most populous or most likely to be a DDG user's intent.
I may, of course, be wrong.

Fixes #621.
2014-09-07 17:42:03 -04:00
Matt Miller f101ef6ebf Merge pull request #615 from duckduckgo/mintsoft/binary_logic
Fixing up BinaryLogic
2014-09-05 18:03:18 -04:00
Jag Talon 3b1ada5652 Merge pull request #612 from mwmiller/codewords
ColorCodes: treat "code" as semantic noise.
2014-09-05 17:32:31 -04:00
Zaahir Moolla 859f7e776d Merge pull request #614 from duckduckgo/mintsoft/workdays_between
Extending Dates Role's Vague String handling & Fixing #346
2014-09-04 16:40:42 -04:00
Zaahir Moolla ff280e81c5 Merge pull request #605 from exoWM/master
Hitchhiker's Guide Easter egg IA
2014-09-04 16:12:14 -04:00
exoWM 2454317609 Fix tests 2014-09-02 22:17:51 +00:00
Rob Emery b1a76cfbdc BinaryLogic: Supporting Binary; thanks for the input @killerfish ! 2014-09-02 23:05:31 +01:00
exoWM 60b19df902 Fix tests 2014-09-02 22:00:44 +00:00
exoWM 88194ec282 Fix mistakes 2014-09-02 21:33:54 +00:00
exoWM 6c9097dd61 Merge branch 'master' of github.com:exowm/zeroclickinfo-goodies
Conflicts:
	lib/DDG/Goodie/UltimateAnswer.pm
	t/UltimateAnswer.t
2014-09-02 21:30:35 +00:00
exoWM ad644ffb8e Ultimate Answer Formatting 2014-09-02 21:25:38 +00:00
Matt Miller e4382bdd7b CalendarToday: simplify conditional a bit. 2014-09-01 14:58:29 -04:00
Matt Miller 02f82a7668 DatesRole: comment on descriptive matches 2014-09-01 14:54:09 -04:00
Matt Miller f2ebf9006e DatesRole: switch in || for //.
Requested change to make the syntax more familiar. We shouldn't have any
valid false-y values, so this should be equivalent.
2014-09-01 09:00:45 -04:00
Matt Miller 73ccf7282e DatesRole: complete deprecation cycle.
- Deprecate 'parse_all_strings_to_date()' in favor of
  'parse_all_datestrings_to_date()' for consistency.
- Remove the deprecated functions.
- Update all calls.
2014-08-31 19:21:55 -04:00
Rob Emery d4365ffa2f BinaryLogic: Removing debugging info 2014-08-31 23:00:48 +01:00
Rob Emery d73aefbd46 BinaryLogic: Fixing layout with tests 2014-08-31 22:58:06 +01:00
Rob Emery cfa99f8915 BinaryLogic: Fixing order of presidence 2014-08-31 21:51:35 +01:00
Matt Miller 3503faccca DateMath: expand query-space with datestring_regex(). 2014-08-31 16:36:40 -04:00
Matt Miller 5f9ab6573f DaysBetween: expand query-space like WorkdaysBetween. 2014-08-31 16:36:40 -04:00
Matt Miller 4af3339501 00-roles.t: Update test output message. 2014-08-31 16:36:40 -04:00
Matt Miller 8b38680560 DatesRole: simplify parse_datestring_to_date.
Since they guard their own inputs and return undef in case of failure,
we can just let them each try until we either get something or not.

Anchoring the guards makes sure we can tell descriptive from formatted.
2014-08-31 16:36:40 -04:00
Matt Miller 02c114607d CalendarToday: Simplify with dates role changes. 2014-08-31 16:36:40 -04:00
Rob Emery dd02261d1d DatesRole: Switching parse_all_strings_to_date to use parse_datestring_to_date 2014-08-31 21:17:23 +01:00
Rob Emery d7b2ab8df0 WorkdaysBetween: Switching to use new cleaner datestring_regex 2014-08-31 20:04:32 +01:00
Rob Emery f47900f5fc DatesRole: Moving the deprecated stuff out of the way for now 2014-08-31 19:59:35 +01:00
Rob Emery ab0fdb6b04 DatesRole: Switching tests to use new parse_datestring_to_date 2014-08-31 19:42:45 +01:00
Rob Emery ce0880b158 DatesRole: renaming and deprecating parse_string_to_date 2014-08-31 19:39:37 +01:00
Rob Emery 0363431437 DatesRole: fleshing out new behaviour of parse_string_to_date 2014-08-31 19:34:09 +01:00
Rob Emery 5701ac4322 DatesRole: Added failing tests to layout desired behaviour of parse_string_to_date 2014-08-31 19:31:39 +01:00