vedeu 0.8.1 → 0.8.2
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 +4 -4
- data/docs/api.md +0 -357
- data/docs/configuration.md +1 -1
- data/docs/dsl/by_method/add_command.md +5 -0
- data/docs/dsl/by_method/add_keypress.md +4 -0
- data/docs/dsl/by_method/all_commands.md +3 -0
- data/docs/dsl/by_method/all_keypresses.md +3 -0
- data/docs/dsl/by_method/background_colours.md +4 -0
- data/docs/dsl/by_method/bind.md +43 -0
- data/docs/dsl/by_method/bind_alias.md +4 -0
- data/docs/dsl/by_method/borders.md +6 -0
- data/docs/dsl/by_method/bound.md +3 -0
- data/docs/dsl/by_method/buffer_update.md +1 -0
- data/docs/dsl/by_method/buffer_write.md +1 -0
- data/docs/dsl/by_method/buffers.md +5 -0
- data/docs/dsl/by_method/clear_by_group.md +1 -0
- data/docs/dsl/by_method/clear_by_name.md +1 -0
- data/docs/dsl/by_method/clear_content_by_name.md +1 -0
- data/docs/dsl/by_method/clock_time.md +1 -0
- data/docs/dsl/by_method/cursor.md +1 -0
- data/docs/dsl/by_method/cursors.md +1 -0
- data/docs/dsl/by_method/direct_write.md +1 -0
- data/docs/dsl/by_method/documents.md +1 -0
- data/docs/dsl/by_method/drb_restart.md +1 -0
- data/docs/dsl/by_method/drb_start.md +1 -0
- data/docs/dsl/by_method/drb_status.md +1 -0
- data/docs/dsl/by_method/drb_stop.md +1 -0
- data/docs/dsl/by_method/events.md +1 -0
- data/docs/dsl/by_method/exit.md +1 -0
- data/docs/dsl/by_method/focus.md +1 -0
- data/docs/dsl/by_method/focus_by_name.md +1 -0
- data/docs/dsl/by_method/focus_next.md +1 -0
- data/docs/dsl/by_method/focus_previous.md +1 -0
- data/docs/dsl/by_method/focussed.md +1 -0
- data/docs/dsl/by_method/geometries.md +1 -0
- data/docs/dsl/by_method/geometry.md +1 -0
- data/docs/dsl/by_method/goto.md +5 -6
- data/docs/dsl/by_method/group.md +1 -0
- data/docs/dsl/by_method/groups.md +1 -0
- data/docs/dsl/by_method/hide_cursor.md +1 -0
- data/docs/dsl/by_method/hide_group.md +1 -0
- data/docs/dsl/by_method/hide_interface.md +1 -0
- data/docs/dsl/by_method/interface.md +1 -0
- data/docs/dsl/by_method/interfaces.md +1 -0
- data/docs/dsl/by_method/keymap.md +1 -0
- data/docs/dsl/by_method/keymap/interface.md +1 -0
- data/docs/dsl/by_method/keymap/key.md +1 -0
- data/docs/dsl/by_method/keymap/name.md +1 -0
- data/docs/dsl/by_method/keymaps.md +1 -0
- data/docs/dsl/by_method/last_command.md +4 -0
- data/docs/dsl/by_method/last_keypress.md +4 -0
- data/docs/dsl/by_method/log.md +1 -0
- data/docs/dsl/by_method/log_stderr.md +1 -0
- data/docs/dsl/by_method/log_stdout.md +1 -0
- data/docs/dsl/by_method/log_timestamp.md +1 -0
- data/docs/dsl/by_method/menu.md +1 -0
- data/docs/dsl/by_method/menus.md +1 -0
- data/docs/dsl/by_method/read.md +33 -0
- data/docs/dsl/by_method/ready.md +1 -0
- data/docs/dsl/by_method/render.md +1 -0
- data/docs/dsl/by_method/render_output.md +1 -0
- data/docs/dsl/by_method/renderer.md +1 -0
- data/docs/dsl/by_method/renderers.md +1 -0
- data/docs/dsl/by_method/renders.md +1 -0
- data/docs/dsl/by_method/show_cursor.md +1 -0
- data/docs/dsl/by_method/show_group.md +1 -0
- data/docs/dsl/by_method/show_interface.md +1 -0
- data/docs/dsl/by_method/toggle_cursor.md +1 -0
- data/docs/dsl/by_method/toggle_group.md +1 -0
- data/docs/dsl/by_method/toggle_interface.md +1 -0
- data/docs/dsl/by_method/trigger.md +1 -0
- data/docs/dsl/by_method/unbind.md +5 -0
- data/docs/dsl/by_method/unbind_alias.md +4 -0
- data/docs/dsl/by_method/views.md +1 -0
- data/docs/dsl/by_method/write.md +5 -0
- data/examples/views/lines_streams.rb +45 -0
- data/lib/vedeu/application/application_view.rb +1 -1
- data/lib/vedeu/borders/border.rb +2 -2
- data/lib/vedeu/cells/border.rb +1 -1
- data/lib/vedeu/cells/borders/bottom_horizontal.rb +1 -1
- data/lib/vedeu/cells/borders/bottom_left.rb +1 -1
- data/lib/vedeu/cells/borders/bottom_right.rb +1 -1
- data/lib/vedeu/cells/borders/horizontal.rb +1 -1
- data/lib/vedeu/cells/borders/left_vertical.rb +1 -1
- data/lib/vedeu/cells/borders/right_vertical.rb +1 -1
- data/lib/vedeu/cells/borders/top_horizontal.rb +1 -1
- data/lib/vedeu/cells/borders/top_left.rb +1 -1
- data/lib/vedeu/cells/borders/top_right.rb +1 -1
- data/lib/vedeu/cells/borders/vertical.rb +1 -1
- data/lib/vedeu/colours/background.rb +1 -1
- data/lib/vedeu/colours/foreground.rb +1 -1
- data/lib/vedeu/colours/translator.rb +4 -7
- data/lib/vedeu/colours/validator.rb +1 -1
- data/lib/vedeu/configuration/api.rb +1 -1
- data/lib/vedeu/configuration/configuration.rb +20 -11
- data/lib/vedeu/cursors/cursor.rb +2 -2
- data/lib/vedeu/distributed/server.rb +7 -7
- data/lib/vedeu/dsl/views.rb +1 -1
- data/lib/vedeu/esc/background.rb +1 -1
- data/lib/vedeu/esc/colours.rb +3 -0
- data/lib/vedeu/esc/esc.rb +11 -25
- data/lib/vedeu/esc/mouse.rb +14 -0
- data/lib/vedeu/events/aliases.rb +2 -13
- data/lib/vedeu/events/event.rb +2 -13
- data/lib/vedeu/input/read.rb +3 -3
- data/lib/vedeu/input/store.rb +6 -37
- data/lib/vedeu/interfaces/interface.rb +1 -1
- data/lib/vedeu/logging/debug.rb +1 -1
- data/lib/vedeu/logging/log.rb +6 -17
- data/lib/vedeu/logging/timer.rb +1 -1
- data/lib/vedeu/models/row.rb +1 -1
- data/lib/vedeu/output/write.rb +1 -3
- data/lib/vedeu/presentation/style.rb +1 -3
- data/lib/vedeu/renderers/all.rb +2 -2
- data/lib/vedeu/renderers/file.rb +1 -1
- data/lib/vedeu/renderers/options.rb +1 -1
- data/lib/vedeu/runtime/application.rb +10 -19
- data/lib/vedeu/runtime/bootstrap.rb +4 -4
- data/lib/vedeu/runtime/launcher.rb +3 -5
- data/lib/vedeu/terminal/mode.rb +1 -1
- data/lib/vedeu/terminal/terminal.rb +9 -10
- data/lib/vedeu/version.rb +1 -1
- data/lib/vedeu/views/char.rb +1 -1
- data/lib/vedeu/views/view.rb +1 -1
- data/test/lib/vedeu/colours/background_test.rb +1 -1
- data/test/lib/vedeu/configuration/api_test.rb +1 -1
- data/test/lib/vedeu/cursors/cursor_test.rb +2 -5
- data/test/lib/vedeu/distributed/server_test.rb +2 -2
- data/test/lib/vedeu/esc/mouse_test.rb +29 -1
- data/test/lib/vedeu/logging/timer_test.rb +2 -2
- data/test/lib/vedeu/renderers/html_test.rb +1 -1
- data/test/lib/vedeu/renderers/json_test.rb +1 -1
- data/test/lib/vedeu/renderers/options_test.rb +4 -4
- data/test/lib/vedeu/runtime/application_test.rb +4 -9
- data/test/lib/vedeu/runtime/bootstrap_test.rb +1 -1
- data/test/lib/vedeu/runtime/launcher_test.rb +1 -1
- data/test/lib/vedeu/terminal/mode_test.rb +5 -5
- data/test/lib/vedeu/terminal/terminal_test.rb +2 -2
- data/test/support/examples/material_colours_app.rb +2 -5
- data/test/test_helper.rb +1 -1
- metadata +5 -3
- data/examples/views/lines_streams_stream.rb +0 -48
data/lib/vedeu/input/read.rb
CHANGED
@@ -80,12 +80,12 @@ module Vedeu
|
|
80
80
|
|
81
81
|
# @return [String]
|
82
82
|
def mouse_off
|
83
|
-
Vedeu
|
83
|
+
Vedeu.esc.mouse_x10_off
|
84
84
|
end
|
85
85
|
|
86
86
|
# @return [String]
|
87
87
|
def show_cursor
|
88
|
-
Vedeu
|
88
|
+
Vedeu.esc.show_cursor
|
89
89
|
end
|
90
90
|
|
91
91
|
# @return [String]
|
@@ -103,7 +103,7 @@ module Vedeu
|
|
103
103
|
|
104
104
|
elsif fake?
|
105
105
|
console.cooked do
|
106
|
-
Vedeu::Terminal.
|
106
|
+
Vedeu::Terminal.debugging!
|
107
107
|
|
108
108
|
console.gets.chomp
|
109
109
|
end
|
data/lib/vedeu/input/store.rb
CHANGED
@@ -10,70 +10,39 @@ module Vedeu
|
|
10
10
|
|
11
11
|
extend self
|
12
12
|
|
13
|
-
#
|
14
|
-
# Editor::Document) to the store. Used by Vedeu internally to
|
15
|
-
# store commands entered.
|
16
|
-
#
|
17
|
-
# @example
|
18
|
-
# Vedeu.add_command(:some_command)
|
19
|
-
#
|
13
|
+
# {include:file:docs/dsl/by_method/add_command.md}
|
20
14
|
# @param command [Symbol|String]
|
21
15
|
# @return [Hash<Symbol => Array<Symbol|String>>]
|
22
16
|
def add_command(command)
|
23
17
|
all_commands << command
|
24
18
|
end
|
25
19
|
|
26
|
-
#
|
27
|
-
# store a keypress entered.
|
28
|
-
#
|
29
|
-
# @example
|
30
|
-
# Vedeu.add_keypress(:escape)
|
31
|
-
#
|
20
|
+
# {include:file:docs/dsl/by_method/add_keypress.md}
|
32
21
|
# @param keypress [Symbol|String]
|
33
22
|
# @return [Hash<Symbol => Array<Symbol|String>>]
|
34
23
|
def add_keypress(keypress)
|
35
24
|
all_keypresses << keypress
|
36
25
|
end
|
37
26
|
|
38
|
-
#
|
39
|
-
#
|
40
|
-
# @example
|
41
|
-
# Vedeu.all_commands
|
42
|
-
#
|
27
|
+
# {include:file:docs/dsl/by_method/all_commands.md}
|
43
28
|
# @return [Array<Symbol|String>]
|
44
29
|
def all_commands
|
45
30
|
storage[:commands]
|
46
31
|
end
|
47
32
|
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# @example
|
51
|
-
# Vedeu.all_keypresses
|
52
|
-
#
|
33
|
+
# {include:file:docs/dsl/by_method/all_keypresses.md}
|
53
34
|
# @return [Array<Symbol|String>]
|
54
35
|
def all_keypresses
|
55
36
|
storage[:keypresses]
|
56
37
|
end
|
57
38
|
|
58
|
-
#
|
59
|
-
# entered since the client application started, then this will
|
60
|
-
# return nil.
|
61
|
-
#
|
62
|
-
# @example
|
63
|
-
# Vedeu.last_command
|
64
|
-
#
|
39
|
+
# {include:file:docs/dsl/by_method/last_command.md}
|
65
40
|
# @return [NilClass|Symbol|String]
|
66
41
|
def last_command
|
67
42
|
all_commands[-1]
|
68
43
|
end
|
69
44
|
|
70
|
-
#
|
71
|
-
# since the client application started, then this will return
|
72
|
-
# nil.
|
73
|
-
#
|
74
|
-
# @example
|
75
|
-
# Vedeu.last_keypress
|
76
|
-
#
|
45
|
+
# {include:file:docs/dsl/by_method/last_keypress.md}
|
77
46
|
# @return [NilClass|Symbol|String]
|
78
47
|
def last_keypress
|
79
48
|
all_keypresses[-1]
|
data/lib/vedeu/logging/debug.rb
CHANGED
data/lib/vedeu/logging/log.rb
CHANGED
@@ -28,7 +28,8 @@ module Vedeu
|
|
28
28
|
def log(message:, force: false, type: :info)
|
29
29
|
output = log_entry(type, message)
|
30
30
|
|
31
|
-
if (
|
31
|
+
if (Vedeu.config.log? || force) &&
|
32
|
+
Vedeu.config.loggable?(type)
|
32
33
|
logger.debug(output)
|
33
34
|
end
|
34
35
|
|
@@ -77,7 +78,7 @@ module Vedeu
|
|
77
78
|
|
78
79
|
# @return [Boolean]
|
79
80
|
def logger
|
80
|
-
MonoLogger.new(
|
81
|
+
MonoLogger.new(Vedeu.config.log).tap do |log|
|
81
82
|
log.formatter = proc do |_, _, _, message|
|
82
83
|
formatted_message(message)
|
83
84
|
end
|
@@ -107,23 +108,11 @@ module Vedeu
|
|
107
108
|
colours = message_types.fetch(type, [:default, :default])
|
108
109
|
|
109
110
|
[
|
110
|
-
Vedeu
|
111
|
-
|
112
|
-
|
113
|
-
Vedeu::EscapeSequences::Esc.colour(colours[1]) do
|
114
|
-
message
|
115
|
-
end,
|
116
|
-
].join('')
|
111
|
+
Vedeu.esc.colour(colours[0]) { "[#{type}]".ljust(11) },
|
112
|
+
Vedeu.esc.colour(colours[1]) { message },
|
113
|
+
].join
|
117
114
|
end
|
118
115
|
|
119
|
-
# Fetches the filename from the configuration.
|
120
|
-
#
|
121
|
-
# @return [String]
|
122
|
-
def log_file
|
123
|
-
Vedeu::Configuration.log
|
124
|
-
end
|
125
|
-
alias_method :enabled?, :log_file
|
126
|
-
|
127
116
|
# The defined message types for Vedeu with their respective
|
128
117
|
# colours. When used, produces a log entry of the format:
|
129
118
|
#
|
data/lib/vedeu/logging/timer.rb
CHANGED
data/lib/vedeu/models/row.rb
CHANGED
data/lib/vedeu/output/write.rb
CHANGED
@@ -100,9 +100,7 @@ module Vedeu
|
|
100
100
|
|
101
101
|
# @return [String]
|
102
102
|
def to_s
|
103
|
-
@_to_s ||= super +
|
104
|
-
Vedeu::EscapeSequences::Esc.reset +
|
105
|
-
position(position_end)
|
103
|
+
@_to_s ||= super + Vedeu.esc.reset + position(position_end)
|
106
104
|
end
|
107
105
|
alias_method :to_str, :to_s
|
108
106
|
|
@@ -82,9 +82,7 @@ module Vedeu
|
|
82
82
|
def to_s
|
83
83
|
return '' unless present?(value)
|
84
84
|
|
85
|
-
@sequences ||= Array(value).flat_map
|
86
|
-
Vedeu::EscapeSequences::Esc.string(v)
|
87
|
-
end.join
|
85
|
+
@sequences ||= Array(value).flat_map { |v| Vedeu.esc.string(v) }.join
|
88
86
|
end
|
89
87
|
alias_method :escape_sequences, :to_s
|
90
88
|
alias_method :to_str, :to_s
|
data/lib/vedeu/renderers/all.rb
CHANGED
@@ -69,8 +69,8 @@ module Vedeu
|
|
69
69
|
|
70
70
|
# @return [Set]
|
71
71
|
def in_memory
|
72
|
-
if Vedeu
|
73
|
-
Set.new(Vedeu
|
72
|
+
if Vedeu.config.renderers.any?
|
73
|
+
Set.new(Vedeu.config.renderers)
|
74
74
|
|
75
75
|
else
|
76
76
|
Set.new([Vedeu::Renderers::Terminal.new])
|
data/lib/vedeu/renderers/file.rb
CHANGED
@@ -10,14 +10,14 @@ module Vedeu
|
|
10
10
|
|
11
11
|
class << self
|
12
12
|
|
13
|
-
# @
|
14
|
-
def start
|
15
|
-
new
|
13
|
+
# @return [void]
|
14
|
+
def start
|
15
|
+
new.start
|
16
16
|
end
|
17
17
|
|
18
|
-
# @
|
19
|
-
def restart
|
20
|
-
new
|
18
|
+
# @return [void]
|
19
|
+
def restart
|
20
|
+
new.start
|
21
21
|
end
|
22
22
|
|
23
23
|
# Stops the application! - The `:_cleanup_` event is
|
@@ -44,11 +44,8 @@ module Vedeu
|
|
44
44
|
|
45
45
|
# Returns a new instance of Vedeu::Runtime::Application.
|
46
46
|
#
|
47
|
-
# @param configuration [Vedeu::Configuration]
|
48
47
|
# @return [Vedeu::Runtime::Application]
|
49
|
-
def initialize
|
50
|
-
@configuration = configuration
|
51
|
-
end
|
48
|
+
def initialize; end
|
52
49
|
|
53
50
|
# Starts the application!
|
54
51
|
#
|
@@ -75,12 +72,6 @@ module Vedeu
|
|
75
72
|
end
|
76
73
|
end
|
77
74
|
|
78
|
-
protected
|
79
|
-
|
80
|
-
# @!attribute [r] configuration
|
81
|
-
# @return [Vedeu::Configuration]
|
82
|
-
attr_reader :configuration
|
83
|
-
|
84
75
|
private
|
85
76
|
|
86
77
|
# Runs the application loop either once, or forever (exceptions
|
@@ -89,7 +80,7 @@ module Vedeu
|
|
89
80
|
# @param block [Proc]
|
90
81
|
# @return [void]
|
91
82
|
def runner(&block)
|
92
|
-
return yield if
|
83
|
+
return yield if Vedeu.config.once?
|
93
84
|
|
94
85
|
run_many { yield }
|
95
86
|
end
|
@@ -104,7 +95,7 @@ module Vedeu
|
|
104
95
|
#
|
105
96
|
# @return [void]
|
106
97
|
def main_sequence
|
107
|
-
if
|
98
|
+
if Vedeu.config.interactive?
|
108
99
|
Vedeu::Input::Capture.read
|
109
100
|
|
110
101
|
else
|
@@ -124,7 +115,7 @@ module Vedeu
|
|
124
115
|
Vedeu::Runtime::MainLoop.start! { yield }
|
125
116
|
|
126
117
|
rescue Vedeu::Error::ModeSwitch
|
127
|
-
Vedeu::Runtime::Application.restart
|
118
|
+
Vedeu::Runtime::Application.restart
|
128
119
|
end
|
129
120
|
|
130
121
|
# :nocov:
|
@@ -49,7 +49,7 @@ module Vedeu
|
|
49
49
|
|
50
50
|
# @return [String]
|
51
51
|
def base_path
|
52
|
-
Vedeu
|
52
|
+
Vedeu.config.base_path
|
53
53
|
end
|
54
54
|
|
55
55
|
# @note
|
@@ -78,8 +78,8 @@ module Vedeu
|
|
78
78
|
|
79
79
|
# @return [void]
|
80
80
|
def client_initialize!
|
81
|
-
if Vedeu
|
82
|
-
Vedeu.trigger(:_goto_, *Vedeu
|
81
|
+
if Vedeu.config.root
|
82
|
+
Vedeu.trigger(:_goto_, *Vedeu.config.root)
|
83
83
|
|
84
84
|
else
|
85
85
|
Vedeu.log_stderr(type: :debug, message: client_initialize_error)
|
@@ -113,7 +113,7 @@ module Vedeu
|
|
113
113
|
def configure_log!
|
114
114
|
Vedeu.configure do
|
115
115
|
log('/tmp/vedeu_bootstrap.log')
|
116
|
-
end unless Vedeu
|
116
|
+
end unless Vedeu.config.log?
|
117
117
|
end
|
118
118
|
|
119
119
|
# @return [String]
|
@@ -62,16 +62,14 @@ module Vedeu
|
|
62
62
|
$stdout = @stdout
|
63
63
|
$stderr = @stderr
|
64
64
|
|
65
|
-
optionally_profile
|
66
|
-
Vedeu::Runtime::Application.start(Vedeu::Configuration)
|
67
|
-
end
|
65
|
+
optionally_profile { Vedeu::Runtime::Application.start }
|
68
66
|
|
69
67
|
@exit_code = 0
|
70
68
|
|
71
69
|
terminate!
|
72
70
|
|
73
71
|
rescue StandardError => uncaught_exception
|
74
|
-
output = if Vedeu
|
72
|
+
output = if Vedeu.config.debug?
|
75
73
|
uncaught_exception.message + "\n" +
|
76
74
|
uncaught_exception.backtrace.join("\n")
|
77
75
|
else
|
@@ -93,7 +91,7 @@ module Vedeu
|
|
93
91
|
# @param block [Proc]
|
94
92
|
# @return [void]
|
95
93
|
def optionally_profile(&block)
|
96
|
-
if Vedeu
|
94
|
+
if Vedeu.config.profile?
|
97
95
|
Vedeu.profile { yield }
|
98
96
|
|
99
97
|
else
|
data/lib/vedeu/terminal/mode.rb
CHANGED
@@ -61,7 +61,7 @@ module Vedeu
|
|
61
61
|
def initialize_screen(mode, &block)
|
62
62
|
Vedeu.log(message: "Terminal entering '#{mode}' mode")
|
63
63
|
|
64
|
-
output(Vedeu
|
64
|
+
output(Vedeu.esc.screen_init)
|
65
65
|
|
66
66
|
yield if block_given?
|
67
67
|
end
|
@@ -70,8 +70,7 @@ module Vedeu
|
|
70
70
|
#
|
71
71
|
# @return [String]
|
72
72
|
def debugging!
|
73
|
-
output(Vedeu
|
74
|
-
Vedeu::EscapeSequences::Esc.show_cursor)
|
73
|
+
output(Vedeu.esc.mouse_x10_off + Vedeu.esc.show_cursor)
|
75
74
|
end
|
76
75
|
|
77
76
|
# Clears the entire terminal space.
|
@@ -81,7 +80,7 @@ module Vedeu
|
|
81
80
|
#
|
82
81
|
# @return [String]
|
83
82
|
def clear
|
84
|
-
output(Vedeu
|
83
|
+
output(Vedeu.esc.clear)
|
85
84
|
end
|
86
85
|
|
87
86
|
# Attempts to tidy up the screen just before the application
|
@@ -91,7 +90,7 @@ module Vedeu
|
|
91
90
|
#
|
92
91
|
# @return [String]
|
93
92
|
def restore_screen
|
94
|
-
output(Vedeu
|
93
|
+
output(Vedeu.esc.screen_exit)
|
95
94
|
end
|
96
95
|
|
97
96
|
# Sets the cursor to be visible unless in raw mode, whereby it
|
@@ -99,7 +98,7 @@ module Vedeu
|
|
99
98
|
#
|
100
99
|
# @return [String]
|
101
100
|
def set_cursor_mode
|
102
|
-
output(Vedeu
|
101
|
+
output(Vedeu.esc.show_cursor) unless raw_mode?
|
103
102
|
end
|
104
103
|
|
105
104
|
# Returns a coordinate tuple of the format [y, x], where `y` is
|
@@ -141,8 +140,8 @@ module Vedeu
|
|
141
140
|
# {include:file:docs/dsl/by_method/width.md}
|
142
141
|
# @return [Fixnum]
|
143
142
|
def width
|
144
|
-
return Vedeu
|
145
|
-
return Vedeu
|
143
|
+
return Vedeu.config.drb_width if Vedeu.config.drb?
|
144
|
+
return Vedeu.config.width if Vedeu.config.width
|
146
145
|
|
147
146
|
size[-1]
|
148
147
|
end
|
@@ -152,8 +151,8 @@ module Vedeu
|
|
152
151
|
# {include:file:docs/dsl/by_method/height.md}
|
153
152
|
# @return [Fixnum]
|
154
153
|
def height
|
155
|
-
return Vedeu
|
156
|
-
return Vedeu
|
154
|
+
return Vedeu.config.drb_height if Vedeu.config.drb?
|
155
|
+
return Vedeu.config.height if Vedeu.config.height
|
157
156
|
|
158
157
|
size[0]
|
159
158
|
end
|