vedeu 0.6.29 → 0.6.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/Guardfile +6 -5
- data/README.md +50 -4
- data/Rakefile +16 -4
- data/docs/dsl.md +3 -3
- data/lib/vedeu/all.rb +6 -8
- data/lib/vedeu/bindings/all.rb +43 -13
- data/lib/vedeu/borders/border.rb +26 -3
- data/lib/vedeu/borders/refresh.rb +5 -0
- data/lib/vedeu/buffers/refresh.rb +10 -0
- data/lib/vedeu/cursors/cursor.rb +59 -0
- data/lib/vedeu/cursors/refresh.rb +5 -0
- data/lib/vedeu/distributed/server.rb +12 -0
- data/lib/vedeu/distributed/subprocess.rb +7 -2
- data/lib/vedeu/editor/editor.rb +5 -0
- data/lib/vedeu/editor/repository.rb +41 -0
- data/lib/vedeu/geometry/geometry.rb +19 -8
- data/lib/vedeu/geometry/repository.rb +25 -0
- data/lib/vedeu/groups/clear.rb +3 -0
- data/lib/vedeu/groups/group.rb +9 -0
- data/lib/vedeu/groups/refresh.rb +5 -0
- data/lib/vedeu/input/dsl.rb +4 -4
- data/lib/vedeu/input/mapper.rb +3 -0
- data/lib/vedeu/interfaces/all.rb +1 -0
- data/lib/vedeu/interfaces/dsl.rb +1 -1
- data/lib/vedeu/interfaces/interface.rb +12 -0
- data/lib/vedeu/logging/log.rb +3 -0
- data/lib/vedeu/menus/repository.rb +40 -0
- data/lib/vedeu/models/focus.rb +9 -0
- data/lib/vedeu/output/clear/interface.rb +9 -1
- data/lib/vedeu/output/refresh/refresh.rb +3 -0
- data/lib/vedeu/repositories/model.rb +1 -9
- data/lib/vedeu/runtime/application.rb +7 -0
- data/lib/vedeu/runtime/flags.rb +3 -0
- data/lib/vedeu/runtime/launcher.rb +2 -0
- data/lib/vedeu/runtime/router.rb +7 -0
- data/lib/vedeu/terminal/buffer.rb +11 -0
- data/lib/vedeu/terminal/terminal.rb +3 -0
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/bindings/all_test.rb +19 -0
- data/test/lib/vedeu/borders/border_test.rb +0 -4
- data/test/lib/vedeu/borders/refresh_test.rb +4 -0
- data/test/lib/vedeu/buffers/refresh_test.rb +5 -0
- data/test/lib/vedeu/cursors/cursor_test.rb +21 -0
- data/test/lib/vedeu/cursors/refresh_test.rb +4 -0
- data/test/lib/vedeu/distributed/server_test.rb +7 -0
- data/test/lib/vedeu/editor/editor_test.rb +4 -0
- data/test/lib/vedeu/editor/repository_test.rb +12 -0
- data/test/lib/vedeu/events/aliases_test.rb +0 -1
- data/test/lib/vedeu/geometry/geometry_test.rb +0 -3
- data/test/lib/vedeu/geometry/repository_test.rb +13 -0
- data/test/lib/vedeu/groups/clear_test.rb +4 -0
- data/test/lib/vedeu/groups/group_test.rb +6 -0
- data/test/lib/vedeu/groups/refresh_test.rb +4 -0
- data/test/lib/vedeu/input/dsl_test.rb +3 -3
- data/test/lib/vedeu/input/mapper_test.rb +4 -0
- data/test/lib/vedeu/interfaces/interface_test.rb +9 -0
- data/test/lib/vedeu/logging/log_test.rb +4 -0
- data/test/lib/vedeu/menus/repository_test.rb +13 -0
- data/test/lib/vedeu/models/focus_test.rb +6 -0
- data/test/lib/vedeu/output/clear/interface_test.rb +5 -0
- data/test/lib/vedeu/output/refresh/refresh_test.rb +4 -0
- data/test/lib/vedeu/repositories/model_test.rb +0 -15
- data/test/lib/vedeu/runtime/application_test.rb +5 -0
- data/test/lib/vedeu/runtime/flags_test.rb +4 -0
- data/test/lib/vedeu/runtime/router_test.rb +26 -0
- data/test/lib/vedeu/terminal/buffer_test.rb +8 -0
- data/test/lib/vedeu/terminal/terminal_test.rb +4 -0
- data/test/support/examples/material_colours_app.rb +24 -4
- data/test/test_helper.rb +23 -23
- metadata +4 -40
- data/lib/vedeu/bindings/application.rb +0 -41
- data/lib/vedeu/bindings/bindings.rb +0 -46
- data/lib/vedeu/bindings/cursors.rb +0 -101
- data/lib/vedeu/bindings/document.rb +0 -97
- data/lib/vedeu/bindings/drb.rb +0 -78
- data/lib/vedeu/bindings/focus.rb +0 -46
- data/lib/vedeu/bindings/menus.rb +0 -99
- data/lib/vedeu/bindings/movement.rb +0 -51
- data/lib/vedeu/bindings/refresh.rb +0 -74
- data/lib/vedeu/bindings/system.rb +0 -81
- data/lib/vedeu/bindings/view.rb +0 -50
- data/lib/vedeu/bindings/visibility.rb +0 -118
- data/test/lib/vedeu/bindings/application_test.rb +0 -39
- data/test/lib/vedeu/bindings/bindings_test.rb +0 -109
- data/test/lib/vedeu/bindings/cursors_test.rb +0 -24
- data/test/lib/vedeu/bindings/document_test.rb +0 -25
- data/test/lib/vedeu/bindings/drb_test.rb +0 -27
- data/test/lib/vedeu/bindings/focus_test.rb +0 -19
- data/test/lib/vedeu/bindings/menus_test.rb +0 -26
- data/test/lib/vedeu/bindings/movement_test.rb +0 -24
- data/test/lib/vedeu/bindings/refresh_test.rb +0 -22
- data/test/lib/vedeu/bindings/system_test.rb +0 -24
- data/test/lib/vedeu/bindings/view_test.rb +0 -19
- data/test/lib/vedeu/bindings/visibility_test.rb +0 -52
- data/test/support/all_seeds.sh +0 -9
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
module Vedeu
|
4
|
-
|
5
|
-
module Bindings
|
6
|
-
|
7
|
-
describe View do
|
8
|
-
|
9
|
-
context 'the system events needed by Vedeu to run are defined' do
|
10
|
-
it { Vedeu.bound?(:_maximise_).must_equal(true) }
|
11
|
-
it { Vedeu.bound?(:_resize_).must_equal(true) }
|
12
|
-
it { Vedeu.bound?(:_unmaximise_).must_equal(true) }
|
13
|
-
end
|
14
|
-
|
15
|
-
end # View
|
16
|
-
|
17
|
-
end # Bindings
|
18
|
-
|
19
|
-
end # Vedeu
|
@@ -1,52 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
module Vedeu
|
4
|
-
|
5
|
-
module Bindings
|
6
|
-
|
7
|
-
describe Visibility do
|
8
|
-
|
9
|
-
context 'the visibility events are defined' do
|
10
|
-
it { Vedeu.bound?(:_clear_).must_equal(true) }
|
11
|
-
it { Vedeu.bound?(:_clear_group_).must_equal(true) }
|
12
|
-
it { Vedeu.bound?(:_clear_view_).must_equal(true) }
|
13
|
-
it { Vedeu.bound?(:_clear_view_content_).must_equal(true) }
|
14
|
-
|
15
|
-
it { Vedeu.bound?(:_cursor_hide_).must_equal(true) }
|
16
|
-
it { Vedeu.bound?(:_cursor_show_).must_equal(true) }
|
17
|
-
it { Vedeu.bound?(:_hide_cursor_).must_equal(true) }
|
18
|
-
it { Vedeu.bound?(:_show_cursor_).must_equal(true) }
|
19
|
-
it { Vedeu.bound?(:_toggle_cursor_).must_equal(true) }
|
20
|
-
|
21
|
-
it { Vedeu.bound?(:_hide_group_).must_equal(true) }
|
22
|
-
it { Vedeu.bound?(:_show_group_).must_equal(true) }
|
23
|
-
it { Vedeu.bound?(:_toggle_group_).must_equal(true) }
|
24
|
-
|
25
|
-
it { Vedeu.bound?(:_hide_interface_).must_equal(true) }
|
26
|
-
it { Vedeu.bound?(:_show_interface_).must_equal(true) }
|
27
|
-
it { Vedeu.bound?(:_toggle_interface_).must_equal(true) }
|
28
|
-
it { Vedeu.bound?(:_hide_view_).must_equal(true) }
|
29
|
-
it { Vedeu.bound?(:_show_view_).must_equal(true) }
|
30
|
-
it { Vedeu.bound?(:_toggle_view_).must_equal(true) }
|
31
|
-
end
|
32
|
-
|
33
|
-
# describe ':_some_event_' do
|
34
|
-
# let(:_name) { 'some_name' }
|
35
|
-
#
|
36
|
-
# before do
|
37
|
-
# # stub expectation
|
38
|
-
# end
|
39
|
-
#
|
40
|
-
# subject { Vedeu.trigger(:_some_event_, _name) }
|
41
|
-
#
|
42
|
-
# it {
|
43
|
-
# # expectation
|
44
|
-
# subject
|
45
|
-
# }
|
46
|
-
# end
|
47
|
-
|
48
|
-
end # Visibility
|
49
|
-
|
50
|
-
end # Bindings
|
51
|
-
|
52
|
-
end # Vedeu
|