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.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/docs/dsl/by_method/geometry/align_centre.md +3 -0
  3. data/docs/dsl/by_method/geometry/columns.md +12 -1
  4. data/docs/dsl/by_method/geometry/height.md +9 -0
  5. data/docs/dsl/by_method/geometry/horizontal_alignment.md +3 -1
  6. data/docs/dsl/by_method/geometry/rows.md +12 -1
  7. data/docs/dsl/by_method/geometry/vertical_alignment.md +3 -1
  8. data/docs/dsl/by_method/geometry/width.md +9 -0
  9. data/docs/dsl/by_method/geometry/x.md +11 -1
  10. data/docs/dsl/by_method/geometry/xn.md +14 -1
  11. data/docs/dsl/by_method/geometry/y.md +11 -1
  12. data/docs/dsl/by_method/geometry/yn.md +12 -1
  13. data/docs/dsl/by_method/geometry/zindex.md +18 -0
  14. data/docs/dsl/by_method/template_for.md +10 -0
  15. data/docs/dsl/by_method/use.md +21 -0
  16. data/integrations/342_streams.rb +3 -1
  17. data/integrations/dsl_app_001.rb +3 -1
  18. data/integrations/dsl_app_002.rb +3 -1
  19. data/integrations/dsl_app_003.rb +3 -1
  20. data/integrations/dsl_app_004.rb +3 -1
  21. data/integrations/dsl_app_005.rb +3 -1
  22. data/integrations/dsl_app_006.rb +3 -1
  23. data/integrations/dsl_app_007.rb +3 -1
  24. data/integrations/dsl_app_008.rb +3 -1
  25. data/integrations/dsl_app_009.rb +3 -1
  26. data/integrations/dsl_app_010.rb +3 -1
  27. data/integrations/dsl_app_011.rb +3 -1
  28. data/integrations/dsl_app_012.rb +3 -1
  29. data/integrations/dsl_app_013.rb +3 -1
  30. data/integrations/dsl_app_014.rb +3 -1
  31. data/integrations/dsl_app_015.rb +3 -1
  32. data/integrations/dsl_app_016.rb +3 -1
  33. data/integrations/dsl_app_017.rb +3 -1
  34. data/integrations/dsl_app_018.rb +3 -1
  35. data/integrations/dsl_app_019.rb +3 -1
  36. data/integrations/dsl_app_020.rb +3 -1
  37. data/integrations/dsl_app_021.rb +3 -1
  38. data/integrations/dsl_app_022.rb +3 -1
  39. data/integrations/dsl_app_border_001.rb +3 -1
  40. data/integrations/dsl_app_border_002.rb +3 -1
  41. data/integrations/dsl_app_border_003.rb +3 -1
  42. data/integrations/dsl_app_border_004.rb +3 -1
  43. data/integrations/dsl_app_border_005.rb +3 -1
  44. data/integrations/dsl_app_border_006.rb +3 -1
  45. data/integrations/dsl_app_border_007.rb +3 -1
  46. data/integrations/dsl_app_border_008.rb +3 -1
  47. data/integrations/dsl_app_border_009.rb +3 -1
  48. data/integrations/dsl_app_border_010.rb +3 -1
  49. data/integrations/dsl_app_border_011.rb +3 -1
  50. data/integrations/test_runner.rb +20 -10
  51. data/lib/vedeu/borders/border.rb +3 -0
  52. data/lib/vedeu/borders/dsl.rb +1 -1
  53. data/lib/vedeu/borders/refresh.rb +1 -1
  54. data/lib/vedeu/borders/repository.rb +0 -2
  55. data/lib/vedeu/buffers/buffer.rb +1 -0
  56. data/lib/vedeu/buffers/repository.rb +0 -2
  57. data/lib/vedeu/buffers/view.rb +3 -3
  58. data/lib/vedeu/cells/empty.rb +3 -0
  59. data/lib/vedeu/colours/background.rb +3 -8
  60. data/lib/vedeu/colours/foreground.rb +3 -8
  61. data/lib/vedeu/configuration/api.rb +1 -1
  62. data/lib/vedeu/configuration/configuration.rb +3 -2
  63. data/lib/vedeu/cursors/cursor.rb +1 -1
  64. data/lib/vedeu/cursors/repository.rb +0 -2
  65. data/lib/vedeu/dsl/border.rb +1 -1
  66. data/lib/vedeu/dsl/dsl.rb +1 -1
  67. data/lib/vedeu/dsl/elements.rb +4 -4
  68. data/lib/vedeu/dsl/geometry.rb +2 -2
  69. data/lib/vedeu/dsl/helpers/attributes.rb +1 -1
  70. data/lib/vedeu/dsl/use.rb +1 -21
  71. data/lib/vedeu/dsl/view.rb +3 -13
  72. data/lib/vedeu/dsl/views.rb +15 -18
  73. data/lib/vedeu/editor/lines.rb +1 -1
  74. data/lib/vedeu/editor/repository.rb +0 -2
  75. data/lib/vedeu/esc/background.rb +17 -17
  76. data/lib/vedeu/esc/colours.rb +2 -2
  77. data/lib/vedeu/esc/esc.rb +1 -1
  78. data/lib/vedeu/esc/foreground.rb +17 -17
  79. data/lib/vedeu/events/event.rb +1 -3
  80. data/lib/vedeu/events/repository.rb +0 -2
  81. data/lib/vedeu/geometries/dsl/dsl.rb +18 -183
  82. data/lib/vedeu/geometries/move.rb +34 -49
  83. data/lib/vedeu/geometries/position.rb +1 -1
  84. data/lib/vedeu/geometries/repository.rb +0 -2
  85. data/lib/vedeu/groups/dsl.rb +1 -1
  86. data/lib/vedeu/groups/repository.rb +0 -2
  87. data/lib/vedeu/input/dsl.rb +2 -3
  88. data/lib/vedeu/input/key.rb +1 -1
  89. data/lib/vedeu/input/repository.rb +0 -2
  90. data/lib/vedeu/interfaces/dsl.rb +2 -3
  91. data/lib/vedeu/interfaces/interface.rb +3 -0
  92. data/lib/vedeu/interfaces/null.rb +3 -0
  93. data/lib/vedeu/interfaces/repository.rb +0 -2
  94. data/lib/vedeu/logging/debug.rb +1 -1
  95. data/lib/vedeu/logging/log.rb +19 -5
  96. data/lib/vedeu/logging/timer.rb +2 -2
  97. data/lib/vedeu/menus/dsl.rb +2 -3
  98. data/lib/vedeu/menus/repository.rb +0 -2
  99. data/lib/vedeu/models/page.rb +1 -1
  100. data/lib/vedeu/models/row.rb +1 -1
  101. data/lib/vedeu/output/compressor_cache.rb +10 -4
  102. data/lib/vedeu/output/compressors/simple.rb +7 -3
  103. data/lib/vedeu/output/write.rb +3 -0
  104. data/lib/vedeu/presentation/colour.rb +1 -1
  105. data/lib/vedeu/presentation/position.rb +1 -1
  106. data/lib/vedeu/presentation/presentation.rb +0 -4
  107. data/lib/vedeu/presentation/styles.rb +1 -1
  108. data/lib/vedeu/renderers/all.rb +4 -4
  109. data/lib/vedeu/repositories/assemblage.rb +2 -2
  110. data/lib/vedeu/repositories/model.rb +2 -6
  111. data/lib/vedeu/repositories/registerable.rb +10 -0
  112. data/lib/vedeu/repositories/store.rb +1 -1
  113. data/lib/vedeu/runtime/application.rb +3 -3
  114. data/lib/vedeu/runtime/launcher.rb +1 -1
  115. data/lib/vedeu/templating/helpers.rb +4 -4
  116. data/lib/vedeu/terminal/terminal.rb +2 -2
  117. data/lib/vedeu/version.rb +1 -1
  118. data/lib/vedeu/views/composition.rb +3 -0
  119. data/lib/vedeu/views/line.rb +3 -0
  120. data/lib/vedeu/views/stream.rb +3 -0
  121. data/lib/vedeu/views/view.rb +3 -0
  122. data/lib/vedeu.rb +3 -0
  123. data/test/lib/vedeu/borders/repository_test.rb +0 -2
  124. data/test/lib/vedeu/buffers/repository_test.rb +0 -2
  125. data/test/lib/vedeu/cursors/repository_test.rb +0 -2
  126. data/test/lib/vedeu/dsl/border_test.rb +26 -16
  127. data/test/lib/vedeu/editor/repository_test.rb +0 -2
  128. data/test/lib/vedeu/events/repository_test.rb +0 -2
  129. data/test/lib/vedeu/geometries/repository_test.rb +0 -4
  130. data/test/lib/vedeu/groups/repository_test.rb +0 -2
  131. data/test/lib/vedeu/input/repository_test.rb +0 -2
  132. data/test/lib/vedeu/interfaces/repository_test.rb +0 -2
  133. data/test/lib/vedeu/menus/repository_test.rb +0 -2
  134. data/test/lib/vedeu/presentation/colour_test.rb +6 -0
  135. data/test/lib/vedeu/presentation/position_test.rb +2 -0
  136. data/test/lib/vedeu/presentation/presentation_test.rb +10 -1
  137. data/test/lib/vedeu/presentation/styles_test.rb +6 -0
  138. data/test/lib/vedeu/repositories/registerable_test.rb +11 -1
  139. data/test/support/examples/material_colours_app.rb +0 -93
  140. metadata +5 -2
@@ -10,8 +10,6 @@ module Vedeu
10
10
 
11
11
  let(:described) { Vedeu::Interfaces::Repository }
12
12
 
13
- it { described.must_respond_to(:interfaces) }
14
-
15
13
  describe '#zindexed' do
16
14
  before do
17
15
  Vedeu.interfaces.reset
@@ -23,8 +23,6 @@ module Vedeu
23
23
 
24
24
  let(:described) { Vedeu::Menus::Repository }
25
25
 
26
- it { described.must_respond_to(:menus) }
27
-
28
26
  end # Repository
29
27
 
30
28
  end # Menus
@@ -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
 
@@ -8,6 +8,8 @@ module Vedeu
8
8
 
9
9
  describe Position do
10
10
 
11
+ let(:described) { Vedeu::Presentation::Position }
12
+
11
13
  # describe '#position' do
12
14
  # subject { instance.position }
13
15
 
@@ -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
- end
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(:repository) }
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.20
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-09 00:00:00.000000000 Z
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