vedeu 0.7.4 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/docs/api.md +5 -1
- data/docs/borders.md +2 -26
- data/docs/dsl.md +4 -4
- data/docs/dsl_elements.md +100 -0
- data/docs/events/by_name/action.md +3 -0
- data/docs/events/by_name/cursor_hide.md +3 -0
- data/docs/events/by_name/cursor_reset.md +3 -0
- data/docs/events/by_name/cursor_show.md +3 -0
- data/docs/events/by_name/geometry_down.md +3 -0
- data/docs/events/by_name/geometry_left.md +3 -0
- data/docs/events/by_name/geometry_right.md +3 -0
- data/docs/events/by_name/geometry_up.md +3 -0
- data/docs/events/by_name/hide_view.md +3 -0
- data/docs/events/by_name/set_border_caption.md +13 -0
- data/docs/events/by_name/set_border_title.md +13 -0
- data/docs/events/by_name/show_view.md +3 -0
- data/docs/events/by_name/standalone.md +3 -0
- data/docs/events/by_name/toggle_view.md +3 -0
- data/docs/events/by_name/view_down.md +4 -0
- data/docs/events/by_name/view_left.md +4 -0
- data/docs/events/by_name/view_right.md +4 -0
- data/docs/events/by_name/view_up.md +4 -0
- data/examples/views/empty_template.rb +46 -0
- data/examples/views/expected/line.out +1 -0
- data/examples/views/expected/lines.out +1 -0
- data/examples/views/expected/lines_alignment.out +1 -0
- data/examples/views/line.rb +220 -0
- data/examples/views/lines.rb +281 -0
- data/examples/views/lines_alignment.rb +231 -0
- data/examples/views/lines_line_stream.rb +99 -0
- data/examples/views/lines_line_streams.rb +73 -0
- data/examples/views/lines_line_streams_stream.rb +83 -0
- data/examples/views/lines_line_streams_stream_stream.rb +53 -0
- data/examples/views/lines_streams.rb +50 -0
- data/examples/views/lines_streams_stream.rb +51 -0
- data/examples/views/runner.sh +27 -0
- data/lib/vedeu/all.rb +6 -2
- data/lib/vedeu/application/controller.rb +1 -1
- data/lib/vedeu/boolean.rb +35 -0
- data/lib/vedeu/borders/border.rb +3 -3
- data/lib/vedeu/borders/caption.rb +1 -1
- data/lib/vedeu/borders/dsl.rb +1 -20
- data/lib/vedeu/borders/title.rb +6 -8
- data/lib/vedeu/buffers/buffer.rb +2 -2
- data/lib/vedeu/buffers/refresh.rb +1 -1
- data/lib/vedeu/cells/border.rb +0 -11
- data/lib/vedeu/cells/empty.rb +4 -4
- data/lib/vedeu/{geometries/alignment → coercers}/alignment.rb +50 -53
- data/lib/vedeu/coercers/all.rb +16 -0
- data/lib/vedeu/coercers/colour.rb +78 -0
- data/lib/vedeu/coercers/colour_attributes.rb +122 -0
- data/lib/vedeu/coercers/horizontal_alignment.rb +28 -0
- data/lib/vedeu/coercers/vertical_alignment.rb +27 -0
- data/lib/vedeu/colours/all.rb +1 -0
- data/lib/vedeu/colours/background.rb +13 -2
- data/lib/vedeu/colours/colour.rb +16 -31
- data/lib/vedeu/colours/foreground.rb +13 -2
- data/lib/vedeu/colours/translator.rb +21 -59
- data/lib/vedeu/colours/validator.rb +84 -0
- data/lib/vedeu/common.rb +52 -0
- data/lib/vedeu/configuration/api.rb +4 -10
- data/lib/vedeu/configuration/configuration.rb +4 -4
- data/lib/vedeu/cursors/coordinate.rb +1 -1
- data/lib/vedeu/cursors/cursor.rb +1 -1
- data/lib/vedeu/cursors/dsl.rb +1 -28
- data/lib/vedeu/dsl/all.rb +7 -7
- data/lib/vedeu/dsl/attributes.rb +224 -0
- data/lib/vedeu/dsl/border.rb +127 -0
- data/lib/vedeu/dsl/cursors.rb +44 -0
- data/lib/vedeu/dsl/dsl.rb +9 -0
- data/lib/vedeu/dsl/elements.rb +335 -0
- data/lib/vedeu/dsl/geometry.rb +113 -0
- data/lib/vedeu/dsl/string/align.rb +127 -0
- data/lib/vedeu/dsl/string/all.rb +14 -0
- data/lib/vedeu/dsl/string/text.rb +107 -0
- data/lib/vedeu/dsl/string/truncate.rb +111 -0
- data/lib/vedeu/{output → dsl/string}/wordwrap.rb +10 -6
- data/lib/vedeu/dsl/view.rb +124 -248
- data/lib/vedeu/dsl/views.rb +244 -0
- data/lib/vedeu/editor/cursor.rb +1 -1
- data/lib/vedeu/editor/delete.rb +3 -1
- data/lib/vedeu/editor/insert.rb +22 -6
- data/lib/vedeu/editor/line.rb +15 -9
- data/lib/vedeu/editor/lines.rb +27 -18
- data/lib/vedeu/esc/actions.rb +73 -26
- data/lib/vedeu/esc/all.rb +2 -0
- data/lib/vedeu/esc/background.rb +219 -0
- data/lib/vedeu/esc/borders.rb +72 -26
- data/lib/vedeu/esc/colours.rb +26 -27
- data/lib/vedeu/esc/esc.rb +4 -4
- data/lib/vedeu/esc/foreground.rb +219 -0
- data/lib/vedeu/esc/mouse.rb +16 -13
- data/lib/vedeu/events/aliases.rb +2 -2
- data/lib/vedeu/events/event.rb +1 -1
- data/lib/vedeu/geometries/all.rb +0 -1
- data/lib/vedeu/geometries/area/dimension.rb +2 -2
- data/lib/vedeu/geometries/dsl/dsl.rb +3 -51
- data/lib/vedeu/geometries/dsl/validator.rb +4 -4
- data/lib/vedeu/geometries/geometry.rb +10 -10
- data/lib/vedeu/geometries/move.rb +4 -4
- data/lib/vedeu/groups/dsl.rb +1 -0
- data/lib/vedeu/groups/group.rb +1 -1
- data/lib/vedeu/input/all.rb +1 -0
- data/lib/vedeu/input/capture.rb +14 -10
- data/lib/vedeu/input/dsl.rb +20 -26
- data/lib/vedeu/input/key.rb +0 -6
- data/lib/vedeu/input/keymap.rb +4 -9
- data/lib/vedeu/input/keys.rb +13 -0
- data/lib/vedeu/input/mapper.rb +29 -14
- data/lib/vedeu/input/read.rb +4 -2
- data/lib/vedeu/interfaces/dsl.rb +23 -22
- data/lib/vedeu/interfaces/interface.rb +2 -2
- data/lib/vedeu/logging/debug.rb +33 -0
- data/lib/vedeu/logging/log.rb +42 -33
- data/lib/vedeu/menus/dsl.rb +7 -18
- data/lib/vedeu/menus/menu.rb +1 -1
- data/lib/vedeu/models/focus.rb +1 -1
- data/lib/vedeu/models/toggleable.rb +4 -4
- data/lib/vedeu/null/generic.rb +2 -2
- data/lib/vedeu/output/all.rb +0 -2
- data/lib/vedeu/output/compressor_cache.rb +1 -1
- data/lib/vedeu/output/output.rb +5 -20
- data/lib/vedeu/presentation/colour.rb +39 -7
- data/lib/vedeu/presentation/style.rb +25 -11
- data/lib/vedeu/renderers/html.rb +11 -11
- data/lib/vedeu/repositories/assemblage.rb +9 -0
- data/lib/vedeu/repositories/collection.rb +1 -0
- data/lib/vedeu/repositories/defaults.rb +4 -1
- data/lib/vedeu/repositories/model.rb +7 -37
- data/lib/vedeu/repositories/parent.rb +6 -6
- data/lib/vedeu/repositories/registerable.rb +16 -2
- data/lib/vedeu/repositories/repositories.rb +1 -1
- data/lib/vedeu/repositories/repository.rb +2 -12
- data/lib/vedeu/runtime/flags.rb +1 -1
- data/lib/vedeu/terminal/terminal.rb +7 -2
- data/lib/vedeu/version.rb +1 -1
- data/lib/vedeu/views/all.rb +4 -1
- data/lib/vedeu/views/char.rb +5 -4
- data/lib/vedeu/views/chars.rb +42 -0
- data/lib/vedeu/views/composition.rb +15 -30
- data/lib/vedeu/views/default_attributes.rb +74 -0
- data/lib/vedeu/views/html_char.rb +2 -2
- data/lib/vedeu/views/line.rb +27 -53
- data/lib/vedeu/views/lines.rb +31 -0
- data/lib/vedeu/views/stream.rb +31 -78
- data/lib/vedeu/views/streams.rb +42 -0
- data/lib/vedeu/views/value.rb +150 -0
- data/lib/vedeu/views/view.rb +32 -36
- data/lib/vedeu/views/{view_collection.rb → views.rb} +2 -2
- data/test/lib/vedeu/application/application_controller_test.rb +5 -0
- data/test/lib/vedeu/application/controller_test.rb +22 -28
- data/test/lib/vedeu/boolean_test.rb +57 -0
- data/test/lib/vedeu/borders/border_test.rb +130 -36
- data/test/lib/vedeu/borders/dsl_test.rb +63 -10
- data/test/lib/vedeu/borders/title_test.rb +16 -5
- data/test/lib/vedeu/buffers/buffer_test.rb +26 -10
- data/test/lib/vedeu/buffers/empty_test.rb +1 -1
- data/test/lib/vedeu/cells/border_test.rb +0 -6
- data/test/lib/vedeu/cells/clear_test.rb +2 -0
- data/test/lib/vedeu/cells/empty_test.rb +12 -2
- data/test/lib/vedeu/cells/escape_test.rb +7 -2
- data/test/lib/vedeu/{geometries/alignment → coercers}/alignment_test.rb +44 -19
- data/test/lib/vedeu/coercers/colour_attributes_test.rb +168 -0
- data/test/lib/vedeu/coercers/colour_test.rb +75 -0
- data/test/lib/vedeu/{geometries/alignment → coercers}/horizontal_alignment_test.rb +6 -6
- data/test/lib/vedeu/{geometries/alignment → coercers}/vertical_alignment_test.rb +6 -6
- data/test/lib/vedeu/colours/background_test.rb +17 -1
- data/test/lib/vedeu/colours/colour_test.rb +74 -2
- data/test/lib/vedeu/colours/foreground_test.rb +17 -1
- data/test/lib/vedeu/colours/repository_test.rb +1 -1
- data/test/lib/vedeu/colours/translator_test.rb +8 -1
- data/test/lib/vedeu/colours/validator_test.rb +60 -0
- data/test/lib/vedeu/common_test.rb +138 -0
- data/test/lib/vedeu/configuration/api_test.rb +96 -51
- data/test/lib/vedeu/cursors/coordinate_test.rb +58 -117
- data/test/lib/vedeu/cursors/cursor_test.rb +46 -17
- data/test/lib/vedeu/cursors/dsl_test.rb +19 -5
- data/test/lib/vedeu/distributed/client_test.rb +8 -3
- data/test/lib/vedeu/distributed/server_test.rb +8 -0
- data/test/lib/vedeu/distributed/test_application_test.rb +62 -19
- data/test/lib/vedeu/distributed/uri_test.rb +4 -2
- data/test/lib/vedeu/dsl/attributes_test.rb +212 -0
- data/test/lib/vedeu/dsl/border_test.rb +51 -0
- data/test/lib/vedeu/dsl/{lines_test.rb → cursors_test.rb} +2 -2
- data/test/lib/vedeu/dsl/dsl_test.rb +44 -0
- data/test/lib/vedeu/dsl/elements_test.rb +118 -0
- data/test/lib/vedeu/dsl/geometry_test.rb +35 -0
- data/test/lib/vedeu/dsl/presentation_test.rb +52 -11
- data/test/lib/vedeu/dsl/string/align_test.rb +147 -0
- data/test/lib/vedeu/dsl/string/text_test.rb +213 -0
- data/test/lib/vedeu/dsl/string/truncate_test.rb +97 -0
- data/test/lib/vedeu/{output → dsl/string}/wordwrap_test.rb +3 -3
- data/test/lib/vedeu/dsl/view_test.rb +30 -42
- data/test/lib/vedeu/dsl/views_test.rb +61 -0
- data/test/lib/vedeu/editor/cursor_test.rb +30 -12
- data/test/lib/vedeu/editor/document_test.rb +18 -10
- data/test/lib/vedeu/editor/line_test.rb +4 -1
- data/test/lib/vedeu/editor/lines_test.rb +11 -3
- data/test/lib/vedeu/esc/actions_test.rb +42 -4
- data/test/lib/vedeu/esc/background_test.rb +185 -0
- data/test/lib/vedeu/esc/borders_test.rb +37 -9
- data/test/lib/vedeu/esc/colours_test.rb +0 -59
- data/test/lib/vedeu/esc/foreground_test.rb +185 -0
- data/test/lib/vedeu/esc/mouse_test.rb +9 -4
- data/test/lib/vedeu/geometries/area/area_test.rb +34 -11
- data/test/lib/vedeu/geometries/dsl/dsl_test.rb +52 -61
- data/test/lib/vedeu/geometries/geometry_test.rb +62 -18
- data/test/lib/vedeu/geometries/position_test.rb +14 -7
- data/test/lib/vedeu/groups/dsl_test.rb +24 -15
- data/test/lib/vedeu/groups/group_test.rb +18 -8
- data/test/lib/vedeu/input/dsl_test.rb +33 -16
- data/test/lib/vedeu/input/key_test.rb +8 -1
- data/test/lib/vedeu/input/keymap_test.rb +4 -1
- data/test/lib/vedeu/input/keys_test.rb +16 -0
- data/test/lib/vedeu/interfaces/dsl_test.rb +24 -30
- data/test/lib/vedeu/interfaces/interface_test.rb +79 -24
- data/test/lib/vedeu/logging/ips_test.rb +10 -1
- data/test/lib/vedeu/menus/dsl_test.rb +24 -23
- data/test/lib/vedeu/menus/menu_test.rb +18 -8
- data/test/lib/vedeu/models/page_test.rb +5 -1
- data/test/lib/vedeu/models/row_test.rb +4 -0
- data/test/lib/vedeu/models/toggleable_test.rb +10 -6
- data/test/lib/vedeu/null/generic_test.rb +90 -1
- data/test/lib/vedeu/output/viewport_test.rb +11 -10
- data/test/lib/vedeu/plugins/plugin_test.rb +22 -9
- data/test/lib/vedeu/presentation/colour_test.rb +2 -1
- data/test/lib/vedeu/presentation/presentation_test.rb +13 -8
- data/test/lib/vedeu/presentation/style_test.rb +28 -13
- data/test/lib/vedeu/renderers/file_test.rb +4 -2
- data/test/lib/vedeu/renderers/options_test.rb +1 -1
- data/test/lib/vedeu/repositories/assemblage_test.rb +18 -0
- data/test/lib/vedeu/repositories/collection_test.rb +34 -10
- data/test/lib/vedeu/repositories/defaults_test.rb +6 -0
- data/test/lib/vedeu/repositories/model_test.rb +4 -13
- data/test/lib/vedeu/repositories/repository_test.rb +12 -5
- data/test/lib/vedeu/repositories/store_test.rb +9 -0
- data/test/lib/vedeu/runtime/flags_test.rb +6 -4
- data/test/lib/vedeu/runtime/launcher_test.rb +1 -1
- data/test/lib/vedeu/templating/helpers_test.rb +93 -65
- data/test/lib/vedeu/templating/view_template_test.rb +26 -26
- data/test/lib/vedeu/views/char_test.rb +36 -11
- data/test/lib/vedeu/views/chars_test.rb +71 -0
- data/test/lib/vedeu/views/composition_test.rb +17 -16
- data/test/lib/vedeu/views/default_attributes_test.rb +97 -0
- data/test/lib/vedeu/views/line_test.rb +20 -75
- data/test/lib/vedeu/views/lines_test.rb +47 -0
- data/test/lib/vedeu/views/stream_test.rb +38 -63
- data/test/lib/vedeu/views/streams_test.rb +9 -0
- data/test/lib/vedeu/views/value_test.rb +112 -0
- data/test/lib/vedeu/views/view_test.rb +67 -45
- data/test/lib/vedeu/views/views_test.rb +22 -0
- data/test/support/examples/material_colours_app.rb +2 -2
- data/test/support/helpers/model_test_class.rb +1 -0
- data/test/test_helper.rb +3 -1
- data/vedeu.gemspec +2 -2
- metadata +124 -58
- data/lib/vedeu/dsl/composition.rb +0 -150
- data/lib/vedeu/dsl/line.rb +0 -119
- data/lib/vedeu/dsl/lines.rb +0 -23
- data/lib/vedeu/dsl/shared.rb +0 -85
- data/lib/vedeu/dsl/stream.rb +0 -40
- data/lib/vedeu/dsl/streams.rb +0 -23
- data/lib/vedeu/dsl/text.rb +0 -98
- data/lib/vedeu/geometries/alignment/all.rb +0 -11
- data/lib/vedeu/geometries/alignment/horizontal_alignment.rb +0 -27
- data/lib/vedeu/geometries/alignment/vertical_alignment.rb +0 -27
- data/lib/vedeu/output/text.rb +0 -275
- data/test/lib/vedeu/dsl/composition_test.rb +0 -67
- data/test/lib/vedeu/dsl/line_test.rb +0 -85
- data/test/lib/vedeu/dsl/shared_test.rb +0 -66
- data/test/lib/vedeu/dsl/stream_test.rb +0 -30
- data/test/lib/vedeu/dsl/streams_test.rb +0 -13
- data/test/lib/vedeu/dsl/text_test.rb +0 -122
- data/test/lib/vedeu/output/text_test.rb +0 -156
- data/test/lib/vedeu/views/view_collection_test.rb +0 -13
@@ -0,0 +1,112 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Vedeu
|
4
|
+
|
5
|
+
module Views
|
6
|
+
|
7
|
+
class ValueTestClass
|
8
|
+
|
9
|
+
include Vedeu::Views::Value
|
10
|
+
|
11
|
+
end # ValueTestClass
|
12
|
+
|
13
|
+
describe Value do
|
14
|
+
|
15
|
+
let(:described) { Vedeu::Views::Value }
|
16
|
+
|
17
|
+
let(:included_described) { Vedeu::Views::ValueTestClass }
|
18
|
+
let(:included_instance) { included_described.new }
|
19
|
+
|
20
|
+
describe '.collection' do
|
21
|
+
it { included_described.must_respond_to(:collection) }
|
22
|
+
end
|
23
|
+
|
24
|
+
describe '.deputy' do
|
25
|
+
it { included_described.must_respond_to(:collection) }
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '.entity' do
|
29
|
+
it { included_described.must_respond_to(:entity) }
|
30
|
+
end
|
31
|
+
|
32
|
+
describe '.parent' do
|
33
|
+
it { included_described.must_respond_to(:parent) }
|
34
|
+
end
|
35
|
+
|
36
|
+
describe '#client' do
|
37
|
+
subject { included_instance.client }
|
38
|
+
|
39
|
+
it { subject.must_equal(nil) }
|
40
|
+
end
|
41
|
+
|
42
|
+
describe '#client?' do
|
43
|
+
subject { included_instance.client? }
|
44
|
+
end
|
45
|
+
|
46
|
+
describe '#collection' do
|
47
|
+
subject { included_instance.collection }
|
48
|
+
|
49
|
+
it { subject.must_equal(nil) }
|
50
|
+
end
|
51
|
+
|
52
|
+
describe '#deputy' do
|
53
|
+
subject { included_instance.deputy }
|
54
|
+
|
55
|
+
# @todo Add more tests.
|
56
|
+
end
|
57
|
+
|
58
|
+
describe '#entity' do
|
59
|
+
subject { included_instance.entity }
|
60
|
+
|
61
|
+
it { subject.must_equal(nil) }
|
62
|
+
end
|
63
|
+
|
64
|
+
describe '#parent' do
|
65
|
+
subject { included_instance.parent }
|
66
|
+
|
67
|
+
context 'when the parent attribute is set' do
|
68
|
+
# it { subject.must_equal() }
|
69
|
+
end
|
70
|
+
|
71
|
+
context 'when the parent attribute is not set' do
|
72
|
+
it { subject.must_equal(nil) }
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe '#parent?' do
|
77
|
+
subject { included_instance.parent? }
|
78
|
+
|
79
|
+
context 'when the parent attribute is set' do
|
80
|
+
# it { subject.must_equal(true) }
|
81
|
+
end
|
82
|
+
|
83
|
+
context 'when the parent attribute is not set' do
|
84
|
+
it { subject.must_equal(false) }
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe '#value' do
|
89
|
+
subject { included_instance.value }
|
90
|
+
|
91
|
+
# @todo Add more tests.
|
92
|
+
end
|
93
|
+
|
94
|
+
describe '#value=' do
|
95
|
+
let(:_value) {}
|
96
|
+
|
97
|
+
subject { included_instance.value=(_value) }
|
98
|
+
|
99
|
+
# @todo Add more tests.
|
100
|
+
end
|
101
|
+
|
102
|
+
describe '#value?' do
|
103
|
+
subject { included_instance.value? }
|
104
|
+
|
105
|
+
# @todo Add more tests.
|
106
|
+
end
|
107
|
+
|
108
|
+
end # Value
|
109
|
+
|
110
|
+
end # Views
|
111
|
+
|
112
|
+
end # Vedeu
|
@@ -4,76 +4,98 @@ module Vedeu
|
|
4
4
|
|
5
5
|
module Views
|
6
6
|
|
7
|
-
describe ViewCollection do
|
8
|
-
|
9
|
-
let(:described) { Vedeu::Views::ViewCollection }
|
10
|
-
let(:instance) { described.new }
|
11
|
-
|
12
|
-
it { described.superclass.must_equal(Vedeu::Repositories::Collection) }
|
13
|
-
|
14
|
-
describe '#initialize' do
|
15
|
-
it { instance.must_be_instance_of(described) }
|
16
|
-
end
|
17
|
-
|
18
|
-
end # ViewCollection
|
19
|
-
|
20
7
|
describe View do
|
21
8
|
|
22
9
|
let(:described) { Vedeu::Views::View }
|
23
10
|
let(:instance) { described.new(attributes) }
|
24
11
|
let(:attributes) {
|
25
12
|
{
|
26
|
-
|
13
|
+
client: client,
|
14
|
+
colour: colour,
|
15
|
+
cursor_visible: cursor_visible,
|
16
|
+
name: _name,
|
17
|
+
parent: parent,
|
18
|
+
style: style,
|
19
|
+
value: _value,
|
20
|
+
zindex: zindex,
|
27
21
|
}
|
28
22
|
}
|
29
|
-
let(:
|
23
|
+
let(:client) {}
|
24
|
+
let(:colour) {}
|
25
|
+
let(:cursor_visible) {}
|
26
|
+
let(:_name) { 'Vedeu::Views::View' }
|
27
|
+
let(:parent) {}
|
28
|
+
let(:style) {}
|
29
|
+
let(:_value) {}
|
30
|
+
let(:zindex) {}
|
30
31
|
|
31
|
-
describe '
|
32
|
-
it
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
instance.must_respond_to(:lines=)
|
42
|
-
instance.must_respond_to(:zindex)
|
43
|
-
instance.must_respond_to(:zindex=)
|
44
|
-
end
|
32
|
+
describe '#initialize' do
|
33
|
+
it { instance.must_be_instance_of(described) }
|
34
|
+
it { instance.instance_variable_get('@client').must_equal(client) }
|
35
|
+
it { instance.instance_variable_get('@colour').must_equal(colour) }
|
36
|
+
it { instance.instance_variable_get('@cursor_visible').must_equal(cursor_visible) }
|
37
|
+
it { instance.instance_variable_get('@name').must_equal(_name) }
|
38
|
+
it { instance.instance_variable_get('@parent').must_equal(parent) }
|
39
|
+
it { instance.instance_variable_get('@style').must_equal(style) }
|
40
|
+
it { instance.instance_variable_get('@value').must_equal(_value) }
|
41
|
+
it { instance.instance_variable_get('@zindex').must_equal(zindex) }
|
45
42
|
end
|
46
43
|
|
47
|
-
describe '#
|
48
|
-
|
44
|
+
describe '#client' do
|
45
|
+
it { instance.must_respond_to(:client) }
|
46
|
+
end
|
49
47
|
|
50
|
-
|
48
|
+
describe '#client=' do
|
49
|
+
it { instance.must_respond_to(:client=) }
|
50
|
+
end
|
51
51
|
|
52
|
-
|
53
|
-
|
52
|
+
describe '#cursor_visible' do
|
53
|
+
it { instance.must_respond_to(:cursor_visible) }
|
54
54
|
end
|
55
55
|
|
56
|
-
describe '#
|
57
|
-
|
56
|
+
describe '#cursor_visible=' do
|
57
|
+
it { instance.must_respond_to(:cursor_visible=) }
|
58
|
+
end
|
58
59
|
|
59
|
-
|
60
|
+
describe '#name' do
|
61
|
+
it { instance.must_respond_to(:name) }
|
60
62
|
end
|
61
63
|
|
62
|
-
describe '#
|
63
|
-
|
64
|
+
describe '#name=' do
|
65
|
+
it { instance.must_respond_to(:name=) }
|
66
|
+
end
|
64
67
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
+
describe '#parent' do
|
69
|
+
it { instance.must_respond_to(:parent) }
|
70
|
+
end
|
71
|
+
|
72
|
+
describe '#parent=' do
|
73
|
+
it { instance.must_respond_to(:parent=) }
|
74
|
+
end
|
75
|
+
|
76
|
+
describe '#zindex' do
|
77
|
+
it { instance.must_respond_to(:zindex) }
|
78
|
+
end
|
79
|
+
|
80
|
+
describe '#zindex=' do
|
81
|
+
it { instance.must_respond_to(:zindex=) }
|
68
82
|
end
|
69
83
|
|
70
|
-
describe '#
|
71
|
-
|
84
|
+
describe '#add' do
|
85
|
+
let(:child) {}
|
86
|
+
|
87
|
+
subject { instance.add(child) }
|
72
88
|
|
73
89
|
# @todo Add more tests.
|
74
90
|
# it { skip }
|
75
91
|
end
|
76
92
|
|
93
|
+
describe '#attributes' do
|
94
|
+
subject { instance.attributes }
|
95
|
+
|
96
|
+
it { subject.must_be_instance_of(Hash) }
|
97
|
+
end
|
98
|
+
|
77
99
|
describe '#store_immediate' do
|
78
100
|
before { Vedeu.stubs(:trigger) }
|
79
101
|
|
@@ -117,7 +139,7 @@ module Vedeu
|
|
117
139
|
end
|
118
140
|
end
|
119
141
|
|
120
|
-
end #
|
142
|
+
end # Views
|
121
143
|
|
122
144
|
end # Views
|
123
145
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
module Vedeu
|
4
|
+
|
5
|
+
module Views
|
6
|
+
|
7
|
+
describe Views do
|
8
|
+
|
9
|
+
let(:described) { Vedeu::Views::Views }
|
10
|
+
let(:instance) { described.new }
|
11
|
+
|
12
|
+
it { described.superclass.must_equal(Vedeu::Repositories::Collection) }
|
13
|
+
|
14
|
+
describe '#initialize' do
|
15
|
+
it { instance.must_be_instance_of(described) }
|
16
|
+
end
|
17
|
+
|
18
|
+
end # Views
|
19
|
+
|
20
|
+
end # Views
|
21
|
+
|
22
|
+
end # Vedeu
|
@@ -87,7 +87,7 @@ class VedeuMaterialColoursApp
|
|
87
87
|
end
|
88
88
|
colour(foreground: '#ffffff', background: :default)
|
89
89
|
cursor!
|
90
|
-
geometry
|
90
|
+
geometry do
|
91
91
|
x(27)
|
92
92
|
xn(47)
|
93
93
|
y(3)
|
@@ -264,7 +264,7 @@ class VedeuMaterialColoursApp
|
|
264
264
|
|
265
265
|
Vedeu.interface 'keys_interface' do
|
266
266
|
colour(foreground: '#ffffff', background: :default)
|
267
|
-
geometry
|
267
|
+
geometry do
|
268
268
|
x(3)
|
269
269
|
xn(45)
|
270
270
|
y(15)
|
data/test/test_helper.rb
CHANGED
@@ -9,6 +9,8 @@ if ENV['SIMPLECOV'].to_i == 1 || ENV['CONSOLE_COVERAGE'].to_i == 1
|
|
9
9
|
add_group 'application', 'vedeu/application'
|
10
10
|
add_group 'borders', 'vedeu/borders'
|
11
11
|
add_group 'buffers', 'vedeu/buffers'
|
12
|
+
add_group 'cells', 'vedeu/cells'
|
13
|
+
add_group 'coercers', 'vedeu/coercers'
|
12
14
|
add_group 'colours', 'vedeu/colours'
|
13
15
|
add_group 'configuration', 'vedeu/configuration'
|
14
16
|
add_group 'cursors', 'vedeu/cursors'
|
@@ -28,7 +30,7 @@ if ENV['SIMPLECOV'].to_i == 1 || ENV['CONSOLE_COVERAGE'].to_i == 1
|
|
28
30
|
add_group 'output', 'vedeu/output'
|
29
31
|
add_group 'plugins', 'vedeu/plugins'
|
30
32
|
add_group 'presentation', 'vedeu/presentation'
|
31
|
-
add_group 'renderers', 'vedeu/
|
33
|
+
add_group 'renderers', 'vedeu/renderers'
|
32
34
|
add_group 'repositories', 'vedeu/repositories'
|
33
35
|
add_group 'runtime', 'vedeu/runtime'
|
34
36
|
add_group 'templating', 'vedeu/templating'
|
data/vedeu.gemspec
CHANGED
@@ -26,7 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency 'minitest', '5.8.3'
|
27
27
|
spec.add_development_dependency 'minitest-reporters', '1.1.7'
|
28
28
|
spec.add_development_dependency 'mocha', '1.1.0'
|
29
|
-
spec.add_development_dependency 'pry', '0.10.3'
|
30
29
|
spec.add_development_dependency 'rubocop', '0.35.1'
|
31
30
|
spec.add_development_dependency 'simplecov', '0.11.1'
|
32
31
|
spec.add_development_dependency 'simplecov-console', '0.2.0'
|
@@ -34,8 +33,9 @@ Gem::Specification.new do |spec|
|
|
34
33
|
|
35
34
|
spec.add_dependency 'benchmark-ips', '2.3.0'
|
36
35
|
spec.add_dependency 'bundler', '~> 1.10'
|
36
|
+
spec.add_dependency 'pry', '0.10.3'
|
37
37
|
spec.add_dependency 'rake', '~> 10.4'
|
38
|
-
spec.add_dependency 'ruby-prof', '0.15.
|
38
|
+
spec.add_dependency 'ruby-prof', '0.15.9'
|
39
39
|
spec.add_dependency 'thor', '0.19.1'
|
40
40
|
spec.add_dependency 'vedeu_cli', '0.0.8'
|
41
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vedeu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Laking
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 1.1.0
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: pry
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 0.10.3
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 0.10.3
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: rubocop
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,6 +178,20 @@ dependencies:
|
|
192
178
|
- - "~>"
|
193
179
|
- !ruby/object:Gem::Version
|
194
180
|
version: '1.10'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: pry
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - '='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.10.3
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.10.3
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: rake
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,14 +212,14 @@ dependencies:
|
|
212
212
|
requirements:
|
213
213
|
- - '='
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.15.
|
215
|
+
version: 0.15.9
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - '='
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.15.
|
222
|
+
version: 0.15.9
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: thor
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
@@ -287,8 +287,10 @@ files:
|
|
287
287
|
- docs/cursors.md
|
288
288
|
- docs/debugging.md
|
289
289
|
- docs/dsl.md
|
290
|
+
- docs/dsl_elements.md
|
290
291
|
- docs/events.md
|
291
292
|
- docs/events/application.md
|
293
|
+
- docs/events/by_name/action.md
|
292
294
|
- docs/events/by_name/cleanup.md
|
293
295
|
- docs/events/by_name/clear.md
|
294
296
|
- docs/events/by_name/clear_group.md
|
@@ -297,11 +299,14 @@ files:
|
|
297
299
|
- docs/events/by_name/command.md
|
298
300
|
- docs/events/by_name/cursor_bottom.md
|
299
301
|
- docs/events/by_name/cursor_down.md
|
302
|
+
- docs/events/by_name/cursor_hide.md
|
300
303
|
- docs/events/by_name/cursor_left.md
|
301
304
|
- docs/events/by_name/cursor_origin.md
|
302
305
|
- docs/events/by_name/cursor_position.md
|
303
306
|
- docs/events/by_name/cursor_reposition.md
|
307
|
+
- docs/events/by_name/cursor_reset.md
|
304
308
|
- docs/events/by_name/cursor_right.md
|
309
|
+
- docs/events/by_name/cursor_show.md
|
305
310
|
- docs/events/by_name/cursor_top.md
|
306
311
|
- docs/events/by_name/cursor_up.md
|
307
312
|
- docs/events/by_name/drb_input.md
|
@@ -325,10 +330,15 @@ files:
|
|
325
330
|
- docs/events/by_name/focus_by_name.md
|
326
331
|
- docs/events/by_name/focus_next.md
|
327
332
|
- docs/events/by_name/focus_prev.md
|
333
|
+
- docs/events/by_name/geometry_down.md
|
334
|
+
- docs/events/by_name/geometry_left.md
|
335
|
+
- docs/events/by_name/geometry_right.md
|
336
|
+
- docs/events/by_name/geometry_up.md
|
328
337
|
- docs/events/by_name/goto.md
|
329
338
|
- docs/events/by_name/hide_cursor.md
|
330
339
|
- docs/events/by_name/hide_group.md
|
331
340
|
- docs/events/by_name/hide_interface.md
|
341
|
+
- docs/events/by_name/hide_view.md
|
332
342
|
- docs/events/by_name/initialize.md
|
333
343
|
- docs/events/by_name/keypress.md
|
334
344
|
- docs/events/by_name/log.md
|
@@ -352,13 +362,22 @@ files:
|
|
352
362
|
- docs/events/by_name/refresh_view.md
|
353
363
|
- docs/events/by_name/refresh_view_content.md
|
354
364
|
- docs/events/by_name/resize.md
|
365
|
+
- docs/events/by_name/set_border_caption.md
|
366
|
+
- docs/events/by_name/set_border_title.md
|
355
367
|
- docs/events/by_name/show_cursor.md
|
356
368
|
- docs/events/by_name/show_group.md
|
357
369
|
- docs/events/by_name/show_interface.md
|
370
|
+
- docs/events/by_name/show_view.md
|
371
|
+
- docs/events/by_name/standalone.md
|
358
372
|
- docs/events/by_name/toggle_cursor.md
|
359
373
|
- docs/events/by_name/toggle_group.md
|
360
374
|
- docs/events/by_name/toggle_interface.md
|
375
|
+
- docs/events/by_name/toggle_view.md
|
361
376
|
- docs/events/by_name/unmaximise.md
|
377
|
+
- docs/events/by_name/view_down.md
|
378
|
+
- docs/events/by_name/view_left.md
|
379
|
+
- docs/events/by_name/view_right.md
|
380
|
+
- docs/events/by_name/view_up.md
|
362
381
|
- docs/events/document.md
|
363
382
|
- docs/events/drb.md
|
364
383
|
- docs/events/focus.md
|
@@ -389,6 +408,20 @@ files:
|
|
389
408
|
- examples/dsl_horizontal_alignment.rb
|
390
409
|
- examples/dsl_menus.rb
|
391
410
|
- examples/dsl_vertical_alignment.rb
|
411
|
+
- examples/views/empty_template.rb
|
412
|
+
- examples/views/expected/line.out
|
413
|
+
- examples/views/expected/lines.out
|
414
|
+
- examples/views/expected/lines_alignment.out
|
415
|
+
- examples/views/line.rb
|
416
|
+
- examples/views/lines.rb
|
417
|
+
- examples/views/lines_alignment.rb
|
418
|
+
- examples/views/lines_line_stream.rb
|
419
|
+
- examples/views/lines_line_streams.rb
|
420
|
+
- examples/views/lines_line_streams_stream.rb
|
421
|
+
- examples/views/lines_line_streams_stream_stream.rb
|
422
|
+
- examples/views/lines_streams.rb
|
423
|
+
- examples/views/lines_streams_stream.rb
|
424
|
+
- examples/views/runner.sh
|
392
425
|
- lib/vedeu.rb
|
393
426
|
- lib/vedeu/all.rb
|
394
427
|
- lib/vedeu/application/all.rb
|
@@ -398,6 +431,7 @@ files:
|
|
398
431
|
- lib/vedeu/application/controller.rb
|
399
432
|
- lib/vedeu/application/helper.rb
|
400
433
|
- lib/vedeu/application/view.rb
|
434
|
+
- lib/vedeu/boolean.rb
|
401
435
|
- lib/vedeu/borders/all.rb
|
402
436
|
- lib/vedeu/borders/border.rb
|
403
437
|
- lib/vedeu/borders/caption.rb
|
@@ -434,6 +468,12 @@ files:
|
|
434
468
|
- lib/vedeu/cells/escape.rb
|
435
469
|
- lib/vedeu/cells/html.rb
|
436
470
|
- lib/vedeu/cells/json.rb
|
471
|
+
- lib/vedeu/coercers/alignment.rb
|
472
|
+
- lib/vedeu/coercers/all.rb
|
473
|
+
- lib/vedeu/coercers/colour.rb
|
474
|
+
- lib/vedeu/coercers/colour_attributes.rb
|
475
|
+
- lib/vedeu/coercers/horizontal_alignment.rb
|
476
|
+
- lib/vedeu/coercers/vertical_alignment.rb
|
437
477
|
- lib/vedeu/colours/all.rb
|
438
478
|
- lib/vedeu/colours/background.rb
|
439
479
|
- lib/vedeu/colours/backgrounds.rb
|
@@ -442,6 +482,7 @@ files:
|
|
442
482
|
- lib/vedeu/colours/foregrounds.rb
|
443
483
|
- lib/vedeu/colours/repository.rb
|
444
484
|
- lib/vedeu/colours/translator.rb
|
485
|
+
- lib/vedeu/colours/validator.rb
|
445
486
|
- lib/vedeu/common.rb
|
446
487
|
- lib/vedeu/configuration/all.rb
|
447
488
|
- lib/vedeu/configuration/api.rb
|
@@ -470,17 +511,21 @@ files:
|
|
470
511
|
- lib/vedeu/distributed/test_application.rb
|
471
512
|
- lib/vedeu/distributed/uri.rb
|
472
513
|
- lib/vedeu/dsl/all.rb
|
473
|
-
- lib/vedeu/dsl/
|
514
|
+
- lib/vedeu/dsl/attributes.rb
|
515
|
+
- lib/vedeu/dsl/border.rb
|
516
|
+
- lib/vedeu/dsl/cursors.rb
|
474
517
|
- lib/vedeu/dsl/dsl.rb
|
475
|
-
- lib/vedeu/dsl/
|
476
|
-
- lib/vedeu/dsl/
|
518
|
+
- lib/vedeu/dsl/elements.rb
|
519
|
+
- lib/vedeu/dsl/geometry.rb
|
477
520
|
- lib/vedeu/dsl/presentation.rb
|
478
|
-
- lib/vedeu/dsl/
|
479
|
-
- lib/vedeu/dsl/
|
480
|
-
- lib/vedeu/dsl/
|
481
|
-
- lib/vedeu/dsl/
|
521
|
+
- lib/vedeu/dsl/string/align.rb
|
522
|
+
- lib/vedeu/dsl/string/all.rb
|
523
|
+
- lib/vedeu/dsl/string/text.rb
|
524
|
+
- lib/vedeu/dsl/string/truncate.rb
|
525
|
+
- lib/vedeu/dsl/string/wordwrap.rb
|
482
526
|
- lib/vedeu/dsl/use.rb
|
483
527
|
- lib/vedeu/dsl/view.rb
|
528
|
+
- lib/vedeu/dsl/views.rb
|
484
529
|
- lib/vedeu/editor/all.rb
|
485
530
|
- lib/vedeu/editor/collection.rb
|
486
531
|
- lib/vedeu/editor/cropper.rb
|
@@ -496,9 +541,11 @@ files:
|
|
496
541
|
- lib/vedeu/error.rb
|
497
542
|
- lib/vedeu/esc/actions.rb
|
498
543
|
- lib/vedeu/esc/all.rb
|
544
|
+
- lib/vedeu/esc/background.rb
|
499
545
|
- lib/vedeu/esc/borders.rb
|
500
546
|
- lib/vedeu/esc/colours.rb
|
501
547
|
- lib/vedeu/esc/esc.rb
|
548
|
+
- lib/vedeu/esc/foreground.rb
|
502
549
|
- lib/vedeu/esc/mouse.rb
|
503
550
|
- lib/vedeu/events/aliases.rb
|
504
551
|
- lib/vedeu/events/all.rb
|
@@ -506,10 +553,6 @@ files:
|
|
506
553
|
- lib/vedeu/events/event.rb
|
507
554
|
- lib/vedeu/events/repository.rb
|
508
555
|
- lib/vedeu/events/trigger.rb
|
509
|
-
- lib/vedeu/geometries/alignment/alignment.rb
|
510
|
-
- lib/vedeu/geometries/alignment/all.rb
|
511
|
-
- lib/vedeu/geometries/alignment/horizontal_alignment.rb
|
512
|
-
- lib/vedeu/geometries/alignment/vertical_alignment.rb
|
513
556
|
- lib/vedeu/geometries/all.rb
|
514
557
|
- lib/vedeu/geometries/area/all.rb
|
515
558
|
- lib/vedeu/geometries/area/area.rb
|
@@ -536,6 +579,7 @@ files:
|
|
536
579
|
- lib/vedeu/input/dsl.rb
|
537
580
|
- lib/vedeu/input/key.rb
|
538
581
|
- lib/vedeu/input/keymap.rb
|
582
|
+
- lib/vedeu/input/keys.rb
|
539
583
|
- lib/vedeu/input/mapper.rb
|
540
584
|
- lib/vedeu/input/mouse.rb
|
541
585
|
- lib/vedeu/input/raw.rb
|
@@ -573,9 +617,7 @@ files:
|
|
573
617
|
- lib/vedeu/output/compressor_cache.rb
|
574
618
|
- lib/vedeu/output/output.rb
|
575
619
|
- lib/vedeu/output/refresh.rb
|
576
|
-
- lib/vedeu/output/text.rb
|
577
620
|
- lib/vedeu/output/viewport.rb
|
578
|
-
- lib/vedeu/output/wordwrap.rb
|
579
621
|
- lib/vedeu/output/write.rb
|
580
622
|
- lib/vedeu/plugins/all.rb
|
581
623
|
- lib/vedeu/plugins/plugin.rb
|
@@ -627,19 +669,22 @@ files:
|
|
627
669
|
- lib/vedeu/views/char.rb
|
628
670
|
- lib/vedeu/views/chars.rb
|
629
671
|
- lib/vedeu/views/composition.rb
|
672
|
+
- lib/vedeu/views/default_attributes.rb
|
630
673
|
- lib/vedeu/views/html_char.rb
|
631
674
|
- lib/vedeu/views/line.rb
|
632
675
|
- lib/vedeu/views/lines.rb
|
633
676
|
- lib/vedeu/views/stream.rb
|
634
677
|
- lib/vedeu/views/streams.rb
|
678
|
+
- lib/vedeu/views/value.rb
|
635
679
|
- lib/vedeu/views/view.rb
|
636
|
-
- lib/vedeu/views/
|
680
|
+
- lib/vedeu/views/views.rb
|
637
681
|
- test/lib/vedeu/application/application_controller_test.rb
|
638
682
|
- test/lib/vedeu/application/application_helper_test.rb
|
639
683
|
- test/lib/vedeu/application/application_view_test.rb
|
640
684
|
- test/lib/vedeu/application/controller_test.rb
|
641
685
|
- test/lib/vedeu/application/helper_test.rb
|
642
686
|
- test/lib/vedeu/application/view_test.rb
|
687
|
+
- test/lib/vedeu/boolean_test.rb
|
643
688
|
- test/lib/vedeu/borders/border_test.rb
|
644
689
|
- test/lib/vedeu/borders/caption_test.rb
|
645
690
|
- test/lib/vedeu/borders/dsl_test.rb
|
@@ -672,6 +717,11 @@ files:
|
|
672
717
|
- test/lib/vedeu/cells/escape_test.rb
|
673
718
|
- test/lib/vedeu/cells/html_test.rb
|
674
719
|
- test/lib/vedeu/cells/json_test.rb
|
720
|
+
- test/lib/vedeu/coercers/alignment_test.rb
|
721
|
+
- test/lib/vedeu/coercers/colour_attributes_test.rb
|
722
|
+
- test/lib/vedeu/coercers/colour_test.rb
|
723
|
+
- test/lib/vedeu/coercers/horizontal_alignment_test.rb
|
724
|
+
- test/lib/vedeu/coercers/vertical_alignment_test.rb
|
675
725
|
- test/lib/vedeu/colours/background_test.rb
|
676
726
|
- test/lib/vedeu/colours/backgrounds_test.rb
|
677
727
|
- test/lib/vedeu/colours/colour_test.rb
|
@@ -679,6 +729,7 @@ files:
|
|
679
729
|
- test/lib/vedeu/colours/foregrounds_test.rb
|
680
730
|
- test/lib/vedeu/colours/repository_test.rb
|
681
731
|
- test/lib/vedeu/colours/translator_test.rb
|
732
|
+
- test/lib/vedeu/colours/validator_test.rb
|
682
733
|
- test/lib/vedeu/common_test.rb
|
683
734
|
- test/lib/vedeu/configuration/api_test.rb
|
684
735
|
- test/lib/vedeu/configuration/configuration_test.rb
|
@@ -694,17 +745,20 @@ files:
|
|
694
745
|
- test/lib/vedeu/distributed/subprocess_test.rb
|
695
746
|
- test/lib/vedeu/distributed/test_application_test.rb
|
696
747
|
- test/lib/vedeu/distributed/uri_test.rb
|
697
|
-
- test/lib/vedeu/dsl/
|
748
|
+
- test/lib/vedeu/dsl/attributes_test.rb
|
749
|
+
- test/lib/vedeu/dsl/border_test.rb
|
750
|
+
- test/lib/vedeu/dsl/cursors_test.rb
|
698
751
|
- test/lib/vedeu/dsl/dsl_test.rb
|
699
|
-
- test/lib/vedeu/dsl/
|
700
|
-
- test/lib/vedeu/dsl/
|
752
|
+
- test/lib/vedeu/dsl/elements_test.rb
|
753
|
+
- test/lib/vedeu/dsl/geometry_test.rb
|
701
754
|
- test/lib/vedeu/dsl/presentation_test.rb
|
702
|
-
- test/lib/vedeu/dsl/
|
703
|
-
- test/lib/vedeu/dsl/
|
704
|
-
- test/lib/vedeu/dsl/
|
705
|
-
- test/lib/vedeu/dsl/
|
755
|
+
- test/lib/vedeu/dsl/string/align_test.rb
|
756
|
+
- test/lib/vedeu/dsl/string/text_test.rb
|
757
|
+
- test/lib/vedeu/dsl/string/truncate_test.rb
|
758
|
+
- test/lib/vedeu/dsl/string/wordwrap_test.rb
|
706
759
|
- test/lib/vedeu/dsl/use_test.rb
|
707
760
|
- test/lib/vedeu/dsl/view_test.rb
|
761
|
+
- test/lib/vedeu/dsl/views_test.rb
|
708
762
|
- test/lib/vedeu/editor/collection_test.rb
|
709
763
|
- test/lib/vedeu/editor/cropper_test.rb
|
710
764
|
- test/lib/vedeu/editor/cursor_test.rb
|
@@ -718,18 +772,17 @@ files:
|
|
718
772
|
- test/lib/vedeu/editor/repository_test.rb
|
719
773
|
- test/lib/vedeu/error_test.rb
|
720
774
|
- test/lib/vedeu/esc/actions_test.rb
|
775
|
+
- test/lib/vedeu/esc/background_test.rb
|
721
776
|
- test/lib/vedeu/esc/borders_test.rb
|
722
777
|
- test/lib/vedeu/esc/colours_test.rb
|
723
778
|
- test/lib/vedeu/esc/esc_test.rb
|
779
|
+
- test/lib/vedeu/esc/foreground_test.rb
|
724
780
|
- test/lib/vedeu/esc/mouse_test.rb
|
725
781
|
- test/lib/vedeu/events/aliases_test.rb
|
726
782
|
- test/lib/vedeu/events/collection_test.rb
|
727
783
|
- test/lib/vedeu/events/event_test.rb
|
728
784
|
- test/lib/vedeu/events/repository_test.rb
|
729
785
|
- test/lib/vedeu/events/trigger_test.rb
|
730
|
-
- test/lib/vedeu/geometries/alignment/alignment_test.rb
|
731
|
-
- test/lib/vedeu/geometries/alignment/horizontal_alignment_test.rb
|
732
|
-
- test/lib/vedeu/geometries/alignment/vertical_alignment_test.rb
|
733
786
|
- test/lib/vedeu/geometries/area/area_test.rb
|
734
787
|
- test/lib/vedeu/geometries/area/dimension_test.rb
|
735
788
|
- test/lib/vedeu/geometries/area/x_dimension_test.rb
|
@@ -751,6 +804,7 @@ files:
|
|
751
804
|
- test/lib/vedeu/input/dsl_test.rb
|
752
805
|
- test/lib/vedeu/input/key_test.rb
|
753
806
|
- test/lib/vedeu/input/keymap_test.rb
|
807
|
+
- test/lib/vedeu/input/keys_test.rb
|
754
808
|
- test/lib/vedeu/input/mapper_test.rb
|
755
809
|
- test/lib/vedeu/input/mouse_test.rb
|
756
810
|
- test/lib/vedeu/input/raw_test.rb
|
@@ -782,9 +836,7 @@ files:
|
|
782
836
|
- test/lib/vedeu/output/compressor_test.rb
|
783
837
|
- test/lib/vedeu/output/output_test.rb
|
784
838
|
- test/lib/vedeu/output/refresh_test.rb
|
785
|
-
- test/lib/vedeu/output/text_test.rb
|
786
839
|
- test/lib/vedeu/output/viewport_test.rb
|
787
|
-
- test/lib/vedeu/output/wordwrap_test.rb
|
788
840
|
- test/lib/vedeu/output/write_test.rb
|
789
841
|
- test/lib/vedeu/plugins/plugin_test.rb
|
790
842
|
- test/lib/vedeu/plugins/plugins_test.rb
|
@@ -824,14 +876,17 @@ files:
|
|
824
876
|
- test/lib/vedeu/terminal/mode_test.rb
|
825
877
|
- test/lib/vedeu/terminal/terminal_test.rb
|
826
878
|
- test/lib/vedeu/views/char_test.rb
|
879
|
+
- test/lib/vedeu/views/chars_test.rb
|
827
880
|
- test/lib/vedeu/views/composition_test.rb
|
881
|
+
- test/lib/vedeu/views/default_attributes_test.rb
|
828
882
|
- test/lib/vedeu/views/html_char_test.rb
|
829
883
|
- test/lib/vedeu/views/line_test.rb
|
830
884
|
- test/lib/vedeu/views/lines_test.rb
|
831
885
|
- test/lib/vedeu/views/stream_test.rb
|
832
886
|
- test/lib/vedeu/views/streams_test.rb
|
833
|
-
- test/lib/vedeu/views/
|
887
|
+
- test/lib/vedeu/views/value_test.rb
|
834
888
|
- test/lib/vedeu/views/view_test.rb
|
889
|
+
- test/lib/vedeu/views/views_test.rb
|
835
890
|
- test/lib/vedeu_test.rb
|
836
891
|
- test/support/colour_support.sh
|
837
892
|
- test/support/coverage.rb
|
@@ -883,6 +938,7 @@ test_files:
|
|
883
938
|
- test/lib/vedeu/application/controller_test.rb
|
884
939
|
- test/lib/vedeu/application/helper_test.rb
|
885
940
|
- test/lib/vedeu/application/view_test.rb
|
941
|
+
- test/lib/vedeu/boolean_test.rb
|
886
942
|
- test/lib/vedeu/borders/border_test.rb
|
887
943
|
- test/lib/vedeu/borders/caption_test.rb
|
888
944
|
- test/lib/vedeu/borders/dsl_test.rb
|
@@ -915,6 +971,11 @@ test_files:
|
|
915
971
|
- test/lib/vedeu/cells/escape_test.rb
|
916
972
|
- test/lib/vedeu/cells/html_test.rb
|
917
973
|
- test/lib/vedeu/cells/json_test.rb
|
974
|
+
- test/lib/vedeu/coercers/alignment_test.rb
|
975
|
+
- test/lib/vedeu/coercers/colour_attributes_test.rb
|
976
|
+
- test/lib/vedeu/coercers/colour_test.rb
|
977
|
+
- test/lib/vedeu/coercers/horizontal_alignment_test.rb
|
978
|
+
- test/lib/vedeu/coercers/vertical_alignment_test.rb
|
918
979
|
- test/lib/vedeu/colours/background_test.rb
|
919
980
|
- test/lib/vedeu/colours/backgrounds_test.rb
|
920
981
|
- test/lib/vedeu/colours/colour_test.rb
|
@@ -922,6 +983,7 @@ test_files:
|
|
922
983
|
- test/lib/vedeu/colours/foregrounds_test.rb
|
923
984
|
- test/lib/vedeu/colours/repository_test.rb
|
924
985
|
- test/lib/vedeu/colours/translator_test.rb
|
986
|
+
- test/lib/vedeu/colours/validator_test.rb
|
925
987
|
- test/lib/vedeu/common_test.rb
|
926
988
|
- test/lib/vedeu/configuration/api_test.rb
|
927
989
|
- test/lib/vedeu/configuration/configuration_test.rb
|
@@ -937,17 +999,20 @@ test_files:
|
|
937
999
|
- test/lib/vedeu/distributed/subprocess_test.rb
|
938
1000
|
- test/lib/vedeu/distributed/test_application_test.rb
|
939
1001
|
- test/lib/vedeu/distributed/uri_test.rb
|
940
|
-
- test/lib/vedeu/dsl/
|
1002
|
+
- test/lib/vedeu/dsl/attributes_test.rb
|
1003
|
+
- test/lib/vedeu/dsl/border_test.rb
|
1004
|
+
- test/lib/vedeu/dsl/cursors_test.rb
|
941
1005
|
- test/lib/vedeu/dsl/dsl_test.rb
|
942
|
-
- test/lib/vedeu/dsl/
|
943
|
-
- test/lib/vedeu/dsl/
|
1006
|
+
- test/lib/vedeu/dsl/elements_test.rb
|
1007
|
+
- test/lib/vedeu/dsl/geometry_test.rb
|
944
1008
|
- test/lib/vedeu/dsl/presentation_test.rb
|
945
|
-
- test/lib/vedeu/dsl/
|
946
|
-
- test/lib/vedeu/dsl/
|
947
|
-
- test/lib/vedeu/dsl/
|
948
|
-
- test/lib/vedeu/dsl/
|
1009
|
+
- test/lib/vedeu/dsl/string/align_test.rb
|
1010
|
+
- test/lib/vedeu/dsl/string/text_test.rb
|
1011
|
+
- test/lib/vedeu/dsl/string/truncate_test.rb
|
1012
|
+
- test/lib/vedeu/dsl/string/wordwrap_test.rb
|
949
1013
|
- test/lib/vedeu/dsl/use_test.rb
|
950
1014
|
- test/lib/vedeu/dsl/view_test.rb
|
1015
|
+
- test/lib/vedeu/dsl/views_test.rb
|
951
1016
|
- test/lib/vedeu/editor/collection_test.rb
|
952
1017
|
- test/lib/vedeu/editor/cropper_test.rb
|
953
1018
|
- test/lib/vedeu/editor/cursor_test.rb
|
@@ -961,18 +1026,17 @@ test_files:
|
|
961
1026
|
- test/lib/vedeu/editor/repository_test.rb
|
962
1027
|
- test/lib/vedeu/error_test.rb
|
963
1028
|
- test/lib/vedeu/esc/actions_test.rb
|
1029
|
+
- test/lib/vedeu/esc/background_test.rb
|
964
1030
|
- test/lib/vedeu/esc/borders_test.rb
|
965
1031
|
- test/lib/vedeu/esc/colours_test.rb
|
966
1032
|
- test/lib/vedeu/esc/esc_test.rb
|
1033
|
+
- test/lib/vedeu/esc/foreground_test.rb
|
967
1034
|
- test/lib/vedeu/esc/mouse_test.rb
|
968
1035
|
- test/lib/vedeu/events/aliases_test.rb
|
969
1036
|
- test/lib/vedeu/events/collection_test.rb
|
970
1037
|
- test/lib/vedeu/events/event_test.rb
|
971
1038
|
- test/lib/vedeu/events/repository_test.rb
|
972
1039
|
- test/lib/vedeu/events/trigger_test.rb
|
973
|
-
- test/lib/vedeu/geometries/alignment/alignment_test.rb
|
974
|
-
- test/lib/vedeu/geometries/alignment/horizontal_alignment_test.rb
|
975
|
-
- test/lib/vedeu/geometries/alignment/vertical_alignment_test.rb
|
976
1040
|
- test/lib/vedeu/geometries/area/area_test.rb
|
977
1041
|
- test/lib/vedeu/geometries/area/dimension_test.rb
|
978
1042
|
- test/lib/vedeu/geometries/area/x_dimension_test.rb
|
@@ -994,6 +1058,7 @@ test_files:
|
|
994
1058
|
- test/lib/vedeu/input/dsl_test.rb
|
995
1059
|
- test/lib/vedeu/input/key_test.rb
|
996
1060
|
- test/lib/vedeu/input/keymap_test.rb
|
1061
|
+
- test/lib/vedeu/input/keys_test.rb
|
997
1062
|
- test/lib/vedeu/input/mapper_test.rb
|
998
1063
|
- test/lib/vedeu/input/mouse_test.rb
|
999
1064
|
- test/lib/vedeu/input/raw_test.rb
|
@@ -1025,9 +1090,7 @@ test_files:
|
|
1025
1090
|
- test/lib/vedeu/output/compressor_test.rb
|
1026
1091
|
- test/lib/vedeu/output/output_test.rb
|
1027
1092
|
- test/lib/vedeu/output/refresh_test.rb
|
1028
|
-
- test/lib/vedeu/output/text_test.rb
|
1029
1093
|
- test/lib/vedeu/output/viewport_test.rb
|
1030
|
-
- test/lib/vedeu/output/wordwrap_test.rb
|
1031
1094
|
- test/lib/vedeu/output/write_test.rb
|
1032
1095
|
- test/lib/vedeu/plugins/plugin_test.rb
|
1033
1096
|
- test/lib/vedeu/plugins/plugins_test.rb
|
@@ -1067,14 +1130,17 @@ test_files:
|
|
1067
1130
|
- test/lib/vedeu/terminal/mode_test.rb
|
1068
1131
|
- test/lib/vedeu/terminal/terminal_test.rb
|
1069
1132
|
- test/lib/vedeu/views/char_test.rb
|
1133
|
+
- test/lib/vedeu/views/chars_test.rb
|
1070
1134
|
- test/lib/vedeu/views/composition_test.rb
|
1135
|
+
- test/lib/vedeu/views/default_attributes_test.rb
|
1071
1136
|
- test/lib/vedeu/views/html_char_test.rb
|
1072
1137
|
- test/lib/vedeu/views/line_test.rb
|
1073
1138
|
- test/lib/vedeu/views/lines_test.rb
|
1074
1139
|
- test/lib/vedeu/views/stream_test.rb
|
1075
1140
|
- test/lib/vedeu/views/streams_test.rb
|
1076
|
-
- test/lib/vedeu/views/
|
1141
|
+
- test/lib/vedeu/views/value_test.rb
|
1077
1142
|
- test/lib/vedeu/views/view_test.rb
|
1143
|
+
- test/lib/vedeu/views/views_test.rb
|
1078
1144
|
- test/lib/vedeu_test.rb
|
1079
1145
|
- test/support/colour_support.sh
|
1080
1146
|
- test/support/coverage.rb
|