Skip to content

Commit 264cdad

Browse files
committed
Prepare v1.13.0 for release
1 parent e26fc77 commit 264cdad

4 files changed

Lines changed: 22 additions & 3 deletions

File tree

Changes.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
Revision history for the Python package RiveScript.
22

3-
1.13.0 TBD
3+
1.13.0 Jul 21 2016
44
- Restructure the code to keep it on par with the JavaScript and Go versions:
55
- `rivescript.parser` now contains all the parsing code:
66
`parse()` and `check_syntax()` are moved here.
7+
- Triggers are stored internally in only one place now, like in the
8+
JavaScript and Go versions. This makes some internal mappings simpler as
9+
they now point to common references and don't duplicate data in memory.
10+
- **Note:** Most of the new `rivescript.*` modules are still
11+
private-use-only, even though many internal functions lost their
12+
underscore prefixes. You should still only use the API functions exposed
13+
by `rivescript.rivescript` or what is exported by the top level package.
14+
The `rivescript.parser` API will be more public-facing in the future to
15+
help with third party integrations (currently it still relies on a Python
16+
object with methods `_say` and `_warn`).
717
- Refactor the RiveScript interactive mode (`rivescript.interactive`) to use
818
argparse instead of getopt and add a pretty ASCII logo.
919
- Add `shell.py` as a possibly easier-to-access (and certainly
1020
easier-to-discover) shortcut to running RiveScript's interactive mode.
21+
It accepts all the same options and works the same as before.
1122

1223
1.12.3 Jul 8 2016
1324
- Fix the Python object macro handler to use `six.text_type` on the return

python-rivescript.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%global desc A scripting language to make it easy to write responses for a chatterbot.
44

55
Name: python-%{srcname}
6-
Version: 1.12.3
6+
Version: 1.13.0
77
Release: 1%{?dist}
88
Summary: %{sum}
99

rivescript/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
__docformat__ = 'plaintext'
2121

2222
__all__ = ['rivescript']
23-
__version__ = '1.12.4'
23+
__version__ = '1.13.0'
2424

2525
from .rivescript import RiveScript
2626
from .exceptions import (

rivescript/parser.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
class Parser(object):
1616
"""The RiveScript language parser.
1717
18+
This class will soon become a stand-alone, public (developer) facing class
19+
for simply parsing RiveScript code, running syntax checks, and getting a
20+
data structure back. Currently, though, the `master` parameter must be a
21+
Python class instance that has methods ``_say(self, message)`` and
22+
``_warn(self, message, fname='', lineno=0)``. If you want to use this class
23+
in the mean time, you can create a small Python class that has these methods
24+
and pass it as the ``master`` parameter.
25+
1826
Parameters:
1927
master (RiveScript): A reference to the parent RiveScript bot instance,
2028
mostly useful for its debug methods like ``warn()``.

0 commit comments

Comments
 (0)