Commit Graph

1967 Commits (f1ffdfaab94b56430305f338ab8734406a39a6c5)

Author SHA1 Message Date
youri 6005d6d8a2 Allow 'uptime' trigger at the end 2014-11-09 13:56:28 +00:00
youri 6709d82d71 Simplify expression using map 2014-11-09 13:28:21 +00:00
youri 8c729211ff Turned ne test into eq test 2014-11-09 13:10:35 +00:00
youri ebf1c59ab6 Minor - soft tab i.o. tab (nasty Codio) 2014-11-09 13:09:15 +00:00
youri 1cbd0f2316 - Use DDG::GoodieRole::NumberStyler i.o. Regex:Common
- Test and remove '%' in one operation
2014-11-09 13:06:43 +00:00
youri 55ebb18cd1 Initial commit for "Uptime" goodie 2014-11-07 22:47:36 +00:00
Matt Miller 2a8bd2e1a3 Merge pull request #729 from mwmiller/tautology
Calculator: better guard for no-ops.
2014-11-06 06:15:33 +02:00
jdorweiler e1ff6d6bd0 space 2014-11-05 15:33:49 -05:00
jdorweiler 5071be601e use utf8 2014-11-05 15:22:44 -05:00
Matt Miller 02adf60315 Calculator: better guard for no-ops.
The old gaurd was kinda whacky (and wrong) and inverted all the logic.
So we'll dump out early when we recognize that no operations will be
done.
2014-11-05 00:38:18 +02:00
Rob Emery 4977f969c1 CalendarToday: Adding support for possesives 2014-11-02 22:53:05 +00:00
Rob Emery 64bcbb87db DatesRole: Fixing regression with "next <month>" introduced by dodgey merging 2014-11-02 22:37:47 +00:00
Rob Emery 4bad1f8e67 DatesRole: Fixing regression on singlename months 2014-11-02 22:27:58 +00:00
Rob Emery 0c791b8f20 Merge branch 'master' into mintsoft/relative_dates 2014-11-02 22:24:44 +00:00
Rob Emery 7ee47daa19 Merge pull request #720 from thejdeep/master
Submitting my First Goodie
2014-11-02 19:19:51 +00:00
thejdeep ccbc0ed59c Created my first Goodie
Dummy commit

Removed un-necessary comments

Removed a few comments
2014-11-02 18:27:58 +00:00
Rob Emery 4d9b70faee Merge branch 'master' into mintsoft/relative_dates
Conflicts:
	lib/DDG/GoodieRole/Dates.pm
2014-11-02 13:00:49 +00:00
Matt Miller 6ff7da96bf DatesRole: Use unambiguous date string for month-in-itself.
`month` is numeric, which makes it horribly ambiguous when presented in
that way. With `month_name` there is no doubt.
2014-11-02 12:00:02 +02:00
Zaahir Moolla e32417b3bc Merge pull request #706 from mwmiller/my_time_to_shine
TimezoneConverter: add "my time" support.
2014-10-31 18:33:34 -04:00
Zaahir Moolla 65ff8e0408 Merge pull request #677 from duckduckgo/mintsoft/hiragana
Hiragana
2014-10-31 18:08:09 -04:00
Rob Emery 56f0c7529a Merge branch 'mintsoft/relative_dates' of github.com:duckduckgo/zeroclickinfo-goodies into mintsoft/relative_dates
Conflicts:
	lib/DDG/GoodieRole/Dates.pm
	t/00-roles.t
	t/CalendarToday.t
2014-10-31 21:48:19 +00:00
Zaahir Moolla a66f429cae Merge pull request #714 from jarmokivekas/national-independence
National independence day goodie
2014-10-31 17:10:34 -04:00
Jarmo Kivekas 7998429ccc fix failing independence day tests 2014-10-31 21:38:37 +02:00
Jarmo Kivekas 297b5acf68 add css to independence day answer ouput 2014-10-31 21:19:31 +02:00
Matt Miller 665dd0c3e5 DatesRole: grab $loc info off the calling package.
As one might suspect, the testing is the difficult part with per-instance
"package variables.

