936 Commits

Author SHA1 Message Date
James Lu
f4bc06f0d3 Bump version to 2018.05.03 2018.05.03 2018-05-03 12:01:10 -07:00
James Lu
473504f590 PkgInfo: rehash description and command examples
Closes #65.

[skip ci]
2018-05-03 11:50:41 -07:00
James Lu
c85183a8dd
Weather: advertise more supported location forms
[skip ci]
2018-04-28 08:32:32 -07:00
James Lu
d28233138f PortLookup: drop, broken and unmaintainable 2018-04-27 12:09:12 -07:00
James Lu
1aacd7c2a1 SupyMisc: disable testSPSourceFetch 2018-04-27 12:05:22 -07:00
James Lu
eae4c6bf33 LastFM: make tests network only 2018-04-27 11:59:00 -07:00
James Lu
a4f42ed727 Weather: properly return API errors when we receive them 2018-04-27 11:54:50 -07:00
James Lu
7fd7b98bc3 PortLookup: stop parsing notes, the format keeps on changing 2018-04-12 11:07:19 -07:00
James Lu
f3f1911d96 SysDNS: allow passing a specific name server 2018-03-24 12:37:23 -07:00
James Lu
9e59d7d0e0 PkgInfo: add a test for 'pkg fedora' 2018-02-23 19:33:20 -05:00
James Lu
72eee1f09c PkgInfo: further tweaks to the Fedora fetcher
- Sort descendingly by version, now that doing so is supported (ref https://github.com/product-definition-center/product-definition-center/issues/439)
- Disable 'pkgsearch' on Fedora; it's not reliable because we only look at the first page of results.
- Fix IndexError when no results are found.
2018-02-23 19:32:24 -05:00
James Lu
5e2130ddb8 Merge "WIP: reimplement the fedora fetcher using the new PDC API"
Conflicts:
	PkgInfo/plugin.py
2018-02-23 19:19:17 -05:00
James Lu
4aeec6efa1 Revert "PkgInfo: remove the Fedora fetcher"
This reverts commit 2c69e99299b2708b870651241dfead53fc00362e.
2018-02-23 19:17:54 -05:00
James Lu
0906dc554d OperUp: rework numeric logging
- Include full messages for the numerics we care about
- Remove handlers for 464 and 481; they aren't useful for our purposes
2018-02-23 19:08:12 -05:00
James Lu
1d20f5afd5 OperUp: unset _oper_tried_oper on disconnect
Closes #67.
2018-02-23 19:08:12 -05:00
James Lu
88c5cad072 Weather: show states/provinces in 'locationsearch' where available 2018-02-04 11:29:22 -08:00
James Lu
e04f6c5b2d Weather: remove unused _weatherSymbol helper 2018-02-04 11:23:02 -08:00
James Lu
e4c7bc81b8 Weather: show names in 'locationsearch' again 2018-02-04 11:20:13 -08:00
James Lu
1134e8474d Weather: fix potentially corrupt API URLs if features and presets are added in reverse order
This can happen because dict.items() doesn't sort deterministically.

Reported by @jztech101.
2018-01-28 17:30:21 -08:00
James Lu
e61f73fc9d Weather: don't need to add in the api key twice
Reported by @jztech101.
2018-01-28 17:25:05 -08:00
James Lu
ac4c9f2063 travis: don't test Weather, it hits my API limits too quickly 2018-01-28 16:35:58 -08:00
James Lu
a6de04f08b Weather: more comprehensive tests 2018-01-28 16:28:49 -08:00
James Lu
063f3e4800 Weather: quick fix to locationsearch
This will be updated again in the future to return the place names like it used to.
2018-01-28 16:28:49 -08:00
James Lu
0f5fdcfefd Weather: fix errors when forecast info isn't available 2018-01-28 16:28:49 -08:00
James Lu
e13eb7203c Weather: rewrite to use the geolookup API
Thanks to @jztech101 for the initial suggestion.

Closes #69.
2018-01-28 16:28:45 -08:00
James Lu
84e376acf5 Weather: remove try/except on getUrl in _wuac()
irc isn't defined in this scope, so this would throw errors trying to raise an error
2018-01-28 14:25:26 -08:00
Julian Zhou
0cc102c3c6 Weather: reword 'no API key configured' error (#68) 2018-01-04 09:41:29 -08:00
James Lu
ff867d3ed5 Weather: time out getUrl requests after 5 seconds
getUrl without a custom timeout seems to wait forever before returning a "Connection timed out" error, and this is really confusing.
2018-01-03 19:07:32 -08:00
James Lu
3ab4ba16dc DDG: remove zeroclick from plugin readme
[skip ci]
2017-12-28 00:24:07 -08:00
James Lu
51ff41251b SedRegex: make the regexp process timeout configurable
Although the default has been adequate on my systems, busy or low-powered machines may fail to process regexps quickly enough and cause SedRegex to sporadically error.

Reported by @cottongin via IRC.
2017-12-08 12:33:17 -08:00
James Lu
06e00beea6 OperUp: write tried_oper flag to irc.state, as attributes under irc are not persistant 2017-11-22 23:58:00 -08:00
James Lu
8c0b8d91a1 OperUp: don't try to autooper multiple times
This fixes an infinite loop when receiving OPERMOTDs that use the regular MOTD numerics (e.g. on InspIRCd).
2017-11-22 09:26:05 -08:00
James Lu
6fdcdefca6 OperUp: cleanup and reindent 2017-11-21 11:53:32 -08:00
James Lu
4081afc999 OperUp: remove 461 handler
ERR_NEEDMOREPARAMS is very general and can be triggered by other commands too.
2017-11-21 11:47:30 -08:00
James Lu
6dc362041c OperUp: fix wrong numeric in do464 logging 2017-11-21 11:46:05 -08:00
James Lu
4b5795b9ce OperUp: remove extraneous numeric 377 handler
The only MOTD-related usage of this is deprecated according to http://defs.ircdocs.horse/defs/numerics.html#rpl-kickexpired-377
2017-11-21 11:42:25 -08:00
James Lu
f25afcca35 TranslateParty: tweak testcase output logging 2017-11-12 01:39:28 -08:00
James Lu
d147207ad1 Wikifetch: ignore GPS coordinates from articles for countries, etc. 2017-11-12 01:39:28 -08:00
James Lu
d000140891 Wikifetch: roughly sort Wikipedia tests by theme 2017-11-12 01:39:28 -08:00
James Lu
ddc92142a2 TranslateParty: strip formatting before translating, not after...
Really fixes #60.
2017-11-12 01:39:28 -08:00
James Lu
afabf73705 NoTrigger: prepend, not append
[skip ci]
2017-11-10 10:01:19 -08:00
James Lu
e471a02cd4 NoTrigger: cleanup readme
[skip ci]
2017-11-10 09:58:23 -08:00
James Lu
d4e75618d6 TranslateParty: clean up tests
- Remove reference to "WTE"
- Remove Python 2 check.
2017-11-09 09:20:57 -08:00
James Lu
9378aca10f Weather: rewrite 'setweather' help for clarity 2017-11-02 20:20:26 -07:00
James Lu
bdb7d70185 PkgInfo: refresh Ubuntu and Mint codenames 2017-10-24 07:24:27 -07:00
James Lu
e32223bb66 Weather: omit the Alerts line completely if none are available
This is otherwise just spam...
2017-10-23 19:46:44 -07:00
James Lu
a66555dedf PkgInfo: update command help on most commands 2017-09-10 01:07:43 -07:00
James Lu
2c69e99299 PkgInfo: remove the Fedora fetcher
Fedora's PkgDB has been decommissioned, and the new PDC backend doesn't have a usable API yet for our purposes.
Specifically, the PDC API does not support sorting packages from oldest to newest, and we don't have a way to navigate its pages of results without making excessive API calls.

Possibly related: https://github.com/product-definition-center/product-definition-center/issues/439
2017-09-10 00:37:51 -07:00
James Lu
7f2110ee24 PkgInfo: remove old distro-specific functions, update tests (#64) 2017-09-10 00:35:53 -07:00
James Lu
fb5be74e35 PkgInfo: fix TypeError on 'pkg arch' 2017-09-10 00:34:42 -07:00