๐พ Archived View for gem.graypegg.com โบ gor captured on 2024-02-05 at 09:13:03. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2023-12-28)
โก๏ธ Next capture (2024-03-21)
-=-=-=-=-=-=-
So I've built out a little Ruby framework for the Gemini protocol. It's serving this site you're on now! I'll prove it, the time is 2024-02-05 14:13:03 +0000 and the current scope is GORController. (Values included in a template, how very Web1.0!) It's quite simple at the moment, with basically just controllers for responding to 'get' (no query string) and 'answer' (with query string) requests in a rails-y looking syntax.
This is the only repo currently. It's just my gemini capsule. This will change in the future with a more clean slate to start from.
.
โโโ app/
โ โโโ persistent/
โ โ โโโ # Objects instantiated at server start up,
โ โ โโโ # and persist between connections
โ โ โโโ ๐ hit_counter.rb
โ โ
โ โโโ # Controllers are included here, they cannot be nested
โ โโโ ๐ gor_controller.rb
โ โโโ ๐ guestbook_controller.rb
โ โโโ ๐ home_page_controller.rb
โ
โโโ config/
โ โโโ # Some configuration files
โ โโโ ๐ robots.txt
โ โโโ ๐ routes.rb
โ โโโ ๐ tls.rb
โ
โโโ framework/
โ โโโ ... guts in here ...
โ
โโโ ๐งพ persistent.csv
โ # A tab-seperated file. There's an abstraction for writing
โ # to this file in the Persistent class.