I welcome more comprehensive tests, but I don't know that I am up to
creating them.
2014-10-31 18:27:53 +02:00
Rob Emery 8170857b08 DatesRole: making util "nominally private" 2014-10-31 18:27:09 +02:00
Rob Emery f192992a30 DatesRole: Ternaries ftw! 2014-10-31 18:27:09 +02:00
Rob Emery bcb0404d0c DatesRole: Fixing *stupid* mistake in regex 2014-10-31 18:27:09 +02:00
Rob Emery eb745ab474 DatesRole: Removing prototype from util sub 2014-10-31 18:26:31 +02:00
Rob Emery 98d0adb403 DatesRole: refactoring into utility function 2014-10-31 18:26:31 +02:00
Rob Emery 3ca4f6ccf5 DatesRole: Expanding test coverage and first (probably broken) implementation 2014-10-31 18:26:31 +02:00
Rob Emery cf246bb9d4 DatesRole: Adding regex and failing tests for new proseque formats 2014-10-31 18:26:31 +02:00
Rob Emery a99f8a29e7 DatesRole: Tidying up 2014-10-31 18:26:31 +02:00
Rob Emery 6f79f3a123 DatesRole: Clarifying terrible comment 2014-10-31 18:26:31 +02:00
Rob Emery 7c6679b3fb DatesRole: Renaming misleading regex 2014-10-31 18:26:31 +02:00
Rob Emery b6f61ceedb Chinese Zodiac: Adding support for plural vague terms 2014-10-31 18:26:31 +02:00
Matt Miller ab20f6c8e0 DatesRole: add "this" week|month|year.
At this point,all of them are essentially aliases for "today", but the
logic is kept separate in case we want to move them to start of period
or similar.

Minor update on Chinese Zodiac to demonstrate it working through the
role instead of local triggering.
2014-10-31 18:26:31 +02:00
Matt Miller 592375e883 DatesRole: definededness not truthiness for parsing.
I don't know that we'd ever need to actually support year 0 or similar,
but there may come a day where we support epochs or something and it
might make sense.
2014-10-31 18:26:31 +02:00
Rob Emery 97a7541706 DatesRole: minor cleanup 2014-10-31 18:26:31 +02:00
Matt Miller b2a9e6d05d ChineseZodiac: update as example of working with relative dates. 2014-10-31 18:26:31 +02:00
Matt Miller ffd257aa09 DatesRole: fix and expand relative dates.
- Add grouping to regex for proper |ing.
- Add 'year' to relative dates.  (See Chinese zodiac)
- Add more tests.
2014-10-31 18:26:31 +02:00
Rob Emery d12154fdc0 DatesRole: Minor tidyup 2014-10-31 18:25:59 +02:00
Rob Emery 76edd1de1d DatesRole: Adding rough implementation for relative times 2014-10-31 18:25:59 +02:00
Rob Emery 98ef4b7899 DatesRole: Adding regex and failing tests for relative day parsig 2014-10-31 18:25:59 +02:00
Zaahir Moolla 7c07a815d1 Merge pull request #717 from JohnCarlosReed/master
JohnCarlosReed's first Goodie
2014-10-31 11:15:27 -04:00
Zaahir Moolla 9386eb5c3d Merge pull request #660 from duckduckgo/mwm/sunrise_sunset
SunInfo: add new Instant Answer for sunrise/sunset.
2014-10-31 11:12:24 -04:00
Jag Talon fab2ad5608 MD5.pm: Metadata: Array of one value is a bug 2014-10-31 10:02:20 -04:00
Jarmo Kivekas 945e983855 move independence day data back into separate json file 2014-10-31 09:52:50 +02:00
JohnCarlosReed a78628b5ae Created my first Goodie 2014-10-30 23:20:05 +00:00
Zaahir Moolla 334991b839 remove some leftover boilerplate text 2014-10-30 17:58:49 -04:00