Skip to content

Commit

Permalink
Bump version to 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kolotaev committed Jan 22, 2019
1 parent 54f8ef7 commit 181af0d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
@@ -1,7 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.1.1] - 2019-01-14
## [1.1.1] - 2019-01-22
### Added
- Irreversible exception for migrations
- MongoStorage migration between 1.1.0 and 1.1.1

### Fixed
- Failing JSON deserialization of some Rules.
- Migration Migration0To1x0x3 was properly renamed to Migration0To1x1x0
Expand Down
2 changes: 1 addition & 1 deletion examples/book_library/requirements.txt
@@ -1,4 +1,4 @@
vakt>=1.1.0
vakt>=1.1.1
requests==2.20.0
pymongo==3.7.2
Flask==1.0.2
4 changes: 2 additions & 2 deletions examples/book_library/server.py
Expand Up @@ -53,7 +53,7 @@
actions=['<.*>'],
resources=['<.*>'],
rules={
'secret': vakt.rules.string.StringEqualRule('i-am-a-teacher'),
'secret': vakt.rules.string.RegexMatchRule('[Ii]-am-a-teacher'),
},
),
Policy(
Expand All @@ -77,7 +77,7 @@ def init():
if os.environ.get('STORAGE') == 'mongo':
user, password, host = 'root', 'example', 'localhost:27017'
uri = 'mongodb://%s:%s@%s' % (user, password, host)
st = MongoStorage(MongoClient(uri), 'vakt_db', collection='vakt_policies')
st = MongoStorage(MongoClient(host=host), 'vakt_db', collection='vakt_policies')
# We run migrations.
migrations = (Migration0To1x1x0(st), Migration1x1x0To1x1x1(st))
for m in sorted(migrations, key=lambda x: x.order):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
from os import path

__version__ = '1.1.0'
__version__ = '1.1.1'


with open(path.join(path.abspath(path.dirname(__file__)), 'README.md'), encoding='utf-8') as f:
Expand Down

0 comments on commit 181af0d

Please sign in to comment.