vedeu 0.8.20 → 0.8.21
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/dsl/by_method/geometry/align_centre.md +3 -0
- data/docs/dsl/by_method/geometry/columns.md +12 -1
- data/docs/dsl/by_method/geometry/height.md +9 -0
- data/docs/dsl/by_method/geometry/horizontal_alignment.md +3 -1
- data/docs/dsl/by_method/geometry/rows.md +12 -1
- data/docs/dsl/by_method/geometry/vertical_alignment.md +3 -1
- data/docs/dsl/by_method/geometry/width.md +9 -0
- data/docs/dsl/by_method/geometry/x.md +11 -1
- data/docs/dsl/by_method/geometry/xn.md +14 -1
- data/docs/dsl/by_method/geometry/y.md +11 -1
- data/docs/dsl/by_method/geometry/yn.md +12 -1
- data/docs/dsl/by_method/geometry/zindex.md +18 -0
- data/docs/dsl/by_method/template_for.md +10 -0
- data/docs/dsl/by_method/use.md +21 -0
- data/integrations/342_streams.rb +3 -1
- data/integrations/dsl_app_001.rb +3 -1
- data/integrations/dsl_app_002.rb +3 -1
- data/integrations/dsl_app_003.rb +3 -1
- data/integrations/dsl_app_004.rb +3 -1
- data/integrations/dsl_app_005.rb +3 -1
- data/integrations/dsl_app_006.rb +3 -1
- data/integrations/dsl_app_007.rb +3 -1
- data/integrations/dsl_app_008.rb +3 -1
- data/integrations/dsl_app_009.rb +3 -1
- data/integrations/dsl_app_010.rb +3 -1
- data/integrations/dsl_app_011.rb +3 -1
- data/integrations/dsl_app_012.rb +3 -1
- data/integrations/dsl_app_013.rb +3 -1
- data/integrations/dsl_app_014.rb +3 -1
- data/integrations/dsl_app_015.rb +3 -1
- data/integrations/dsl_app_016.rb +3 -1
- data/integrations/dsl_app_017.rb +3 -1
- data/integrations/dsl_app_018.rb +3 -1
- data/integrations/dsl_app_019.rb +3 -1
- data/integrations/dsl_app_020.rb +3 -1
- data/integrations/dsl_app_021.rb +3 -1
- data/integrations/dsl_app_022.rb +3 -1
- data/integrations/dsl_app_border_001.rb +3 -1
- data/integrations/dsl_app_border_002.rb +3 -1
- data/integrations/dsl_app_border_003.rb +3 -1
- data/integrations/dsl_app_border_004.rb +3 -1
- data/integrations/dsl_app_border_005.rb +3 -1
- data/integrations/dsl_app_border_006.rb +3 -1
- data/integrations/dsl_app_border_007.rb +3 -1
- data/integrations/dsl_app_border_008.rb +3 -1
- data/integrations/dsl_app_border_009.rb +3 -1
- data/integrations/dsl_app_border_010.rb +3 -1
- data/integrations/dsl_app_border_011.rb +3 -1
- data/integrations/test_runner.rb +20 -10
- data/lib/vedeu/borders/border.rb +3 -0
- data/lib/vedeu/borders/dsl.rb +1 -1
- data/lib/vedeu/borders/refresh.rb +1 -1
- data/lib/vedeu/borders/repository.rb +0 -2
- data/lib/vedeu/buffers/buffer.rb +1 -0
- data/lib/vedeu/buffers/repository.rb +0 -2
- data/lib/vedeu/buffers/view.rb +3 -3
- data/lib/vedeu/cells/empty.rb +3 -0
- data/lib/vedeu/colours/background.rb +3 -8
- data/lib/vedeu/colours/foreground.rb +3 -8
- data/lib/vedeu/configuration/api.rb +1 -1
- data/lib/vedeu/configuration/configuration.rb +3 -2
- data/lib/vedeu/cursors/cursor.rb +1 -1
- data/lib/vedeu/cursors/repository.rb +0 -2
- data/lib/vedeu/dsl/border.rb +1 -1
- data/lib/vedeu/dsl/dsl.rb +1 -1
- data/lib/vedeu/dsl/elements.rb +4 -4
- data/lib/vedeu/dsl/geometry.rb +2 -2
- data/lib/vedeu/dsl/helpers/attributes.rb +1 -1
- data/lib/vedeu/dsl/use.rb +1 -21
- data/lib/vedeu/dsl/view.rb +3 -13
- data/lib/vedeu/dsl/views.rb +15 -18
- data/lib/vedeu/editor/lines.rb +1 -1
- data/lib/vedeu/editor/repository.rb +0 -2
- data/lib/vedeu/esc/background.rb +17 -17
- data/lib/vedeu/esc/colours.rb +2 -2
- data/lib/vedeu/esc/esc.rb +1 -1
- data/lib/vedeu/esc/foreground.rb +17 -17
- data/lib/vedeu/events/event.rb +1 -3
- data/lib/vedeu/events/repository.rb +0 -2
- data/lib/vedeu/geometries/dsl/dsl.rb +18 -183
- data/lib/vedeu/geometries/move.rb +34 -49
- data/lib/vedeu/geometries/position.rb +1 -1
- data/lib/vedeu/geometries/repository.rb +0 -2
- data/lib/vedeu/groups/dsl.rb +1 -1
- data/lib/vedeu/groups/repository.rb +0 -2
- data/lib/vedeu/input/dsl.rb +2 -3
- data/lib/vedeu/input/key.rb +1 -1
- data/lib/vedeu/input/repository.rb +0 -2
- data/lib/vedeu/interfaces/dsl.rb +2 -3
- data/lib/vedeu/interfaces/interface.rb +3 -0
- data/lib/vedeu/interfaces/null.rb +3 -0
- data/lib/vedeu/interfaces/repository.rb +0 -2
- data/lib/vedeu/logging/debug.rb +1 -1
- data/lib/vedeu/logging/log.rb +19 -5
- data/lib/vedeu/logging/timer.rb +2 -2
- data/lib/vedeu/menus/dsl.rb +2 -3
- data/lib/vedeu/menus/repository.rb +0 -2
- data/lib/vedeu/models/page.rb +1 -1
- data/lib/vedeu/models/row.rb +1 -1
- data/lib/vedeu/output/compressor_cache.rb +10 -4
- data/lib/vedeu/output/compressors/simple.rb +7 -3
- data/lib/vedeu/output/write.rb +3 -0
- data/lib/vedeu/presentation/colour.rb +1 -1
- data/lib/vedeu/presentation/position.rb +1 -1
- data/lib/vedeu/presentation/presentation.rb +0 -4
- data/lib/vedeu/presentation/styles.rb +1 -1
- data/lib/vedeu/renderers/all.rb +4 -4
- data/lib/vedeu/repositories/assemblage.rb +2 -2
- data/lib/vedeu/repositories/model.rb +2 -6
- data/lib/vedeu/repositories/registerable.rb +10 -0
- data/lib/vedeu/repositories/store.rb +1 -1
- data/lib/vedeu/runtime/application.rb +3 -3
- data/lib/vedeu/runtime/launcher.rb +1 -1
- data/lib/vedeu/templating/helpers.rb +4 -4
- data/lib/vedeu/terminal/terminal.rb +2 -2
- data/lib/vedeu/version.rb +1 -1
- data/lib/vedeu/views/composition.rb +3 -0
- data/lib/vedeu/views/line.rb +3 -0
- data/lib/vedeu/views/stream.rb +3 -0
- data/lib/vedeu/views/view.rb +3 -0
- data/lib/vedeu.rb +3 -0
- data/test/lib/vedeu/borders/repository_test.rb +0 -2
- data/test/lib/vedeu/buffers/repository_test.rb +0 -2
- data/test/lib/vedeu/cursors/repository_test.rb +0 -2
- data/test/lib/vedeu/dsl/border_test.rb +26 -16
- data/test/lib/vedeu/editor/repository_test.rb +0 -2
- data/test/lib/vedeu/events/repository_test.rb +0 -2
- data/test/lib/vedeu/geometries/repository_test.rb +0 -4
- data/test/lib/vedeu/groups/repository_test.rb +0 -2
- data/test/lib/vedeu/input/repository_test.rb +0 -2
- data/test/lib/vedeu/interfaces/repository_test.rb +0 -2
- data/test/lib/vedeu/menus/repository_test.rb +0 -2
- data/test/lib/vedeu/presentation/colour_test.rb +6 -0
- data/test/lib/vedeu/presentation/position_test.rb +2 -0
- data/test/lib/vedeu/presentation/presentation_test.rb +10 -1
- data/test/lib/vedeu/presentation/styles_test.rb +6 -0
- data/test/lib/vedeu/repositories/registerable_test.rb +11 -1
- data/test/support/examples/material_colours_app.rb +0 -93
- metadata +5 -2
|
@@ -7,6 +7,9 @@ module Vedeu
|
|
|
7
7
|
class ParentPresentationColourTestClass
|
|
8
8
|
|
|
9
9
|
include Vedeu::Presentation
|
|
10
|
+
include Vedeu::Presentation::Colour
|
|
11
|
+
include Vedeu::Presentation::Position
|
|
12
|
+
include Vedeu::Presentation::Styles
|
|
10
13
|
|
|
11
14
|
attr_reader :colour
|
|
12
15
|
|
|
@@ -20,6 +23,9 @@ module Vedeu
|
|
|
20
23
|
class PresentationColourTestClass
|
|
21
24
|
|
|
22
25
|
include Vedeu::Presentation
|
|
26
|
+
include Vedeu::Presentation::Colour
|
|
27
|
+
include Vedeu::Presentation::Position
|
|
28
|
+
include Vedeu::Presentation::Styles
|
|
23
29
|
|
|
24
30
|
attr_reader :parent
|
|
25
31
|
|
|
@@ -5,7 +5,11 @@ require 'test_helper'
|
|
|
5
5
|
module Vedeu
|
|
6
6
|
|
|
7
7
|
class ParentPresentationTestClass
|
|
8
|
+
|
|
8
9
|
include Vedeu::Presentation
|
|
10
|
+
include Vedeu::Presentation::Colour
|
|
11
|
+
include Vedeu::Presentation::Position
|
|
12
|
+
include Vedeu::Presentation::Styles
|
|
9
13
|
|
|
10
14
|
def parent
|
|
11
15
|
nil
|
|
@@ -17,10 +21,15 @@ module Vedeu
|
|
|
17
21
|
style: ['bold']
|
|
18
22
|
}
|
|
19
23
|
end
|
|
20
|
-
|
|
24
|
+
|
|
25
|
+
end # ParentPresentationTestClass
|
|
21
26
|
|
|
22
27
|
class PresentationTestClass
|
|
28
|
+
|
|
23
29
|
include Vedeu::Presentation
|
|
30
|
+
include Vedeu::Presentation::Colour
|
|
31
|
+
include Vedeu::Presentation::Position
|
|
32
|
+
include Vedeu::Presentation::Styles
|
|
24
33
|
|
|
25
34
|
attr_reader :attributes
|
|
26
35
|
|
|
@@ -7,6 +7,9 @@ module Vedeu
|
|
|
7
7
|
class ParentPresentationStyleTestClass
|
|
8
8
|
|
|
9
9
|
include Vedeu::Presentation
|
|
10
|
+
include Vedeu::Presentation::Colour
|
|
11
|
+
include Vedeu::Presentation::Position
|
|
12
|
+
include Vedeu::Presentation::Styles
|
|
10
13
|
|
|
11
14
|
attr_reader :style
|
|
12
15
|
|
|
@@ -20,6 +23,9 @@ module Vedeu
|
|
|
20
23
|
class PresentationStyleTestClass
|
|
21
24
|
|
|
22
25
|
include Vedeu::Presentation
|
|
26
|
+
include Vedeu::Presentation::Colour
|
|
27
|
+
include Vedeu::Presentation::Position
|
|
28
|
+
include Vedeu::Presentation::Styles
|
|
23
29
|
|
|
24
30
|
attr_reader :parent
|
|
25
31
|
|
|
@@ -23,8 +23,18 @@ module Vedeu
|
|
|
23
23
|
let(:described) { Vedeu::Repositories::Registerable }
|
|
24
24
|
let(:included_described) { Vedeu::Repositories::RegisterableTestClass }
|
|
25
25
|
|
|
26
|
-
it { included_described.must_respond_to(:
|
|
26
|
+
it { included_described.must_respond_to(:borders) }
|
|
27
|
+
it { included_described.must_respond_to(:buffers) }
|
|
28
|
+
it { included_described.must_respond_to(:cursors) }
|
|
29
|
+
it { included_described.must_respond_to(:documents) }
|
|
30
|
+
it { included_described.must_respond_to(:events) }
|
|
31
|
+
it { included_described.must_respond_to(:geometries) }
|
|
32
|
+
it { included_described.must_respond_to(:groups) }
|
|
33
|
+
it { included_described.must_respond_to(:interfaces) }
|
|
34
|
+
it { included_described.must_respond_to(:keymaps) }
|
|
35
|
+
it { included_described.must_respond_to(:menus) }
|
|
27
36
|
it { included_described.must_respond_to(:register) }
|
|
37
|
+
it { included_described.must_respond_to(:repository) }
|
|
28
38
|
|
|
29
39
|
describe '.included' do
|
|
30
40
|
subject { described.included(included_described) }
|
|
@@ -95,71 +95,6 @@ class VedeuMaterialColoursApp
|
|
|
95
95
|
colour foreground: '#ffffff', background: '#e91e63'
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
-
# Borders can be defined as part of the interface definition.
|
|
99
|
-
Vedeu.interface 'only_top' do
|
|
100
|
-
colour foreground: '#ffffff', background: '#009688'
|
|
101
|
-
border do
|
|
102
|
-
foreground '#ffffff'
|
|
103
|
-
show_right false
|
|
104
|
-
show_bottom false
|
|
105
|
-
show_left false
|
|
106
|
-
end
|
|
107
|
-
geometry do
|
|
108
|
-
x 50
|
|
109
|
-
y 22
|
|
110
|
-
height 4
|
|
111
|
-
width 10
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
Vedeu.interface 'only_bottom' do
|
|
116
|
-
colour foreground: '#000000', background: '#8bc34a'
|
|
117
|
-
border do
|
|
118
|
-
foreground '#000000'
|
|
119
|
-
show_top false
|
|
120
|
-
show_right false
|
|
121
|
-
show_left false
|
|
122
|
-
end
|
|
123
|
-
geometry do
|
|
124
|
-
x 62
|
|
125
|
-
y 22
|
|
126
|
-
height 4
|
|
127
|
-
width 10
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
Vedeu.interface 'only_left' do
|
|
132
|
-
colour foreground: '#000000', background: '#cddc39'
|
|
133
|
-
border do
|
|
134
|
-
foreground '#ffffff'
|
|
135
|
-
show_top false
|
|
136
|
-
show_bottom false
|
|
137
|
-
show_right false
|
|
138
|
-
end
|
|
139
|
-
geometry do
|
|
140
|
-
x 50
|
|
141
|
-
y 27
|
|
142
|
-
height 4
|
|
143
|
-
width 10
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
Vedeu.interface 'only_right' do
|
|
148
|
-
colour foreground: '#000000', background: '#ffeb3b'
|
|
149
|
-
border do
|
|
150
|
-
foreground '#000000'
|
|
151
|
-
show_top false
|
|
152
|
-
show_bottom false
|
|
153
|
-
show_left false
|
|
154
|
-
end
|
|
155
|
-
geometry do
|
|
156
|
-
x 62
|
|
157
|
-
y 27
|
|
158
|
-
height 4
|
|
159
|
-
width 10
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
|
|
163
98
|
Vedeu.interface 'custom_colour' do
|
|
164
99
|
geometry do
|
|
165
100
|
x 50
|
|
@@ -418,34 +353,6 @@ class VedeuMaterialColoursApp
|
|
|
418
353
|
line '4, 10'
|
|
419
354
|
end
|
|
420
355
|
end
|
|
421
|
-
view('only_top') do
|
|
422
|
-
lines do
|
|
423
|
-
line 'only'
|
|
424
|
-
line 'top'
|
|
425
|
-
line '4, 10'
|
|
426
|
-
end
|
|
427
|
-
end
|
|
428
|
-
view('only_bottom') do
|
|
429
|
-
lines do
|
|
430
|
-
line 'only'
|
|
431
|
-
line 'bottom'
|
|
432
|
-
line '4, 10'
|
|
433
|
-
end
|
|
434
|
-
end
|
|
435
|
-
view('only_left') do
|
|
436
|
-
lines do
|
|
437
|
-
line 'only'
|
|
438
|
-
line 'left'
|
|
439
|
-
line '4, 10'
|
|
440
|
-
end
|
|
441
|
-
end
|
|
442
|
-
view('only_right') do
|
|
443
|
-
lines do
|
|
444
|
-
line 'only'
|
|
445
|
-
line 'right'
|
|
446
|
-
line '4, 10'
|
|
447
|
-
end
|
|
448
|
-
end
|
|
449
356
|
view('custom_colour') do
|
|
450
357
|
border do
|
|
451
358
|
colour foreground: '#ff5500', background: '#0000ff'
|
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.8.
|
|
4
|
+
version: 0.8.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gavin Laking
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-03-
|
|
11
|
+
date: 2016-03-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: guard
|
|
@@ -342,6 +342,7 @@ files:
|
|
|
342
342
|
- docs/dsl/by_method/geometry/xn.md
|
|
343
343
|
- docs/dsl/by_method/geometry/y.md
|
|
344
344
|
- docs/dsl/by_method/geometry/yn.md
|
|
345
|
+
- docs/dsl/by_method/geometry/zindex.md
|
|
345
346
|
- docs/dsl/by_method/goto.md
|
|
346
347
|
- docs/dsl/by_method/group.md
|
|
347
348
|
- docs/dsl/by_method/groups.md
|
|
@@ -383,6 +384,7 @@ files:
|
|
|
383
384
|
- docs/dsl/by_method/show_cursor.md
|
|
384
385
|
- docs/dsl/by_method/show_group.md
|
|
385
386
|
- docs/dsl/by_method/show_interface.md
|
|
387
|
+
- docs/dsl/by_method/template_for.md
|
|
386
388
|
- docs/dsl/by_method/timer.md
|
|
387
389
|
- docs/dsl/by_method/title.md
|
|
388
390
|
- docs/dsl/by_method/toggle_cursor.md
|
|
@@ -395,6 +397,7 @@ files:
|
|
|
395
397
|
- docs/dsl/by_method/trigger.md
|
|
396
398
|
- docs/dsl/by_method/unbind.md
|
|
397
399
|
- docs/dsl/by_method/unbind_alias.md
|
|
400
|
+
- docs/dsl/by_method/use.md
|
|
398
401
|
- docs/dsl/by_method/vertical.md
|
|
399
402
|
- docs/dsl/by_method/view.md
|
|
400
403
|
- docs/dsl/by_method/view/repositories.md
|