muby 0.7.4 → 0.7.5
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.
- data/lib/muby/configuration.rb +5 -3
- data/lib/muby/connection.rb +7 -8
- metadata +49 -42
data/lib/muby/configuration.rb
CHANGED
@@ -4,7 +4,7 @@ require 'ncurses'
|
|
4
4
|
module Muby
|
5
5
|
|
6
6
|
|
7
|
-
VERSION = "0.7.
|
7
|
+
VERSION = "0.7.5" unless defined?(Muby::VERSION)
|
8
8
|
|
9
9
|
#
|
10
10
|
# The class that encapsulates all configuration.
|
@@ -272,8 +272,10 @@ module Muby
|
|
272
272
|
#
|
273
273
|
def load_user_files!
|
274
274
|
@loaded_rc_file = false
|
275
|
-
if to_load = [".mubyrc", "mubyrc"].
|
276
|
-
File.
|
275
|
+
if to_load = [".mubyrc", "mubyrc"].collect do |file_name|
|
276
|
+
File.join(ENV["HOME"], file_name)
|
277
|
+
end.find do |file_name|
|
278
|
+
File.exists?(file_name)
|
277
279
|
end
|
278
280
|
nice_load!(to_load)
|
279
281
|
@loaded_rc_file = to_load
|
data/lib/muby/connection.rb
CHANGED
@@ -232,7 +232,7 @@ class Muby::Connection
|
|
232
232
|
@showBuffer.push(style)
|
233
233
|
end
|
234
234
|
end
|
235
|
-
elsif !
|
235
|
+
elsif !conf.broken_keycodes.include?(c)
|
236
236
|
#
|
237
237
|
# This is not telnet command OR ansi, lets treat it as nice MUD text!
|
238
238
|
#
|
@@ -263,9 +263,6 @@ class Muby::Connection
|
|
263
263
|
while select([@socket],nil,nil,1) && c = getc
|
264
264
|
handle(c)
|
265
265
|
end
|
266
|
-
if conf.flush
|
267
|
-
display_buffer
|
268
|
-
end
|
269
266
|
end
|
270
267
|
status("Connection closed by remote end")
|
271
268
|
@inputWindow.disconnect
|
@@ -284,12 +281,14 @@ class Muby::Connection
|
|
284
281
|
|
285
282
|
def manage_buffers(c)
|
286
283
|
trigger(@matchBuffer, conf.remote_character_triggers, true)
|
287
|
-
if c == 10
|
288
|
-
trigger(@matchBuffer, conf.remote_triggers, false)
|
284
|
+
if c == 10 || conf.flush
|
289
285
|
display_buffer
|
290
|
-
@matchBuffer = ""
|
291
|
-
@used_triggers = {}
|
292
286
|
@showBuffer = []
|
287
|
+
if c == 10
|
288
|
+
trigger(@matchBuffer, conf.remote_triggers, false)
|
289
|
+
@matchBuffer = ""
|
290
|
+
@used_triggers = {}
|
291
|
+
end
|
293
292
|
end
|
294
293
|
end
|
295
294
|
|
metadata
CHANGED
@@ -1,33 +1,34 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: muby
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.7.
|
7
|
-
date: 2007-11-15 00:00:00 +01:00
|
8
|
-
summary: A simple but powerful mud client.
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: muby-talk at rubyforge dot org
|
12
|
-
homepage:
|
13
|
-
rubyforge_project:
|
14
|
-
description:
|
15
|
-
autorequire: muby
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">"
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 0.0.0
|
24
|
-
version:
|
4
|
+
version: 0.7.5
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Martin Kihlgren, Sy Ali
|
8
|
+
autorequire: muby
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-02-26 00:00:00 +01:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: ncurses
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.9.1
|
23
|
+
version:
|
24
|
+
description:
|
25
|
+
email: muby-talk at rubyforge dot org
|
26
|
+
executables:
|
27
|
+
- muby
|
28
|
+
extensions: []
|
29
|
+
|
30
|
+
extra_rdoc_files: []
|
31
|
+
|
31
32
|
files:
|
32
33
|
- lib/muby/connection.rb
|
33
34
|
- lib/muby/logger.rb
|
@@ -66,26 +67,32 @@ files:
|
|
66
67
|
- contrib/sy/cce.rb
|
67
68
|
- contrib/aardmud.org_4000/README.txt
|
68
69
|
- LICENSE
|
69
|
-
|
70
|
-
|
70
|
+
has_rdoc: true
|
71
|
+
homepage:
|
72
|
+
post_install_message:
|
71
73
|
rdoc_options:
|
72
74
|
- --line-numbers
|
73
75
|
- --inline-source
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
76
|
+
require_paths:
|
77
|
+
- lib
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: "0"
|
83
|
+
version:
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: "0"
|
89
|
+
version:
|
80
90
|
requirements: []
|
81
91
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: 0.9.1
|
91
|
-
version:
|
92
|
+
rubyforge_project:
|
93
|
+
rubygems_version: 1.0.1
|
94
|
+
signing_key:
|
95
|
+
specification_version: 2
|
96
|
+
summary: A simple but powerful mud client.
|
97
|
+
test_files: []
|
98
|
+
|