Commit Graph

782 Commits

Author SHA1 Message Date
Lionel Dricot 709fd853b0 debugging offpunk 2023-08-17 13:38:45 +02:00
Lionel Dricot 072eee8325 offpunk starts to work 2023-08-17 13:38:45 +02:00
Lionel Dricot d3c9957ec5 renderer in ansirenderer 2023-08-17 13:38:45 +02:00
Lionel Dricot 601cfdbba9 ansirenderer now working both directly or from stdin 2023-08-17 13:38:45 +02:00
Lionel Dricot c775590bac pour le moment incapable de décider si ansirenderer doit prendre le path du fichier ou directement le texte en input 2023-08-17 13:38:45 +02:00
Lionel Dricot 2e08b9a73c starting to adapt offpunk 2023-08-17 13:38:45 +02:00
Lionel Dricot 4c93e18037 default to stdin 2023-08-17 13:38:45 +02:00
Lionel Dricot b580a74530 first working pipe between netcache and ansirenderer 2023-08-17 13:38:45 +02:00
Lionel Dricot ffb31d6a27 ansirenderer cli 2023-08-17 13:38:45 +02:00
Lionel Dricot 0265d8489c --offline and --path arguments 2023-08-17 13:38:45 +02:00
Lionel Dricot f6ff77da2b monkey patching 2023-08-17 13:38:45 +02:00
Lionel Dricot 2b4bd04fa9 netcache now works for gemini 2023-08-17 13:38:45 +02:00
Lionel Dricot d4768d6e8d work in progress 2023-08-17 13:38:45 +02:00
Lionel Dricot cb2958e4b6 real work has started with porting Gemini code 2023-08-17 13:38:45 +02:00
Lionel Dricot 4038adf5a9 gopher,finger and spartan in netcache 2023-08-17 13:38:45 +02:00
Lionel Dricot 8e732d0cfa netcache now downloads http 2023-08-17 13:38:45 +02:00
Lionel Dricot 6a6c0c0907 netcache CLI 2023-08-17 13:38:45 +02:00
Lionel Dricot c4cdcde94d working on netcache 2023-08-17 13:38:40 +02:00
Lionel Dricot c3a98d761e first netcache 2023-08-17 13:37:45 +02:00
Lionel Dricot a644315ed2 to the point where netcache become an evidence 2023-08-17 13:37:45 +02:00
Lionel Dricot a5853d2d66 introducing offutils.py 2023-08-17 13:37:45 +02:00
Lionel Dricot f6b70f938d progress toward independance 2023-08-17 13:37:31 +02:00
Lionel Dricot 8800a6bbc2 experiment 2023-08-17 13:34:07 +02:00
Lionel Dricot e4bc908919 release 1.10 before breaking all the things 2023-07-31 13:33:27 +02:00
Lionel Dricot 1a40ad786f Improved help for list and sync, suggestion from smokey 2023-07-02 23:46:34 +02:00
Sotiris Papatheodorou - sotiris at papatheodorou.xyz 2cc599afdd Change the Gopher index filename to gophermap
This seems to be the most common convention among gopher servers (e.g.
Gophernicus, go-gopher).

Added a script to migrate the cache to the new format. Alternatively the
following command can be used for migration in a POSIX system:

find ~/.cache/offpunk/gopher/ -type f -name 'index.txt' -exec sh -c 'mv {} "$(dirname {})/gophermap"' \;
2023-04-14 11:11:24 +02:00
Maeve Sproule - code at sprock.dev a73790f0fb Rewrite gopher URL parsing code per RFC 4266
The previous code was using the first path segment as an item type, if
it was present and a single character long. However, the standard
requires the first character after the slash to be used, if present,
regardless of whether if forms a complete path segment. This rewrite
conforms the code to the standards behaviour, and fixes both the
original problem with gopher://alexschroeder.ch/ and the problem created
with other gopherholes in my attempt to fix it.

