Skip to content

Commit 4b06615

Browse files
committed
Bump version to v0.0.5 + update changelog
1 parent 4bdc0c5 commit 4b06615

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

coc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
__version__ = '0.0.4'
3+
__version__ = '0.0.5'
44

55
from .client import Client
66
from .dataclasses import (

docs/changelog.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,34 @@ This page keeps a fairly detailed, human readable version
77
of what has changed, and whats new for each version of the lib.
88

99

10+
v0.0.5
11+
-------
12+
BugFixes
13+
~~~~~~~~~
14+
- Fixed how the lib detects an invalid IP error, as SC changed how the error message works
15+
- Fixed bug with semi-complete URL when using the API dev site
16+
- ``email`` and ``password`` in :class:`Client` are now ``None`` by default. This was throwing
17+
and error before.
18+
- str() for :class:`Achievement`, :class:`Hero`, :class:`Troop`, :class:`Spell` now all return
19+
respective names
20+
21+
Important
22+
-----------
23+
- Added a new exception: :exc:`Forbidden`. This is thrown when a 403 is returned, but the error is not
24+
one of invalid token, instead when you aren't allowed to get the resource eg. private war log.
25+
- A :exc:`RuntimeError` will be raised if you try to pass ``update_stats`` as ``True`` but don't set
26+
the ``email`` or ``password``
27+
- Added the :func:`Client.on_token_reset` which is called whenever the lib updates your token.
28+
By default this does nothing, however you can override it by either subclassing or
29+
using the decorator ``@Client.event()`` above your new ``async def on_token_reset``.
30+
This function can be a regular or coroutine.
31+
32+
Documentation
33+
--------------
34+
- Add examples. I will expand on these as I see fit. Feel free to let me know if you want more.
35+
- Fix broken codeblock examples
36+
- Update incorrect function name in the example in README.rst (``player_name`` --> ``get_some_player``
37+
1038
v0.0.4
1139
-------
1240
BugFixes

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
with open(os.path.join(os.getcwd(), 'requirements.txt')) as f:
66
requirements = f.read().splitlines()
77

8-
version = '0.0.4'
8+
version = '0.0.5'
99

1010
readme = ''
1111
with open('README.rst') as f:

0 commit comments

Comments
 (0)