Skip to content

Commit fbc7fb7

Browse files
committed
Prepare release 0.3.0.
1 parent 5a5d6e3 commit fbc7fb7

File tree

7 files changed

+24
-13
lines changed

7 files changed

+24
-13
lines changed

doc/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
# The short X.Y version.
5757
version = '0.2'
5858
# The full version, including alpha/beta/rc tags.
59-
release = '0.2.0'
59+
release = '0.3.0'
6060

6161
# The language for content autogenerated by Sphinx. Refer to documentation
6262
# for a list of supported languages.

doc/source/history.rst

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
Changelog
22
=========
33

4-
v0.3.0 (2015-12-XX)
4+
v0.3.0 (2015-12-09)
55
-------------------
66

7-
**Attention**: This release contains some backward-incompatible changes (marked with (!) below).
7+
**Attention**: This release contains some backward-incompatible changes (marked with **(!)** below).
88

99
* ChannelInfo-class with information about a channel like current topic and members
1010

1111
* access via IRCClient.channel_info
1212

1313
* changing the nick name of the client
1414
* handle nick changes
15-
* introduced handle_own_(kick|got_op|lost_op|got_voice|lost_voice)-methods
15+
* handle quits
16+
* handle changes to operator- and voice-status
17+
* introduced handle_own_kick()-method
1618

17-
* (!) when the bot gets kicked, this can only be handled in
19+
* **(!)** when the bot gets kicked, this can only be handled in
1820
handle_own_kick() instead of handle_kick() now
1921

2022
* optional delay for channel messages
2123
* the delay of a Task can be changed now
22-
* IRCClient.channels now returns an iterator instead of a tuple
24+
* **(!)** IRCClient.channels now returns an iterator instead of a tuple
2325

2426
v0.2.2 (2015-04-11)
2527
-------------------

doc/source/index.rst

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ The source code repository is hosted at `Github <https://github.com/worblehat/Fr
3131
Wishlist
3232
++++++++
3333

34+
* More commands (e.g. KICK, TOPIC,...)
35+
* Querying user modes for other users
3436
* Advanced logging of chat histories
3537
* Allow multiple IRCClient instances and/or to re-run a terminated IRCClient
3638
* SSL-support

fredirc/client.py

+11-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ class IRCClient(asyncio.Protocol):
4848
:py:meth:`.join` but only after
4949
:py:meth:`handle_own_join()<.IRCHandler.handle_own_join>` was called.
5050
51+
Channel and nick name arguments to methods that send a command to the server
52+
are case insensitive, except for methods that change the clients nick.
53+
Channel names returned by the server (e.g. in IRCClient's
54+
:py:attr:`.channels`-property)
55+
are usually lower case while nick names are the case they were registered by
56+
it's user.
57+
5158
Args:
5259
handler (:py:class:`IRCHandler<fredirc.IRCHandler>`): \
5360
handler that handles events from this client
@@ -145,7 +152,7 @@ def reconnect(self, delay=0.0):
145152
return
146153
self._reconnect = True
147154
time.sleep(delay)
148-
asyncio.get_event_loop().stop() # TODO use terminate() here?
155+
asyncio.get_event_loop().stop() # TODO use terminate() here?
149156

150157
def enable_logging(self, enable):
151158
""" Enable or disable logging.
@@ -483,7 +490,7 @@ def data_received(self, data):
483490
# then loop 'while self._buffer', look for terminator and remove
484491
# the message.
485492
# 2. Make buffer a byte string, split lines to list, iterate list,
486-
# clear buffer. Con: While handling messageis in loop, buffer
493+
# clear buffer. Con: While handling messages in loop, buffer
487494
# stays the same (empty or with all messages that were received)
488495
# Con of buffer byte string: more difficult to debug
489496
#
@@ -507,6 +514,8 @@ def _get_channel_info(self):
507514
channel_info = property(_get_channel_info)
508515
""" Get information about channels.
509516
517+
To get all channel names use :py:attr:`.channels`.
518+
510519
Returns:
511520
dict: A read-only(!) mapping of channel names to
512521
:py:class:`ChannelInfo<fredirc.ChannelInfo>` objects.

fredirc/info.py

-2
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,3 @@ def keys(self):
9090

9191
def values(self):
9292
return self._data.values()
93-
94-

fredirc/parsing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def parse_channel_mode_params(params):
143143
tuple of ChannelModeChange
144144
"""
145145
if not params[0].startswith('+') and not params[0].startswith('-'):
146-
raise ParserError(str(params)) #TODO ParserError expects the whole mesasge
146+
raise ParserError(str(params)) # TODO ParserError expects the whole message
147147
mode_changes = []
148148

149149
for param in params:

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def read(file):
2525

2626
setup(
2727
name='FredIRC',
28-
version='0.2.0',
28+
version='0.3.0',
2929
author='Tobias Marquardt',
3030
author_email='[email protected]',
3131
description=('An easy-to-use, event driven framework for IRC bots.'),
@@ -34,7 +34,7 @@ def read(file):
3434
license='BSD',
3535
keywords='irc client library bot framework',
3636
url='https://worblehat.github.io/FredIRC',
37-
download_url='https://github.com/worblehat/FredIRC/archive/v0.2.0.tar.gz',
37+
download_url='https://github.com/worblehat/FredIRC/archive/v0.3.0.tar.gz',
3838
long_description=read('README.rst'),
3939
classifiers=[
4040
'Development Status :: 4 - Beta',

0 commit comments

Comments
 (0)