I've also changed one piece of code that generates a gopher URL to
better conform to the standard, by avoiding the introduction of leading
slashes. This should prevent any gopherholes that don't accept leading
slashes (including gopher://alexschroeder.ch/) from having problems with
requests sent from offpunk.
2023-04-09 12:10:34 +02:00
Maeve Sproule - code at sprock.dev be2836e218 Fix gopher requests 2023-04-08 22:09:30 +02:00
Lionel Dricot b1de7c59e4 forgot debug statement 2023-04-04 20:57:17 +02:00
Lionel Dricot 5b0e63b5a5 should fix gopher requests 2023-04-03 23:18:45 +02:00
Lionel Dricot 25b2c4ef53 removing an else condition which is obviously crashing and should not be there 2023-04-03 21:18:42 +02:00
Sotiris Papatheodorou - sotiris at papatheodorou.xyz 454994002a Fix merging dictionaries with common keys
The previous code would throw KeyError if a key was present in both
os.environ and env, e.g. when LESSHISTFILE is defined in the
environment. The current code ensures that for keys present in both
dictionaries the value from env will be used.
2023-04-02 14:39:56 +02:00
Lionel Dricot fff1f39877 set accept_bad_certificates now also works for expired Gemini certificates 2023-03-30 11:28:58 +02:00
Lionel Dricot a0ce56d45e Adding chardet to README 2023-03-27 20:51:03 +02:00
Anna “CyberTailor” - cyber+misc at sysrq.in 453f8af9f9 add chardet to optional dependencies 2023-03-27 20:45:41 +02:00
Sotiris Papatheodorou - sotiris at papatheodorou.xyz dc38a3f9bc Add missing chardet module
This fixes text encoding detection for gopher requests which was using
the chardet module without importing it.

Here's a URL that causes a crash before the fix:
gopher://sdf.org/0/users/d1337/textfiles/hacker_crackdown.txt
2023-03-27 17:39:54 +02:00
Lionel Dricot faf5e0c649 version 1.9.2 2023-03-13 17:02:15 +01:00
Lionel Dricot 8da1eff920 changelog for 3.7 2023-03-12 19:54:02 +01:00
Anna “CyberTailor” 5ddc06b903 bump requires-python to >=3.7 2023-03-12 19:52:58 +01:00
Lionel Dricot 7a05e211e6 changelog for flit 2023-03-12 12:53:27 +01:00
Anna “CyberTailor” 46668d2b4c switch to a PEP517 build system
Flit is the simplest of PEP517 build systems so I used it.

Packagers will need to switch from legacy (setup.py) mode to PEP517, if
not already.

Most offpunk.py changes are stripped whitespace. Relevant are:
- Added module docstring (__doc__ variable)
- Added __version__ variable

These two will be used by Flit so you will need to bump version in one
place only.
2023-03-12 12:52:43 +01:00
Lionel Dricot 826aa4e1c2 incrementing to 1.9.1 2023-03-11 00:00:32 +01:00
Lionel Dricot 65a445627e release 1.9.1 to fix #8 2023-03-08 23:11:32 +01:00
Lionel Dricot 1333d1b8e6 added debian package to README 2023-03-08 11:39:11 +01:00
Lionel Dricot ca6728e607 1.9 2023-03-08 11:21:04 +01:00
Lionel Dricot 520b53f2a3 man page created by phoebos 2023-03-07 16:23:25 +01:00
Lionel Dricot d14e1ba0a9 fix bug #11 2023-03-07 14:36:24 +01:00
Lionel Dricot 2fd2479b53 Assume utf-8 when the header answers with an unknown encoding 2023-03-05 22:57:34 +01:00
Lionel Dricot 891684136f fixing a crash related to bug #10 2023-03-03 15:21:03 +01:00
Lionel Dricot f7a773d03a removing custom debian 2023-02-28 19:56:23 +01:00