Giuseppe Bilotta [Fri, 7 Mar 2014 08:32:51 +0000 (09:32 +0100)]
set default encoding to UTF-8 for Ruby 1.9
Matthias H [Thu, 20 Feb 2014 02:12:59 +0000 (03:12 +0100)]
[plugin] insult, small fix
Matthias H [Thu, 20 Feb 2014 02:04:29 +0000 (03:04 +0100)]
[plugins] random permissions fix
Matthias H [Thu, 20 Feb 2014 02:03:28 +0000 (03:03 +0100)]
[plugin] googlefight fixed regexp
Matthias H [Thu, 20 Feb 2014 01:37:02 +0000 (02:37 +0100)]
[plugin] fortune: fixed bin/not-found
Matthias H [Tue, 18 Feb 2014 22:06:42 +0000 (23:06 +0100)]
log fatal/error messages to stderr, but check if daemonized first!
Giuseppe Bilotta [Thu, 20 Feb 2014 20:50:27 +0000 (21:50 +0100)]
Catch another non-standard error
Giuseppe Bilotta [Thu, 20 Feb 2014 20:49:00 +0000 (21:49 +0100)]
Properly quote salut-italian
Giuseppe Bilotta [Thu, 20 Feb 2014 20:06:10 +0000 (21:06 +0100)]
chucknorris: read gzip stream before passing it to YAML.load
Prevents errors about external_encoding not being defined for the gzip
stream in ruby 1.9+
Giuseppe Bilotta [Thu, 20 Feb 2014 20:02:35 +0000 (21:02 +0100)]
quiz: hint presentation fix for ruby 1.9+
Matthias Hecker [Mon, 25 Nov 2013 02:26:44 +0000 (02:26 +0000)]
gettext: change depricated and removed setlocale
Matthias Hecker [Tue, 26 Nov 2013 16:13:30 +0000 (16:13 +0000)]
Revert "always print FATAL and ERROR logmessages to STDERR"
This reverts commit
c4d629ad86aae3b8bb4669650df57875252bea92.
Giuseppe Bilotta [Fri, 15 Nov 2013 20:56:34 +0000 (21:56 +0100)]
plugins: improve error handling on load
Support OAuth2::Error braindead extension to StandardError and
wrap loading in an outer rescue to catch problems with the error
handling.
Matthias Hecker [Thu, 14 Nov 2013 15:51:26 +0000 (15:51 +0000)]
twitter: filter ret.latest status if non specified
Matthias Hecker [Thu, 14 Nov 2013 15:08:19 +0000 (15:08 +0000)]
twitter: changed filter title, to only contain usr
Matthias Hecker [Thu, 14 Nov 2013 14:49:52 +0000 (14:49 +0000)]
twitter: fixes the htmlfilter used by url plugin
Oblomov [Thu, 14 Nov 2013 14:23:27 +0000 (06:23 -0800)]
Merge pull request #20 from 4poc/ssl-verify
Implements SSL verification against a configured CA
Matthias Hecker [Thu, 14 Nov 2013 13:41:16 +0000 (13:41 +0000)]
always print FATAL and ERROR logmessages to STDERR
This adds a print to $stderr for log messages with the
level ERROR or FATAL. I did this because in the past errors
connecting to the server weren't immediately obvious but
rather hidden in the logfile. I think it should be right
in-your-face when the connection doesn't work.
It would probaply be better to extend Logger to print
to STDERR but this apparently requires monkeypatching ruby's
Logger. Anyhow I think my solution works for now.
Matthias H [Wed, 18 Sep 2013 02:00:17 +0000 (04:00 +0200)]
allow to verify ssl connections against a CA.
This adds three new configuration variables to configure
SSL verification against a CA.
server.ssl_verify: true if it should verify and disconnect
if it fails
server.ssl_ca_file: a CA file, is set to the systems CA
bundle by default (distri. dependent)
server.ssl_ca_path: alternativly path to a directory with
CA PEM files
I tested it and this seems no longer an issue with >= 1.9.3
https://www.braintreepayments.com/braintrust/sslsocket-verify_mode-doesnt-verify
Giuseppe Bilotta [Mon, 11 Nov 2013 15:05:39 +0000 (16:05 +0100)]
dict: update oxford url
Matthias H [Wed, 18 Sep 2013 01:18:13 +0000 (03:18 +0200)]
ruby 2.0.0: better fix for the ThreadError
I revisited my fix for the ThreadError in ruby 2.0.0
this doesn't use a queue for signals but just starts a
thread for each received signal, works much better for me.
It also fixes a bug in Bot#reconnect where the SystemExit
exception coming from quit is not handled correctly.
Matthias H [Wed, 4 Sep 2013 00:38:10 +0000 (02:38 +0200)]
ruby 2.0.0: changes sigtrapping, fixes ThreadError
Ruby 2.0.0 crashes with "ThreadError: can't be called from trap context"
anytime a signal is received, because it tries to write a debug message
within the "trap context".
This changes signal handling so that signals are queued and processed
in the main loop.
More information: https://www.ruby-forum.com/topic/
4411227
Matthias H [Wed, 4 Sep 2013 00:28:24 +0000 (02:28 +0200)]
ruby 2.0.0: fix for changed @waiters in compat19
I don't really know what this is all about, but this
fixes a bug with the compat19 monkeypatching. @waiters
is now a Hash.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=38109&view=revision
Giuseppe Bilotta [Sat, 2 Nov 2013 09:56:53 +0000 (10:56 +0100)]
Solve Socket vs URI IPv6 handling in Ruby
Giuseppe Bilotta [Sat, 2 Nov 2013 09:32:22 +0000 (10:32 +0100)]
ruby 1.9+: specify file encodings
Matthias Hecker [Sun, 13 Oct 2013 22:44:43 +0000 (22:44 +0000)]
urban: updated pattern
Matthias H [Mon, 19 Aug 2013 23:00:05 +0000 (01:00 +0200)]
urban: urbandictionary.com changed markup, fixes regexp
Matthias H [Mon, 19 Aug 2013 12:43:38 +0000 (14:43 +0200)]
azgame: fix pattern to check search results
Matthias H [Sun, 18 Aug 2013 10:26:39 +0000 (12:26 +0200)]
azgame: catch scraping error
Matthias H [Sun, 18 Aug 2013 10:14:32 +0000 (12:14 +0200)]
fixes azgame: changed dictionary url
Matthias H [Fri, 19 Jul 2013 15:00:10 +0000 (17:00 +0200)]
document requirements of the twitter plugin
Matthias H [Fri, 19 Jul 2013 14:26:24 +0000 (16:26 +0200)]
updates the twitter plugin to use the new api 1.1
The old 1.0 api is no longer available.
Its using oauth2 for application-only authentication and
oauth(1.0a) for user authentication.
Now requests and parses json (the new API doesn't support XML)
Giuseppe Bilotta [Mon, 29 Apr 2013 05:37:28 +0000 (07:37 +0200)]
note: dup the keys, not the registry
Giuseppe Bilotta [Sun, 28 Apr 2013 06:54:03 +0000 (08:54 +0200)]
note: if is more readale than unless here
Jay Thomas [Sun, 28 Apr 2013 02:35:20 +0000 (22:35 -0400)]
note: added date to timestamps
Jay Thomas [Sun, 28 Apr 2013 02:21:19 +0000 (22:21 -0400)]
note: added config option to privmsg all notes
Jay Thomas [Sat, 27 Apr 2013 06:27:19 +0000 (02:27 -0400)]
note: skip merging nil keys
Jay Thomas [Fri, 26 Apr 2013 01:15:58 +0000 (21:15 -0400)]
note: upgrade old registry keys on initialize
Jay Thomas [Thu, 25 Apr 2013 03:24:29 +0000 (23:24 -0400)]
note: store nicks case-insensitive to avoid lost messages
Ryan Waldron [Thu, 18 Apr 2013 21:59:22 +0000 (16:59 -0500)]
Fix parsing whois results so that we can get valid results for at least a great many queries
Ryan Waldron [Thu, 18 Apr 2013 19:42:50 +0000 (14:42 -0500)]
Fix multibyte char in rake task
Ryan Waldron [Thu, 18 Apr 2013 19:42:12 +0000 (14:42 -0500)]
Fix TCPSocket name
Jay Thomas [Thu, 25 Apr 2013 04:19:25 +0000 (00:19 -0400)]
search: updated Wolfram Alpha method to comply with api
Jay Thomas [Thu, 25 Apr 2013 03:05:59 +0000 (23:05 -0400)]
utils: fixed secs_to_string output for one-element arrays
Jay Thomas [Thu, 25 Apr 2013 03:01:56 +0000 (23:01 -0400)]
extends: updated shuffle method
Giuseppe Bilotta [Wed, 30 Jan 2013 07:24:03 +0000 (08:24 +0100)]
search: wolfram fix
Ruby doesn't do C-style string concatenation. (My fault.)
Giuseppe Bilotta [Mon, 21 Jan 2013 18:41:38 +0000 (19:41 +0100)]
rss: protect against nil field
This happens when the filter tries to wrap a non-existing field, and in
custom filters it's probably a sign that the wrong field are being
accessed. It would probably be nicer to raise a warning about this, but
I'm too lazy to add that now.
Giuseppe Bilotta [Wed, 19 Dec 2012 09:04:09 +0000 (10:04 +0100)]
imdb: fix for the check of the final /
Matthias H [Wed, 19 Dec 2012 08:02:29 +0000 (09:02 +0100)]
imdb: plugin updates for recent site changes
Giuseppe Bilotta [Thu, 27 Sep 2012 10:23:36 +0000 (12:23 +0200)]
bdb: message when wrong bdb module is loaded
Giuseppe Bilotta [Wed, 26 Sep 2012 20:28:25 +0000 (22:28 +0200)]
lastfm: match latest API changes
Thanks Lite_
Giuseppe Bilotta [Fri, 21 Sep 2012 13:30:47 +0000 (15:30 +0200)]
poll: usual gettext frozen string issues
Giuseppe Bilotta [Fri, 21 Sep 2012 12:55:42 +0000 (14:55 +0200)]
poll: handle privately-asked polls
When a poll is asked in private, its channel will be empty. Make sure
that communication go in private again, and do mention that the poll was
asked in private in the poll info.
Giuseppe Bilotta [Fri, 21 Sep 2012 11:56:43 +0000 (13:56 +0200)]
poll: restart/close polls that were running
On init, we need to see if there were polls running, and put them up
again (if there's still time) or announce their results (otherwise).
Giuseppe Bilotta [Fri, 21 Sep 2012 11:39:41 +0000 (13:39 +0200)]
poll: oopsie in the gettext string for poll status
Giuseppe Bilotta [Fri, 14 Sep 2012 06:55:39 +0000 (08:55 +0200)]
search: improve ddg output with missing sources
Sometimes duckduckgo fails to report the source/url of a definition or
abstract. Cope with this by removing the leading double dash when no
source information is provided
Giuseppe Bilotta [Fri, 14 Sep 2012 06:42:10 +0000 (08:42 +0200)]
search: thread the new engines too
Giuseppe Bilotta [Fri, 14 Sep 2012 06:41:24 +0000 (08:41 +0200)]
search: rbot-ize wolframalpha
Giuseppe Bilotta [Fri, 14 Sep 2012 06:35:24 +0000 (08:35 +0200)]
search: preliminary Wolfram Alpha support
Thanks Lite_ again
Giuseppe Bilotta [Thu, 13 Sep 2012 08:33:52 +0000 (10:33 +0200)]
search: some ddg reworking
Make it more similar to google, modulo obvious differences in behavior
and possibilities.
Giuseppe Bilotta [Thu, 13 Sep 2012 07:27:19 +0000 (09:27 +0200)]
search: be more rbot-ish in ddg
Giuseppe Bilotta [Thu, 13 Sep 2012 06:56:17 +0000 (08:56 +0200)]
search: preliminary duckduckgo support
Thanks Lite_
Giuseppe Bilotta [Mon, 10 Sep 2012 05:43:32 +0000 (07:43 +0200)]
chucknorris: typo
Giuseppe Bilotta [Mon, 10 Sep 2012 04:33:32 +0000 (06:33 +0200)]
search: fix google calc scraping
Giuseppe Bilotta [Fri, 31 Aug 2012 19:04:47 +0000 (21:04 +0200)]
markov: be more robust about flaky dbs
Due to historical bugs, some database entries may have ended up being
serialized as strings. Recover from this by making them into arrays.
Giuseppe Bilotta [Fri, 31 Aug 2012 19:04:01 +0000 (21:04 +0200)]
bdb: restore errors should be logged as errors
Giuseppe Bilotta [Fri, 31 Aug 2012 18:33:40 +0000 (20:33 +0200)]
search: update for changes in google's html
Giuseppe Bilotta [Sat, 14 Jul 2012 11:24:33 +0000 (13:24 +0200)]
Update gettext support
Somewhere along the line between 2.0.0 and 2.2.1 gettext switched from
locale to lang for the hash key name. Support both.
Giuseppe Bilotta [Thu, 21 Jun 2012 06:03:20 +0000 (08:03 +0200)]
tumblr: escape the non-range dash in the group regex
Giuseppe Bilotta [Mon, 14 May 2012 11:59:39 +0000 (13:59 +0200)]
search: fix google
Giuseppe Bilotta [Mon, 14 May 2012 11:59:20 +0000 (13:59 +0200)]
utils: support hex HTML entities
Giuseppe Bilotta [Mon, 30 Apr 2012 19:50:02 +0000 (21:50 +0200)]
db adaptors: nil internal variable when closing
This prevents subsequent spurious flushes from bombing out because of
closed databases.
Giuseppe Bilotta [Mon, 30 Apr 2012 12:00:43 +0000 (14:00 +0200)]
quakeauth: notify when identified
This ensures that joining after identification (config setting
irc.join_after_identify) works correctly with quake auth too.
Giuseppe Bilotta [Mon, 26 Mar 2012 16:22:38 +0000 (18:22 +0200)]
weather: use proper units text when using config option
Previously, if units was false (no units specified), wu_units would
become "_false" instead of "_<whatever was in the config value>".
Giuseppe Bilotta [Tue, 20 Mar 2012 11:13:17 +0000 (12:13 +0100)]
Forecast plugin patch
"I've updated the forecast plugin, the two API URLs used had been updated and
the NOAA SOAP API method call now requires 6 arguments instead of the 5 it was
passing previously." (Ticket #89)
Giuseppe Bilotta [Sun, 4 Mar 2012 20:16:46 +0000 (21:16 +0100)]
RubyGems obsoleted *and* b0rked all_load_path, try to work around it
Giuseppe Bilotta [Sat, 3 Mar 2012 18:04:34 +0000 (19:04 +0100)]
httputil: work (sub-par) without iconv
Giuseppe Bilotta [Sat, 3 Mar 2012 17:32:23 +0000 (18:32 +0100)]
Document iconv dependency
Giuseppe Bilotta [Wed, 1 Feb 2012 14:24:31 +0000 (15:24 +0100)]
math: ruby wants leading 0s to floating points numbers
Giuseppe Bilotta [Wed, 25 Jan 2012 08:44:40 +0000 (09:44 +0100)]
search: fix gcalc
Google changed their layout again. To be a little more future-proof,
split the html into as many <br/> sections as there are, and pick the
first one that contains the literal string ' = ' if there is one.
Okasu [Sat, 21 Jan 2012 07:33:15 +0000 (02:33 -0500)]
greed: prevent players from going twice in a row
Giuseppe Bilotta [Mon, 26 Dec 2011 09:57:54 +0000 (10:57 +0100)]
greed: refactor and prepare for more complete play
The score is now saved in a look-up table, that also allows more
detailed output when showing the score. Also, the dice rolling
potentially allows for a different number of dices to be rolled (e.g. if
some are held).
Take the opportunity to also gettextize outuput.
Giuseppe Bilotta [Mon, 26 Dec 2011 09:12:31 +0000 (10:12 +0100)]
greed: stylistic changes
Sort dices when rolling and separate values with spaces.
Okasu [Mon, 26 Dec 2011 08:53:16 +0000 (03:53 -0500)]
Add a Greed dice game.
Okasu [Sun, 25 Dec 2011 22:13:30 +0000 (17:13 -0500)]
Googlefight plugin fix
Giuseppe Bilotta [Wed, 21 Dec 2011 22:29:35 +0000 (23:29 +0100)]
twitter: preliminary status htmlinfo filter
This allows the link info published by URL in the new /#!/ format to be
more meaningful than the warning about missing JavaScript support caused
by the new "web 2.0" Twitter site.
Giuseppe Bilotta [Wed, 21 Dec 2011 09:11:29 +0000 (10:11 +0100)]
tumblr: fix 'tumblr configure' regexps
The way they were, specifying channel, email, password and group caused
the password to be merged with the email and the group to become the
password.
Giuseppe Bilotta [Thu, 8 Dec 2011 15:20:43 +0000 (16:20 +0100)]
Improve first par detection without hpricot
Giuseppe Bilotta [Wed, 7 Dec 2011 08:12:09 +0000 (09:12 +0100)]
markov: mention learn in summary help
Giuseppe Bilotta [Sun, 4 Dec 2011 05:25:53 +0000 (06:25 +0100)]
markov: document 'learn from <file>'
Giuseppe Bilotta [Mon, 24 Oct 2011 08:49:22 +0000 (10:49 +0200)]
dict: oxford fix from AndrewNTH
See tracker issue #79
Giuseppe Bilotta [Mon, 24 Oct 2011 08:44:09 +0000 (10:44 +0200)]
Exit for good when getting a DBFatal error
Matthias -apoc- Hecker [Mon, 26 Sep 2011 12:44:25 +0000 (14:44 +0200)]
imdb plugin: again fixes outdated ratings pattern
Giuseppe Bilotta [Thu, 22 Sep 2011 20:42:02 +0000 (22:42 +0200)]
UNO: prevent player from replaying a misplayed card
Giuseppe Bilotta [Thu, 15 Sep 2011 09:44:07 +0000 (11:44 +0200)]
Better handling of akills and other form of disconnections
Giuseppe Bilotta [Thu, 15 Sep 2011 09:40:44 +0000 (11:40 +0200)]
youtube: not all urls have v= as first CGI param
Giuseppe Bilotta [Tue, 30 Aug 2011 05:33:18 +0000 (07:33 +0200)]
An unparseable message from the server is a ServerError
Giuseppe Bilotta [Sun, 28 Aug 2011 21:33:16 +0000 (23:33 +0200)]
basics: UI command to send NOTICEs
Matthias -apoc- Hecker [Sun, 14 Aug 2011 11:50:02 +0000 (13:50 +0200)]
fix for imdb, changed patterns for ratings&genre
Giuseppe Bilotta [Mon, 11 Jul 2011 15:26:00 +0000 (17:26 +0200)]
Fix TC db close on cleanup
When closing the TC db on cleanup, we didn't remove it from the
environment. Override the #close() method to achieve that.