Skip to content

Commit

Permalink
Version 0.2.0
Browse files Browse the repository at this point in the history
Including CHANGELOG and --version option
  • Loading branch information
MarcelWaldvogel committed Jun 2, 2017
1 parent 7bb5cf4 commit 46103e8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## 0.2.0 - 2017-06-02
### Added
- One-shot auth and isuser tests
- Support for running under downloaded ejabberd*.deb (`xmpp-cloud-auth.sh`)

### Fixed
- Allow passwords with colons

### Changed
- Internal cleanup
- better logging
- generator functions

## 0.1.0 - 2016-05-02
- Initial release
5 changes: 4 additions & 1 deletion external_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
DEFAULT_LOG_DIR = '/var/log/ejabberd'
URL = ''
SECRET = ''
VERSION = '0.2.0'

usersafe_encoding = maketrans('-$%', 'OIl')

Expand Down Expand Up @@ -200,6 +201,8 @@ def getArgs():
action='store_true',
help='enable debug mode')

parser.add_argument('--version', action='version', version=VERSION)

parser.add_argument('-A', '--auth-test',
nargs=3, metavar=("USER", "DOMAIN", "PASSWORD"),
help='one-shot query of the user, domain, and password triple; does not keep running and ignores the "-t" value')
Expand Down Expand Up @@ -227,7 +230,7 @@ def getArgs():
else:
logging.basicConfig(stream=sys.stdout,level=LEVEL,format='%(asctime)s %(levelname)s: %(message)s')

logging.info('Start external auth script for %s with endpoint: %s', TYPE, URL)
logging.info('Start external auth script %s for %s with endpoint: %s', VERSION, TYPE, URL)
logging.debug('Log level: %s', 'DEBUG' if DEBUG else 'INFO')

if ISUSER_TEST:
Expand Down

0 comments on commit 46103e8

Please sign in to comment.