gamefic-mud 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gamefic-mud/adapter/tcp.rb +2 -6
- data/lib/gamefic-mud/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fef95870b5ff0f84cafe56d92f6eca5abebf18f387510a35d6a1963c1fbc3026
|
4
|
+
data.tar.gz: c29c900c0c19394f385552bd7460a403e0f91187bb44fcd446d0557e9d827602
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b6635e3257e23a7ae006ec2875ba6e3034c60965c08b757c8157ca986417f40726f8f7cfd070f60a373052ba686cb4d399ab637c339eabe35c813a56b061b63
|
7
|
+
data.tar.gz: 390c45811524cc06cc458cc95c5d94ca3fedfd27bbf26ccf5868b11c0241773a9309fdaada3ee3e75b271d7d324f68c6c2cc72f7707b79325c36745db420618e
|
@@ -22,17 +22,13 @@ module Gamefic
|
|
22
22
|
puts "Connection received from #{ip}:#{port}"
|
23
23
|
end
|
24
24
|
|
25
|
-
def receive_data data
|
26
|
-
state.process data
|
27
|
-
end
|
28
|
-
|
29
25
|
def update output
|
30
26
|
# TCP connections are assumed to be terminal clients. Convert messages and options into
|
31
27
|
# an HTML block and convert it to ANSI text.
|
32
|
-
text = output[:messages]
|
28
|
+
text = output[:messages].to_s
|
33
29
|
unless output[:options].nil?
|
34
30
|
list = '<ol>'
|
35
|
-
|
31
|
+
output[:options].each do |o|
|
36
32
|
list += "<li>#{o}</li>"
|
37
33
|
end
|
38
34
|
list += "</ol>"
|
data/lib/gamefic-mud/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gamefic-mud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Snyder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: em-websocket
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: net-telnet
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.2'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.2'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rspec
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|