monsternet 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1f91b7303b45dba986e13122cf8405150e25249ff17f8802d73ae02f999583d0
4
+ data.tar.gz: a61f1415be13f65a067a5d47f8b7f52c313e2781d27c94c12da17bf913e818fb
5
+ SHA512:
6
+ metadata.gz: 047dbbfb36963bd488257154b0d6348b61ac879c520289e39074eb56dc030bab71e716fa137f1120a2c0435c6fe705da4ae69cfe0869fdd5df9bcb9d475d5660
7
+ data.tar.gz: 920c8057adfe7cbfbc1dc259c9e7b5290840291324d751d62cf257b418131a34e424c85262c36465213f48944672d9c2cae5e814e8bbdaa8e26e7415f858eb8f
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-10-09
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at xorgnak@xorgnak.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in monsternet.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Erik Olson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # Monsternet
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/monsternet`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Install the gem and add to the application's Gemfile by executing:
10
+
11
+ $ bundle add monsternet
12
+
13
+ If bundler is not being used to manage dependencies, install the gem by executing:
14
+
15
+ $ gem install monsternet
16
+
17
+ ## Usage
18
+
19
+ TODO: Write usage instructions here
20
+
21
+ ## Development
22
+
23
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
24
+
25
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/monsternet. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/monsternet/blob/master/CODE_OF_CONDUCT.md).
30
+
31
+ ## License
32
+
33
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
34
+
35
+ ## Code of Conduct
36
+
37
+ Everyone interacting in the Monsternet project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/monsternet/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Monsternet
4
+ VERSION = "0.1.0"
5
+ end
data/lib/monsternet.rb ADDED
@@ -0,0 +1,338 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "monsternet/version"
4
+
5
+ module Monsternet
6
+ class Error < StandardError; end
7
+ end
8
+
9
+ require 'socket'
10
+ require 'thread'
11
+ require 'set'
12
+ require 'erb'
13
+ require 'cgi'
14
+ require 'json'
15
+
16
+ ATTR_FILE = 'attr.json'
17
+ UUID_FILE = 'uuid.txt'
18
+ PEERS_FILE = 'peers.txt'
19
+ PAGES_DIR = "#{Dir.pwd}/pages"
20
+
21
+ if !File.exists?(UUID_FILE)
22
+ _id = []
23
+ 8.times { _id << rand(16).to_s(16) }
24
+ File.open(UUID_FILE, 'w') { |f| f.write(_id.join("")) }
25
+ end
26
+
27
+ TOK = File.read(UUID_FILE)
28
+
29
+ ID = ENV['ID'] || TOK
30
+ PORT = ENV['PORT'] || 9090
31
+ NICK = ENV['NICK'] || "M-#{ID}"
32
+
33
+
34
+ # Create pages dir if it doesn't exist
35
+ Dir.mkdir(PAGES_DIR) unless Dir.exist?(PAGES_DIR)
36
+
37
+ # Thread-safe peer list
38
+ $known_peers = Set.new
39
+
40
+ # Load peers from file
41
+ if File.exist?(PEERS_FILE)
42
+ File.readlines(PEERS_FILE).each do |line|
43
+ $known_peers << line.strip unless line.strip.empty?
44
+ end
45
+ end
46
+
47
+ EV = Hash.new { |h,k| h[k] = lambda() { |*a| puts %[EV> #{k} #{a}] } }
48
+
49
+ # Simple Spartan response helper
50
+ def send_response(socket, status, body = "")
51
+ socket.puts CGI.escape(%[#{status}\n#{body}])
52
+ end
53
+
54
+ # Handle an incoming client connection
55
+ def handle_client(socket)
56
+ request = CGI.unescape(socket.gets).gsub(/\n+/, "\n")
57
+ if request.nil?
58
+ send_response(socket, 400)
59
+ return
60
+ end
61
+
62
+ if request.start_with?("HI")
63
+ # Peer announcing itself: /announce IP:PORT
64
+ _, peer_id, peer_nick, peer_info = request.split(" ")
65
+
66
+ if peer_info
67
+ if !MON.peer.has_key?(peer_id)
68
+ EV[:peer].call(peer_id, peer_nick, peer_info)
69
+ File.open(PEERS_FILE, 'a') { |f| f.puts(peer_info) }
70
+ end
71
+ MON.peer[peer_id] = peer_info
72
+ MON.nicks[peer_nick] = peer_id
73
+ MON.nick[peer_id] = peer_nick
74
+ MON.times[peer_id] = Time.now.utc.to_i
75
+ MON.lives[peer_id] = true
76
+ #puts "[HI] #{peer_nick}"
77
+ EV[:hi].call(peer_id)
78
+ send_message(peer_info, "SUP #{ID} #{NICK} #{my_info}")
79
+ send_response(socket, 200)
80
+ return nil
81
+ else
82
+ send_response(socket, 400, "Missing peer info")
83
+ return nil
84
+ end
85
+
86
+ elsif request.start_with?("SUP")
87
+ _, peer_id, peer_nick, peer_info = request.split(" ")
88
+ if peer_info
89
+ if !MON.peer.has_key? peer_id
90
+ EV[:new].call(peer_info, peer_id, peer_nick)
91
+ File.open(PEERS_FILE, 'a') { |f| f.puts(peer_info) }
92
+ end
93
+ MON.peer[peer_id] = peer_info
94
+ MON.nicks[peer_nick] = peer_id
95
+ MON.nick[peer_id] = peer_nick
96
+ MON.seens[peer_id] = Time.now.utc.to_i
97
+ #puts "[HI] #{peer_nick}"
98
+ EV[:sup].call(peer_id)
99
+ send_response(socket, 200, "SUP #{ID} #{NICK} #{my_info}")
100
+ return "[HI] #{peer_nick}"
101
+ else
102
+ send_response(socket, 400, "Missing peer info")
103
+ return nil
104
+ end
105
+
106
+
107
+ elsif request.start_with?("BYE")
108
+ # Peer announcing itself: /announce IP:PORT
109
+ peer_nick = request.split(" ")[1]
110
+ if peer_nick
111
+ MON.lefts[MON.nicks[peer_nick]] = Time.now.utc.to_i
112
+ MON.lives[peer_id] = false
113
+ #puts "[BYE] #{peer_nick}"
114
+ EV[:bye].call(peer_id)
115
+ send_response(socket, 200, "Bye #{peer_info}")
116
+ return "[BYE] #{peer_nick}"
117
+ else
118
+ send_response(socket, 400, "Missing peer info")
119
+ return nil
120
+ end
121
+
122
+ elsif request.start_with?("YO")
123
+ # /message NAME: Hello world
124
+ parts = request.split(" ")
125
+ parts.shift
126
+ #puts parts.join(" ")
127
+ EV[:yo].call(peer_id, parts.join(" "))
128
+ send_response(socket, 200, Time.now.utc.to_s)
129
+ return nil
130
+
131
+ elsif request.start_with?("GET")
132
+ a = request.split(" ")
133
+ a.shift
134
+ @peer = a.shift
135
+ f = a.shift
136
+ b = a.join(" ")
137
+ @params = {}
138
+ b.split("&").each { |e| ee = e.split("="); @params[ee[0]] = ee[1] }
139
+ # puts %[<<< #{f}: #{@params}]
140
+ file_path = File.join(PAGES_DIR, f)
141
+ if File.exist?(file_path)
142
+ EV[:get].call(@peer, file_path, @params)
143
+ send_response(socket, 200, %[#{ERB.new(File.read(file_path)).result(binding)}])
144
+ return nil
145
+ else
146
+ send_response(socket, 404, "No such page")
147
+ return nil
148
+ end
149
+ end
150
+ rescue => e
151
+ puts "[!!!] Error: #{e}"
152
+ send_response(socket, 500)
153
+ ensure
154
+ socket.close
155
+ end
156
+
157
+ # Start TCP server thread
158
+ def start_server
159
+ server = TCPServer.new('0.0.0.0', PORT)
160
+ puts "[server] #{PORT}"
161
+ puts "[nick] #{NICK}"
162
+
163
+ loop do
164
+ client = server.accept
165
+ Thread.new { handle_client(client) }
166
+ end
167
+ end
168
+
169
+ def my_info
170
+ %[#{Socket.gethostname}:#{PORT}]
171
+ end
172
+
173
+ def send_message(peer, message)
174
+ host, port = peer.to_s.split(":")
175
+ begin
176
+ socket = TCPSocket.new(host, port.to_i)
177
+ socket.puts CGI.escape(message)
178
+ #puts "[send] #{peer}: #{message}"
179
+ a = []
180
+ r = CGI.unescape(socket.gets).gsub(/\n+/,"\n").split("\n")
181
+ r.shift
182
+ #puts %[[res] #{r.join("\n")}]
183
+ socket.close
184
+ return r.join("\n")
185
+ rescue => e
186
+ puts "[err] #{peer}: #{e}"
187
+ end
188
+ end
189
+
190
+ def peers x
191
+ $known_peers.to_a.each { |e| send_message(e, x) }
192
+ end
193
+
194
+ def leave_to_peers
195
+ peers("BYE #{NICK}")
196
+ end
197
+ def announce_to_peers
198
+ peers("HI #{ID} #{NICK} #{my_info}")
199
+ end
200
+
201
+ module MON
202
+ @@PEERS = {}
203
+ def self.peer
204
+ @@PEERS
205
+ end
206
+ @@NICKS = {}
207
+ def self.nicks
208
+ @@NICKS
209
+ end
210
+ @@NICK = {}
211
+ def self.nick
212
+ @@NICK
213
+ end
214
+ @@TIMES = {}
215
+ def self.times
216
+ @@TIMES
217
+ end
218
+ @@LIVES = {}
219
+ def self.lives
220
+ @@LIVES
221
+ end
222
+ @@SEENS = {}
223
+ def self.seens
224
+ @@SEENS
225
+ end
226
+ @@LEFTS = {}
227
+ def self.lefts
228
+ @@LEFTS
229
+ end
230
+ def self.init!
231
+ Thread.new { start_server; }
232
+ sleep 1
233
+ announce_to_peers
234
+ end
235
+ def self.hi!
236
+ announce_to_peers
237
+ end
238
+ def self.bye!
239
+ leave_to_peers
240
+ end
241
+ def self.hood &b
242
+ if block_given?
243
+ $known_peers.each { |e| b.call(e) }
244
+ else
245
+ $known_peers
246
+ end
247
+ end
248
+
249
+ def self.yo p, m, &b
250
+ if @@NICKS.has_key? p.to_s
251
+ r = send_message(@@PEERS[@@NICKS[p.to_s]], %[YO [YO][#{NICK}] #{m}])
252
+ if block_given?
253
+ b.call(r)
254
+ else
255
+ return r
256
+ end
257
+ end
258
+ end
259
+
260
+ def self.get p, i, h={}, &b
261
+ if @@NICKS.has_key? p.to_s
262
+ s = []
263
+ h.merge({ id: ID, nick: NICK }).each_pair { |k,v| s << %[#{k}=#{v}] }
264
+ r = send_message(@@PEERS[@@NICKS[p.to_s]], %[GET #{p} #{i} #{s.join("&")}])
265
+ if block_given?
266
+ b.call(r)
267
+ else
268
+ return r
269
+ end
270
+ end
271
+ end
272
+ end
273
+
274
+ class Monster
275
+ def initialize
276
+ if !File.exist?(ATTR_FILE)
277
+ File.open(ATTR_FILE, 'w') { |f| f.write(JSON.generate({})) }
278
+ end
279
+ @attr = JSON.parse(File.read(ATTR_FILE))
280
+ MON.init!
281
+ end
282
+ def attr
283
+ @attr
284
+ end
285
+ def save
286
+ File.open(ATTR_FILE, 'w') { |f| f.write(JSON.generate(@attr)) }
287
+ return 'OK'
288
+ end
289
+ def id
290
+ ID
291
+ end
292
+ def nick
293
+ NICK
294
+ end
295
+ def peers
296
+ MON.nicks.keys
297
+ end
298
+ def yo k, m
299
+ MON.yo(k, m)
300
+ end
301
+ def yell m
302
+ peers.each { |e| yo(e, m) }
303
+ end
304
+ def act k, x, h={}
305
+ EV[:act].call(MON.get(k, "#{x}.erb", h))
306
+ end
307
+ def look k
308
+ act(k, 'index', @attr)
309
+ end
310
+ def me
311
+ my_info
312
+ end
313
+ def hi
314
+ MON.hi!
315
+ end
316
+ def bye
317
+ MON.bye!
318
+ exit
319
+ end
320
+ def methods
321
+ [ :id, :nick, :attr, :peers, :yo, :yell, :act, :look, :me, :save, :hi, :bye, :help ]
322
+ end
323
+ def help
324
+ EV[:help].call({
325
+ id: "Your id",
326
+ nick: "Your nick",
327
+ attr: "Your attributes",
328
+ peers: "Known Peers",
329
+ yo: "Send NICK MESSAGE",
330
+ yell: "Send all MESSAGE",
331
+ act: "Fetch PEER INDEX",
332
+ look: "Fetch PEER index.erb with attributes",
333
+ me: "Your host",
334
+ save: "Save your attributes",
335
+ hi: "Announce to peers",
336
+ bye: "Leave peers and quit" })
337
+ end
338
+ end
@@ -0,0 +1,4 @@
1
+ module Monsternet
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: monsternet
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Erik Olson
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2025-10-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: socket
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thread
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: set
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: cgi
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: erb
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: json
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: tty-prompt
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: tty-table
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: The server, client, shell, and library for a retro-futuristic minimal
126
+ network for people named after a cat.
127
+ email:
128
+ - xorgnak@xorgnak.com
129
+ executables: []
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - CHANGELOG.md
134
+ - CODE_OF_CONDUCT.md
135
+ - Gemfile
136
+ - LICENSE.txt
137
+ - README.md
138
+ - Rakefile
139
+ - lib/monsternet.rb
140
+ - lib/monsternet/version.rb
141
+ - sig/monsternet.rbs
142
+ homepage: https://github.com/xorgnak/monsternet
143
+ licenses:
144
+ - MIT
145
+ metadata:
146
+ homepage_uri: https://github.com/xorgnak/monsternet
147
+ post_install_message:
148
+ rdoc_options: []
149
+ require_paths:
150
+ - lib
151
+ required_ruby_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: 2.6.0
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ requirements: []
162
+ rubygems_version: 3.3.15
163
+ signing_key:
164
+ specification_version: 4
165
+ summary: A light-weight minimal network with text based chat and browsing.
166
+ test_files: []