aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2022-04-09 11:11:35 +0200
committerHarald Eilertsen <haraldei@anduin.net>2022-04-09 11:11:35 +0200
commitc172c8e6296377ba4b3ae2aef393893d205d76d7 (patch)
treece0460b55b4944fabef35c582f8f5d9e37336fb0
parentf0c300d0a2975c0901810a2104dc2ffbca0ef91c (diff)
downloadvolse-hz-tools-c172c8e6296377ba4b3ae2aef393893d205d76d7.tar.gz
volse-hz-tools-c172c8e6296377ba4b3ae2aef393893d205d76d7.tar.bz2
volse-hz-tools-c172c8e6296377ba4b3ae2aef393893d205d76d7.zip
Add some info about usage etc to head of file.HEADdev
-rwxr-xr-xhubzilla-versions.rb30
1 files changed, 29 insertions, 1 deletions
diff --git a/hubzilla-versions.rb b/hubzilla-versions.rb
index e1977e7..203aa57 100755
--- a/hubzilla-versions.rb
+++ b/hubzilla-versions.rb
@@ -1,8 +1,36 @@
#!/usr/bin/env ruby
# SPDX-FileCopyrightText: 2022 Harald Eilertsen <haraldei@anduin.net>
-#
# SPDX-License-Identifier: AGPL-3.0-or-later
+#
+# A small program to query the-federation.info about the known Hubzilla
+# instances and output a simple overview of which versions are actively in use.
+#
+# Usage:
+#
+# ./hubzilla-versions.rb [<json-data-file>]
+#
+# With no arguments it fetches the information directly from
+# the-federation.info.
+#
+# If you already have a downloaded json file with the proper fields available,
+# you can supply the file name as the only argument, and it will use that
+# instead of fetching it from the remote server. Mostly useful during
+# development/testing to not overload the remote server.
+#
+# Requirements:
+#
+# - A standard installation of the Ruby programming language.
+# (tested on Ruby version 3.0.3, but should afaict work on any
+# recent ruby.)
+#
+# License:
+#
+# This program is licensed under the GNU Affero General Public License version
+# 3.0 (or at your option a later version), which means you are free to use,
+# study, share and improve the program as you will. See
+# LICENSES/AGPL-3.0-or-later.txt for the details.
+#
require 'erb'
require 'json'