Commit Graph

1056 Commits (53317244bcb2bcf487fba4754ff92b2b89827423)

Author SHA1 Message Date
Matt Miller 31e99b9370 UnixTime: remove `time` trigger.
This eliminates the conflict with the preferred W|A answer.

Addresses #607.
2014-09-12 08:33:52 -04:00
Matt Miller a71a6132a9 UnixTime: update output to include the epoch.
This is in service to some submarine commits which will be arriving soon
to deal with Goodies templating.  This makes UnixTime look "more like it
will" in addition to supplying what we determined to be the supplied
epoch.

This is most useful in the "empty" epoch case where we will tell them
the current epoch which may be of interest.
2014-09-12 08:33:52 -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 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 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
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 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 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 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 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 02c114607d CalendarToday: Simplify with dates role changes. 2014-08-31 16:36:40 -04:00
Rob Emery d7b2ab8df0 WorkdaysBetween: Switching to use new cleaner datestring_regex 2014-08-31 20:04:32 +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 5701ac4322 DatesRole: Added failing tests to layout desired behaviour of parse_string_to_date 2014-08-31 19:31:39 +01:00
Rob Emery 03632703fb DatesRole: Switching invalid string tests from parse_string_to_date to parse_formatted_datestring_to_date 2014-08-31 19:15:46 +01:00
Rob Emery fbc38176b3 DatesRole: Adding tests for the formatted_datestring_regex and switching existing tests to use it versus the date_regex() 2014-08-31 19:08:50 +01:00
Rob Emery 35137b382c DatesRole: Adding tests for new datestring_regex methods and renaming existing regex 2014-08-31 19:04:43 +01:00
Rob Emery 2e2cf20c14 BinaryLogic: Commenting out failing test until I can figure out why 2014-08-30 22:34:58 +01:00
Rob Emery e6034d147b BinaryLogic: Harmonising the test format 2014-08-30 22:22:40 +01:00
Rob Emery ac5d4acb83 Removing Xor, superceded by BinaryLogic 2014-08-30 21:55:49 +01:00
Rob Emery 9c533d5ac9 BinaryLogic:minor cleanup 2014-08-30 21:55:15 +01:00
Rob Emery 44518a7823 BinaryLogic: Original version by @bpaschen 2014-08-30 21:50:28 +01:00
Rob Emery 080df14e70 WorkdaysBetween: Using new DatesRole functionality to fix https://github.com/duckduckgo/zeroclickinfo-goodies/issues/346 2014-08-30 21:19:59 +01:00
Rob Emery cc7d545985 Merge pull request #610 from syst3mw0rm/master
WeekdayBetween : pretty output
2014-08-30 20:49:53 +01:00
Rob Emery 2f1f6e1b85 DatesRole: Adding support for "jan 1st" "13 march" to vague 2014-08-30 20:48:45 +01:00
Aamir Khan d7b9dce9b9 apparently I couldn't see two spaces! 2014-08-30 20:52:17 +05:30
Aamir Khan eae1a30658 ahh, missed th output format 2014-08-30 20:31:49 +05:30
Matt Miller 0f605ded7e Merge pull request #594 from duckduckgo/jag/format
Format CalcRoots, Password, and RandomNumber.
2014-08-30 09:37:32 -04:00