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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff2aa9c86a961ebb613299ee247dc201b473c7659c4a035546e4143f0a35b863
4
- data.tar.gz: 5abc56417d93af1c3dea919e90614672eb4f920024971f52235487399194f2d0
3
+ metadata.gz: fef95870b5ff0f84cafe56d92f6eca5abebf18f387510a35d6a1963c1fbc3026
4
+ data.tar.gz: c29c900c0c19394f385552bd7460a403e0f91187bb44fcd446d0557e9d827602
5
5
  SHA512:
6
- metadata.gz: cb8514110747d8d4d8df20c48e0c6685bc2a6b8961dbdc47c0439fd668c0a8dd75f55eb01e70a847681cc667a01c46ca75f40117f5483e2fa1e14dd3028a0ccd
7
- data.tar.gz: b5ecc5b4e032a94298c17d9e198883182be82881ecaa5001d7ab6aaa730301b75671347437f813e551c94a7b525e10fa7fdf432374088dda1c2bda020a9f6944
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
- state[:options].each do |o|
31
+ output[:options].each do |o|
36
32
  list += "<li>#{o}</li>"
37
33
  end
38
34
  list += "</ol>"
@@ -1,5 +1,5 @@
1
1
  module Gamefic
2
2
  module Mud
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
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.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: 2021-07-10 00:00:00.000000000 Z
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