muby 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/muby/configuration.rb +3 -2
- data/lib/muby/help.rb +2 -0
- data/lib/muby/inputwindow.rb +13 -6
- data/lib/muby/outputwindow.rb +1 -1
- data/lib/muby/user_methods.rb +1 -0
- metadata +1 -1
data/lib/muby/configuration.rb
CHANGED
@@ -3,8 +3,9 @@ require 'ncurses'
|
|
3
3
|
|
4
4
|
module Muby
|
5
5
|
|
6
|
-
VERSION = "0.7.0"
|
7
6
|
|
7
|
+
VERSION = "0.7.1" unless defined?(Muby::VERSION)
|
8
|
+
|
8
9
|
#
|
9
10
|
# The class that encapsulates all configuration.
|
10
11
|
#
|
@@ -17,7 +18,7 @@ module Muby
|
|
17
18
|
#
|
18
19
|
class Configuration
|
19
20
|
|
20
|
-
@@instance
|
21
|
+
@@instance ||= nil
|
21
22
|
|
22
23
|
def self.get
|
23
24
|
@@instance ||= Configuration.new
|
data/lib/muby/help.rb
CHANGED
@@ -7,6 +7,8 @@ module Muby
|
|
7
7
|
:feed_completer_with_input => "If true, the completion command will use everything seen from the remote end to calculate possible completions.",
|
8
8
|
:extra_completions => "Fill this array with words that you allways want to be able to complete to.",
|
9
9
|
:extra_verbosity_settings => "The settings we want to toggle to when running the toggle_verbosity! method.",
|
10
|
+
:input_window_geometry => "The top and left corners of the InputWindow, and its width and height. The values will be set to what you enter here, or if they are Strings will be evaluated when the windows are set up.",
|
11
|
+
:output_window_geometry => "The top and left corners of the OutputWindow, and its width and height. The values will be set to what you enter here, or if they are Strings will be evaluated when the windows are set up.",
|
10
12
|
:echo_keycodes => "Whether to echo the keycode for every key pressed or not.",
|
11
13
|
:echo => "Whether to print what is sent to the server to the outputwindow.",
|
12
14
|
:show_level => "What level of information to provide the user.
|
data/lib/muby/inputwindow.rb
CHANGED
@@ -20,8 +20,8 @@ class Muby::InputWindow
|
|
20
20
|
include Muby::Styled
|
21
21
|
include Muby::HelperMethods
|
22
22
|
|
23
|
-
@@instance
|
24
|
-
|
23
|
+
@@instance ||= nil
|
24
|
+
|
25
25
|
def self.get_instance
|
26
26
|
@@instance ||= Muby::InputWindow.new
|
27
27
|
end
|
@@ -59,20 +59,27 @@ class Muby::InputWindow
|
|
59
59
|
help unless conf.user_edited_config_file
|
60
60
|
end
|
61
61
|
|
62
|
+
def reload!
|
63
|
+
@left = nil
|
64
|
+
@top = nil
|
65
|
+
@width = nil
|
66
|
+
@height = nil
|
67
|
+
end
|
68
|
+
|
62
69
|
def left
|
63
|
-
execute_with_verbosity(:trace, conf.input_window_geometry[:left])
|
70
|
+
@left ||= execute_with_verbosity(:trace, conf.input_window_geometry[:left])
|
64
71
|
end
|
65
72
|
|
66
73
|
def top
|
67
|
-
execute_with_verbosity(:trace, conf.input_window_geometry[:top])
|
74
|
+
@top ||= execute_with_verbosity(:trace, conf.input_window_geometry[:top])
|
68
75
|
end
|
69
76
|
|
70
77
|
def width
|
71
|
-
execute_with_verbosity(:trace, conf.input_window_geometry[:width])
|
78
|
+
@width ||= execute_with_verbosity(:trace, conf.input_window_geometry[:width])
|
72
79
|
end
|
73
80
|
|
74
81
|
def height
|
75
|
-
execute_with_verbosity(:trace, conf.input_window_geometry[:height])
|
82
|
+
@height ||= execute_with_verbosity(:trace, conf.input_window_geometry[:height])
|
76
83
|
end
|
77
84
|
|
78
85
|
#
|
data/lib/muby/outputwindow.rb
CHANGED
data/lib/muby/user_methods.rb
CHANGED