From 635dfdbf80121c1a352466d700f29d389ce02e33 Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Mon, 31 Jan 2022 14:33:05 +0100 Subject: [PATCH] releasing 0.2 --- README.md | 1 + VERSIONS | 25 +++++++++++++++++++++++++ offpunk.py | 6 ++++-- setup.py | 2 +- 4 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 VERSIONS diff --git a/README.md b/README.md index d21326c..b69e809 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ To have offpunk fetch the URL at next sync and close immediately, run: Known issues in the code: * NOT_FIXABLE : consider root file is always index.gmi or index.html +* TODO0: Hard - Make a manual within the git repository and have it automatically deployed as a website. * TODO1: Easy - Update blackbox to reflect cache hits. * TODO2: Medium - "pdf" - Implement retrieving PDF version of pages * TODO3: Easy - Transparent privacy redirects (twitter->nitter, etc) diff --git a/VERSIONS b/VERSIONS new file mode 100644 index 0000000..a494188 --- /dev/null +++ b/VERSIONS @@ -0,0 +1,25 @@ +# Offpunk History + +## 0.2 - Jan 31st 2022 +- config directories have been moved to follow the XDG specifications +- support for http, https and mailto links (https_everywhere is enabled by default, see "set" command) +- support for HTML pages, rendered as articles +- Mutiple bookmarks lists and management of them through commands list, add, archive, move +- Subscriptions have been moved to a separate list with the subscribe command +- History is persistent and saved to disk +- Copy command allows to copy content or url into buffer +- Search as been renamed find, in the hope of implementing a real search in the future +- --fetch-later allows to mark a content to be fetched from other software. +- --assume-yes allows to choose the default answer to certificates warnings during --sync. +=> gemini://rawtext.club/~ploum/2022-01-31-offpunk02.gmi Announcing Offpunk 0.2 + +## 0.1 - Jan 3rd 2022 +- initial release as an independant software from AV-98 +- Including contributions published by Bjorn on Notabug. +- less used by default for all content with custom options +- online/offline mode +- content is cached for offline use +- bookmarks are cached and subscribed through the --sync option +- tour is persistent and saved to disk +- reload while offline mark the content to be fetched during next --sync +=> gemini://rawtext.club/~ploum/2022-01-03-offpunk.gmi Announce of Offpunk 0.1 diff --git a/offpunk.py b/offpunk.py index 6d48a02..7c921df 100755 --- a/offpunk.py +++ b/offpunk.py @@ -80,7 +80,7 @@ try: _DO_HTML = True except ModuleNotFoundError: _DO_HTML = False -_VERSION = "0.1~dev" +_VERSION = "0.2" ## Config directories try: @@ -770,7 +770,9 @@ CRLF = '\r\n' # Cheap and cheerful URL detector def looks_like_url(word): - try: + try: + if not word.strip(): + return False url = fix_ipv6_url(word).strip() parsed = urllib.parse.urlparse(url) #sometimes, urllib crashed only when requesting the port diff --git a/setup.py b/setup.py index 2e06693..503c4fe 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='offpunk', - version='0.1', + version='0.2', description="Offline Command line Gemini client forked from AV-98.", author="Ploum", author_email="offpunk@ploum.eu",