vedeu 0.6.19 → 0.6.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/configuration.md +6 -4
- data/docs/dsl.md +23 -21
- data/docs/events/system.md +9 -9
- data/docs/getting_started.md +54 -48
- data/docs/object_graph.md +4 -4
- data/lib/vedeu/all.rb +1 -1
- data/lib/vedeu/api/external.rb +10 -10
- data/lib/vedeu/api/internal.rb +2 -2
- data/lib/vedeu/bindings/application.rb +5 -2
- data/lib/vedeu/bindings/bindings.rb +15 -2
- data/lib/vedeu/bindings/movement.rb +10 -5
- data/lib/vedeu/bindings/refresh.rb +1 -1
- data/lib/vedeu/bindings/system.rb +1 -1
- data/lib/vedeu/bindings/visibility.rb +20 -37
- data/lib/vedeu/cursors/cursor.rb +1 -14
- data/lib/vedeu/dsl/all.rb +0 -1
- data/lib/vedeu/dsl/interface.rb +1 -1
- data/lib/vedeu/esc/colours.rb +1 -1
- data/lib/vedeu/geometry/geometry.rb +19 -25
- data/lib/vedeu/groups/all.rb +16 -0
- data/lib/vedeu/{output/clear/group.rb → groups/clear.rb} +7 -7
- data/lib/vedeu/{dsl/group.rb → groups/dsl.rb} +10 -10
- data/lib/vedeu/{models → groups}/group.rb +14 -31
- data/lib/vedeu/{output/refresh/refresh_group.rb → groups/refresh.rb} +7 -7
- data/lib/vedeu/groups/repository.rb +24 -0
- data/lib/vedeu/models/all.rb +0 -2
- data/lib/vedeu/models/interface.rb +0 -12
- data/lib/vedeu/models/toggleable.rb +1 -1
- data/lib/vedeu/output/clear/all.rb +0 -1
- data/lib/vedeu/output/wordwrap.rb +3 -5
- data/lib/vedeu/repositories/model.rb +8 -1
- data/lib/vedeu/runtime/main_loop.rb +2 -2
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/api/external_test.rb +1 -1
- data/test/lib/vedeu/bindings/application_test.rb +1 -0
- data/test/lib/vedeu/bindings/bindings_test.rb +27 -0
- data/test/lib/vedeu/borders/border_test.rb +43 -37
- data/test/lib/vedeu/borders/render_test.rb +5 -1
- data/test/lib/vedeu/buffers/buffer_test.rb +9 -7
- data/test/lib/vedeu/cursors/cursor_test.rb +11 -9
- data/test/lib/vedeu/distributed/test_application_test.rb +18 -16
- data/test/lib/vedeu/dsl/interface_test.rb +2 -2
- data/test/lib/vedeu/editor/cursor_test.rb +18 -16
- data/test/lib/vedeu/editor/document_test.rb +7 -5
- data/test/lib/vedeu/esc/actions_test.rb +0 -2
- data/test/lib/vedeu/esc/borders_test.rb +0 -2
- data/test/lib/vedeu/esc/colours_test.rb +0 -2
- data/test/lib/vedeu/events/aliases_test.rb +1 -1
- data/test/lib/vedeu/geometry/area_test.rb +10 -8
- data/test/lib/vedeu/geometry/dsl_test.rb +2 -2
- data/test/lib/vedeu/geometry/geometry_test.rb +18 -30
- data/test/lib/vedeu/geometry/position_test.rb +6 -4
- data/test/lib/vedeu/{output/clear/group_test.rb → groups/clear_test.rb} +8 -8
- data/test/lib/vedeu/{dsl/group_test.rb → groups/dsl_test.rb} +8 -8
- data/test/lib/vedeu/{models → groups}/group_test.rb +12 -10
- data/test/lib/vedeu/{output/refresh/refresh_group_test.rb → groups/refresh_test.rb} +7 -7
- data/test/lib/vedeu/{models/groups_test.rb → groups/repository_test.rb} +6 -6
- data/test/lib/vedeu/menus/menu_test.rb +7 -5
- data/test/lib/vedeu/models/cell_test.rb +5 -3
- data/test/lib/vedeu/models/interface_test.rb +18 -42
- data/test/lib/vedeu/models/toggleable_test.rb +5 -3
- data/test/lib/vedeu/models/views/char_test.rb +8 -6
- data/test/lib/vedeu/models/views/composition_test.rb +6 -4
- data/test/lib/vedeu/models/views/line_test.rb +5 -3
- data/test/lib/vedeu/models/views/stream_test.rb +9 -7
- data/test/lib/vedeu/models/views/view_test.rb +30 -12
- data/test/lib/vedeu/output/presentation/style_test.rb +4 -2
- data/test/lib/vedeu/plugins/plugin_test.rb +8 -6
- data/test/lib/vedeu/repositories/collection_test.rb +8 -6
- data/test/lib/vedeu/runtime/application_test.rb +1 -1
- data/test/test_helper.rb +1 -0
- metadata +18 -17
- data/lib/vedeu/models/groups.rb +0 -24
@@ -21,12 +21,14 @@ module Vedeu
|
|
21
21
|
end
|
22
22
|
|
23
23
|
describe 'accessors' do
|
24
|
-
it {
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
it {
|
25
|
+
instance.must_respond_to(:name)
|
26
|
+
instance.must_respond_to(:gem)
|
27
|
+
instance.must_respond_to(:gem_name)
|
28
|
+
instance.must_respond_to(:enabled)
|
29
|
+
instance.must_respond_to(:enabled=)
|
30
|
+
instance.must_respond_to(:enabled?)
|
31
|
+
}
|
30
32
|
end
|
31
33
|
|
32
34
|
describe '#load!' do
|
@@ -20,12 +20,14 @@ module Vedeu
|
|
20
20
|
end
|
21
21
|
|
22
22
|
describe 'accessors' do
|
23
|
-
it {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
23
|
+
it {
|
24
|
+
instance.must_respond_to(:collection)
|
25
|
+
instance.must_respond_to(:all)
|
26
|
+
instance.must_respond_to(:parent)
|
27
|
+
instance.must_respond_to(:parent=)
|
28
|
+
instance.must_respond_to(:name)
|
29
|
+
instance.must_respond_to(:name=)
|
30
|
+
}
|
29
31
|
end
|
30
32
|
|
31
33
|
describe '.coerce' do
|
data/test/test_helper.rb
CHANGED
@@ -30,6 +30,7 @@ unless ENV['NO_SIMPLECOV']
|
|
30
30
|
add_group 'esc', 'vedeu/esc'
|
31
31
|
add_group 'events', 'vedeu/events'
|
32
32
|
add_group 'geometry', 'vedeu/geometry'
|
33
|
+
add_group 'groups', 'vedeu/groups'
|
33
34
|
add_group 'input', 'vedeu/input'
|
34
35
|
add_group 'logging', 'vedeu/logging'
|
35
36
|
add_group 'menus', 'vedeu/menus'
|
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.6.
|
4
|
+
version: 0.6.20
|
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-09-
|
11
|
+
date: 2015-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -332,7 +332,6 @@ files:
|
|
332
332
|
- lib/vedeu/dsl/all.rb
|
333
333
|
- lib/vedeu/dsl/composition.rb
|
334
334
|
- lib/vedeu/dsl/dsl.rb
|
335
|
-
- lib/vedeu/dsl/group.rb
|
336
335
|
- lib/vedeu/dsl/interface.rb
|
337
336
|
- lib/vedeu/dsl/keymap.rb
|
338
337
|
- lib/vedeu/dsl/line.rb
|
@@ -375,6 +374,12 @@ files:
|
|
375
374
|
- lib/vedeu/geometry/null.rb
|
376
375
|
- lib/vedeu/geometry/position.rb
|
377
376
|
- lib/vedeu/geometry/repository.rb
|
377
|
+
- lib/vedeu/groups/all.rb
|
378
|
+
- lib/vedeu/groups/clear.rb
|
379
|
+
- lib/vedeu/groups/dsl.rb
|
380
|
+
- lib/vedeu/groups/group.rb
|
381
|
+
- lib/vedeu/groups/refresh.rb
|
382
|
+
- lib/vedeu/groups/repository.rb
|
378
383
|
- lib/vedeu/input/all.rb
|
379
384
|
- lib/vedeu/input/capture.rb
|
380
385
|
- lib/vedeu/input/key.rb
|
@@ -398,8 +403,6 @@ files:
|
|
398
403
|
- lib/vedeu/models/cell.rb
|
399
404
|
- lib/vedeu/models/escape.rb
|
400
405
|
- lib/vedeu/models/focus.rb
|
401
|
-
- lib/vedeu/models/group.rb
|
402
|
-
- lib/vedeu/models/groups.rb
|
403
406
|
- lib/vedeu/models/interface.rb
|
404
407
|
- lib/vedeu/models/interfaces.rb
|
405
408
|
- lib/vedeu/models/page.rb
|
@@ -418,7 +421,6 @@ files:
|
|
418
421
|
- lib/vedeu/null/view.rb
|
419
422
|
- lib/vedeu/options.rb
|
420
423
|
- lib/vedeu/output/clear/all.rb
|
421
|
-
- lib/vedeu/output/clear/group.rb
|
422
424
|
- lib/vedeu/output/clear/interface.rb
|
423
425
|
- lib/vedeu/output/compressor.rb
|
424
426
|
- lib/vedeu/output/direct.rb
|
@@ -428,7 +430,6 @@ files:
|
|
428
430
|
- lib/vedeu/output/presentation/style.rb
|
429
431
|
- lib/vedeu/output/presentation/styles.rb
|
430
432
|
- lib/vedeu/output/refresh/refresh.rb
|
431
|
-
- lib/vedeu/output/refresh/refresh_group.rb
|
432
433
|
- lib/vedeu/output/renderers/all.rb
|
433
434
|
- lib/vedeu/output/renderers/escape_sequence.rb
|
434
435
|
- lib/vedeu/output/renderers/file.rb
|
@@ -519,7 +520,6 @@ files:
|
|
519
520
|
- test/lib/vedeu/distributed/uri_test.rb
|
520
521
|
- test/lib/vedeu/dsl/composition_test.rb
|
521
522
|
- test/lib/vedeu/dsl/dsl_test.rb
|
522
|
-
- test/lib/vedeu/dsl/group_test.rb
|
523
523
|
- test/lib/vedeu/dsl/interface_test.rb
|
524
524
|
- test/lib/vedeu/dsl/keymap_test.rb
|
525
525
|
- test/lib/vedeu/dsl/line_test.rb
|
@@ -558,6 +558,11 @@ files:
|
|
558
558
|
- test/lib/vedeu/geometry/null_test.rb
|
559
559
|
- test/lib/vedeu/geometry/position_test.rb
|
560
560
|
- test/lib/vedeu/geometry/repository_test.rb
|
561
|
+
- test/lib/vedeu/groups/clear_test.rb
|
562
|
+
- test/lib/vedeu/groups/dsl_test.rb
|
563
|
+
- test/lib/vedeu/groups/group_test.rb
|
564
|
+
- test/lib/vedeu/groups/refresh_test.rb
|
565
|
+
- test/lib/vedeu/groups/repository_test.rb
|
561
566
|
- test/lib/vedeu/input/capture_test.rb
|
562
567
|
- test/lib/vedeu/input/key_test.rb
|
563
568
|
- test/lib/vedeu/input/keymap_test.rb
|
@@ -577,8 +582,6 @@ files:
|
|
577
582
|
- test/lib/vedeu/models/cell_test.rb
|
578
583
|
- test/lib/vedeu/models/escape_test.rb
|
579
584
|
- test/lib/vedeu/models/focus_test.rb
|
580
|
-
- test/lib/vedeu/models/group_test.rb
|
581
|
-
- test/lib/vedeu/models/groups_test.rb
|
582
585
|
- test/lib/vedeu/models/interface_test.rb
|
583
586
|
- test/lib/vedeu/models/interfaces_test.rb
|
584
587
|
- test/lib/vedeu/models/page_test.rb
|
@@ -594,7 +597,6 @@ files:
|
|
594
597
|
- test/lib/vedeu/null/interface_test.rb
|
595
598
|
- test/lib/vedeu/null/view_test.rb
|
596
599
|
- test/lib/vedeu/options_test.rb
|
597
|
-
- test/lib/vedeu/output/clear/group_test.rb
|
598
600
|
- test/lib/vedeu/output/clear/interface_test.rb
|
599
601
|
- test/lib/vedeu/output/compressor_test.rb
|
600
602
|
- test/lib/vedeu/output/direct_test.rb
|
@@ -603,7 +605,6 @@ files:
|
|
603
605
|
- test/lib/vedeu/output/presentation/presentation_test.rb
|
604
606
|
- test/lib/vedeu/output/presentation/style_test.rb
|
605
607
|
- test/lib/vedeu/output/presentation/styles_test.rb
|
606
|
-
- test/lib/vedeu/output/refresh/refresh_group_test.rb
|
607
608
|
- test/lib/vedeu/output/refresh/refresh_test.rb
|
608
609
|
- test/lib/vedeu/output/renderers/all_test.rb
|
609
610
|
- test/lib/vedeu/output/renderers/escape_sequence_test.rb
|
@@ -737,7 +738,6 @@ test_files:
|
|
737
738
|
- test/lib/vedeu/distributed/uri_test.rb
|
738
739
|
- test/lib/vedeu/dsl/composition_test.rb
|
739
740
|
- test/lib/vedeu/dsl/dsl_test.rb
|
740
|
-
- test/lib/vedeu/dsl/group_test.rb
|
741
741
|
- test/lib/vedeu/dsl/interface_test.rb
|
742
742
|
- test/lib/vedeu/dsl/keymap_test.rb
|
743
743
|
- test/lib/vedeu/dsl/line_test.rb
|
@@ -776,6 +776,11 @@ test_files:
|
|
776
776
|
- test/lib/vedeu/geometry/null_test.rb
|
777
777
|
- test/lib/vedeu/geometry/position_test.rb
|
778
778
|
- test/lib/vedeu/geometry/repository_test.rb
|
779
|
+
- test/lib/vedeu/groups/clear_test.rb
|
780
|
+
- test/lib/vedeu/groups/dsl_test.rb
|
781
|
+
- test/lib/vedeu/groups/group_test.rb
|
782
|
+
- test/lib/vedeu/groups/refresh_test.rb
|
783
|
+
- test/lib/vedeu/groups/repository_test.rb
|
779
784
|
- test/lib/vedeu/input/capture_test.rb
|
780
785
|
- test/lib/vedeu/input/key_test.rb
|
781
786
|
- test/lib/vedeu/input/keymap_test.rb
|
@@ -795,8 +800,6 @@ test_files:
|
|
795
800
|
- test/lib/vedeu/models/cell_test.rb
|
796
801
|
- test/lib/vedeu/models/escape_test.rb
|
797
802
|
- test/lib/vedeu/models/focus_test.rb
|
798
|
-
- test/lib/vedeu/models/group_test.rb
|
799
|
-
- test/lib/vedeu/models/groups_test.rb
|
800
803
|
- test/lib/vedeu/models/interface_test.rb
|
801
804
|
- test/lib/vedeu/models/interfaces_test.rb
|
802
805
|
- test/lib/vedeu/models/page_test.rb
|
@@ -812,7 +815,6 @@ test_files:
|
|
812
815
|
- test/lib/vedeu/null/interface_test.rb
|
813
816
|
- test/lib/vedeu/null/view_test.rb
|
814
817
|
- test/lib/vedeu/options_test.rb
|
815
|
-
- test/lib/vedeu/output/clear/group_test.rb
|
816
818
|
- test/lib/vedeu/output/clear/interface_test.rb
|
817
819
|
- test/lib/vedeu/output/compressor_test.rb
|
818
820
|
- test/lib/vedeu/output/direct_test.rb
|
@@ -821,7 +823,6 @@ test_files:
|
|
821
823
|
- test/lib/vedeu/output/presentation/presentation_test.rb
|
822
824
|
- test/lib/vedeu/output/presentation/style_test.rb
|
823
825
|
- test/lib/vedeu/output/presentation/styles_test.rb
|
824
|
-
- test/lib/vedeu/output/refresh/refresh_group_test.rb
|
825
826
|
- test/lib/vedeu/output/refresh/refresh_test.rb
|
826
827
|
- test/lib/vedeu/output/renderers/all_test.rb
|
827
828
|
- test/lib/vedeu/output/renderers/escape_sequence_test.rb
|
data/lib/vedeu/models/groups.rb
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
module Vedeu
|
2
|
-
|
3
|
-
module Models
|
4
|
-
|
5
|
-
# Allows the storing of view groups.
|
6
|
-
#
|
7
|
-
class Groups < Vedeu::Repositories::Repository
|
8
|
-
|
9
|
-
singleton_class.send(:alias_method, :groups, :repository)
|
10
|
-
|
11
|
-
null Vedeu::Models::Group
|
12
|
-
real Vedeu::Models::Group
|
13
|
-
|
14
|
-
end # Groups
|
15
|
-
|
16
|
-
class Group
|
17
|
-
|
18
|
-
repo Vedeu::Models::Groups.repository
|
19
|
-
|
20
|
-
end # Group
|
21
|
-
|
22
|
-
end # Models
|
23
|
-
|
24
|
-
end # Vedeu
|