From 177e32cb93292734980eb86707120c206ebecf9c Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Sun, 22 Sep 2019 22:13:00 -0400 Subject: [PATCH] Upping version --- CHANGELOG.md | 16 +++++++--------- jetforce.py | 5 ++--- setup.py | 2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fef284e..6576e7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,15 @@ # Jetforce Changelog -### Unreleased +### v0.1.0 (2019-09-22) - The server will now return a redirect if a directory is requested but the URL - does not end in a trailing slash. This reduces duplicate selectors and makes - it easier for clients to resolve relative links. + does not end in a trailing slash. This is intended to reduce duplicate + selectors and make it easier for clients to resolve relative links. - Added a ``-V`` / ``--version`` argument to display the version and exit. -- The server now returns a ``50 PERMENANT FAILURE`` response when a client - requests a URL that does not exist on the server. This change is motivated by - the suggestion that a ``51 NOT FOUND`` status might not always be appropriate - if the scheme/host component of the URL does not match. -- Timestamps in log messages are now displayed to the server's local timezone. - The UTC offset is included in the timestamp as "+HHMM" to prevent ambiguity. +- The server now returns an error code of ``50 PERMENANT FAILURE`` by default + if the URL does not match the server's scheme or hostname. +- Timestamps in log messages are now displayed in the server's local timezone. + As before, the UTC offset is included as "+HHMM" to avoid ambiguity. ### v0.0.7 (2019-08-30) diff --git a/jetforce.py b/jetforce.py index 34ad3f4..f5c1658 100755 --- a/jetforce.py +++ b/jetforce.py @@ -5,7 +5,6 @@ import argparse import asyncio import codecs import dataclasses -import datetime import mimetypes import os import pathlib @@ -22,7 +21,7 @@ import urllib.parse if sys.version_info < (3, 7): sys.exit("Fatal Error: jetforce requires Python 3.7+") -__version__ = "0.0.7" +__version__ = "0.1.0" __title__ = "Jetforce Gemini Server" __author__ = "Michael Lazar" __license__ = "GNU General Public License v3.0" @@ -161,7 +160,7 @@ class JetforceApplication: yield from response.body break else: - send_status(Status.PERMANENT_FAILURE, "URL not found on server") + send_status(Status.PERMANENT_FAILURE, "Unrecognized URL") def route( self, diff --git a/setup.py b/setup.py index 2167031..8c18809 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def long_description(): setuptools.setup( name="Jetforce", - version="0.0.7", + version="0.1.0", url="https://github.com/michael-lazar/jetforce", license="Other/Proprietary License", author="Michael Lazar",