https://github.com/milouse/ruby-net-text
Gemini, Gopher, and Finger support for Net::* and URI::*
https://github.com/milouse/ruby-net-text
finger gemini gemini-protocol gopher ruby
Last synced: about 1 year ago
JSON representation
Gemini, Gopher, and Finger support for Net::* and URI::*
- Host: GitHub
- URL: https://github.com/milouse/ruby-net-text
- Owner: milouse
- License: mit
- Created: 2021-04-28T10:49:16.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-22T20:02:07.000Z (over 1 year ago)
- Last Synced: 2025-04-13T04:51:55.473Z (about 1 year ago)
- Topics: finger, gemini, gemini-protocol, gopher, ruby
- Language: Ruby
- Homepage: https://git.umaneti.net/ruby-net-text/
- Size: 82 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Finger, Gemini, Gopher and Nex support for Net::* and URI::*
[](https://liberapay.com/milouse/donate)
[](https://flattr.com/@milouse)
[](https://paypal.me/milouse)
[](https://rubygems.org/gems/ruby-net-text)
[](https://www.rubydoc.info/gems/ruby-net-text/)
This project aims to add connectors to well known internet text protocols
through the standard `Net::*` and `URI::*` ruby module namespaces.
## News
### Version 0.0.9 gemini breaking changes
This new version changes the Gemini namespace. Everything is now under the
same `Net::Gemini` namespace. If you just used this gem as per the
documentation, nothing changes for you. However, if you were using some hidden
part of the Gemini API, you will probably have to make some changes.
Here are all the changes:
| Old names | New names |
|------------------------|--------------------------------------------------------------------------|
| Net::GeminiRequest | Net::Gemini::Request (still 'net/gemini/request') |
| Net::GeminiBadRequest | Net::Gemini::BadRequest (require 'net/gemini/error') |
| Net::GeminiResponse | Net::Gemini::Response (still 'net/gemini/response') |
| Net::GeminiBadResponse | Net::Gemini::BadResponse (require 'net/gemini/error') |
| Net::GeminiError | Net::Gemini::Error (require 'net/gemini/error') |
| Net::Gemini.new | Net::Gemini::Client.new (directly required as part of 'net/gemini') |
| Gemini::ReflowText | Net::Text::Reflow (no more expected to be included, but directly called) |
| Gemini::GmiParser | - (directly integrated into Net::Gemini::Response) |
| Gemini::SSL | - (directly integrated into Net::Gemini::Client) |
## Documentation
The code is self-documented and you can browse it on rubydoc.info:
### Finger
- [URI::Finger](https://www.rubydoc.info/gems/ruby-net-text/URI/Finger)
- [Net::Finger](https://www.rubydoc.info/gems/ruby-net-text/Net/Finger)
### Gemini
- [URI::Gemini](https://www.rubydoc.info/gems/ruby-net-text/URI/Gemini)
- [Net::Gemini](https://www.rubydoc.info/gems/ruby-net-text/Net/Gemini)
### Gopher
- [URI::Gopher](https://www.rubydoc.info/gems/ruby-net-text/URI/Gopher)
- [Net::Gopher](https://www.rubydoc.info/gems/ruby-net-text/Net/Gopher)
### Nex
- [URI::Nex](https://www.rubydoc.info/gems/ruby-net-text/URI/Nex)
- [Net::Nex](https://www.rubydoc.info/gems/ruby-net-text/Net/Nex)
## Helpers
This repository also includes 2 little helpers:
- `bin/heraut`: a toy client for Finger, Gemini, Gopher and Nex. Give it a URI
and it will output the remote file.
- `bin/test_thread.rb`: a toy performance test script to run against a Gemini
server