vedeu 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/TODO.md +4 -0
  3. data/docs/dsl.md +1 -11
  4. data/docs/dsl/by_method/geometry/align.md +1 -0
  5. data/docs/dsl/by_method/geometry/align_bottom.md +40 -0
  6. data/docs/dsl/by_method/geometry/align_centre.md +40 -0
  7. data/docs/dsl/by_method/geometry/align_left.md +40 -0
  8. data/docs/dsl/by_method/geometry/align_middle.md +40 -0
  9. data/docs/dsl/by_method/geometry/align_right.md +40 -0
  10. data/docs/dsl/by_method/geometry/align_top.md +40 -0
  11. data/docs/dsl/by_method/geometry/columns.md +1 -0
  12. data/docs/dsl/by_method/geometry/height.md +0 -0
  13. data/docs/dsl/by_method/geometry/horizontal_alignment.md +1 -0
  14. data/docs/dsl/by_method/geometry/rows.md +1 -0
  15. data/docs/dsl/by_method/geometry/vertical_alignment.md +1 -0
  16. data/docs/dsl/by_method/geometry/width.md +0 -0
  17. data/docs/dsl/by_method/geometry/x.md +1 -0
  18. data/docs/dsl/by_method/geometry/xn.md +1 -0
  19. data/docs/dsl/by_method/geometry/y.md +1 -0
  20. data/docs/dsl/by_method/geometry/yn.md +1 -0
  21. data/docs/dsl/by_method/render.md +5 -1
  22. data/docs/dsl/by_method/renders.md +31 -1
  23. data/docs/dsl/by_method/view.md +26 -0
  24. data/docs/dsl/by_method/view/stream.md +18 -0
  25. data/docs/dsl/by_method/views.md +32 -1
  26. data/docs/events/by_name/set_border_caption.md +2 -4
  27. data/docs/events/by_name/set_border_title.md +2 -4
  28. data/examples/views/empty_template.rb +0 -4
  29. data/examples/views/full_screen.rb +30 -5
  30. data/examples/views/misc_view.rb +464 -0
  31. data/examples/views/wordwrap.rb +72 -0
  32. data/examples/views/wordwrap.txt +8 -0
  33. data/integrations/dsl_app_021.rb +127 -0
  34. data/integrations/dsl_app_022.rb +133 -0
  35. data/integrations/expected/342_streams.out +1 -1
  36. data/integrations/expected/dsl_app_001.out +1 -1
  37. data/integrations/expected/dsl_app_002.out +1 -1
  38. data/integrations/expected/dsl_app_003.out +1 -1
  39. data/integrations/expected/dsl_app_004.out +1 -1
  40. data/integrations/expected/dsl_app_005.out +1 -1
  41. data/integrations/expected/dsl_app_006.out +1 -1
  42. data/integrations/expected/dsl_app_007.out +1 -1
  43. data/integrations/expected/dsl_app_008.out +1 -1
  44. data/integrations/expected/dsl_app_009.out +1 -1
  45. data/integrations/expected/dsl_app_010.out +1 -1
  46. data/integrations/expected/dsl_app_011.out +1 -1
  47. data/integrations/expected/dsl_app_012.out +1 -1
  48. data/integrations/expected/dsl_app_013.out +1 -1
  49. data/integrations/expected/dsl_app_014.out +1 -1
  50. data/integrations/expected/dsl_app_015.out +1 -1
  51. data/integrations/expected/dsl_app_016.out +1 -1
  52. data/integrations/expected/dsl_app_021.out +1 -0
  53. data/integrations/expected/dsl_app_022.out +1 -0
  54. data/integrations/support/test_interface_021.rb +7 -0
  55. data/integrations/support/test_interface_022.rb +15 -0
  56. data/lib/vedeu/all.rb +4 -2
  57. data/lib/vedeu/borders/border.rb +22 -6
  58. data/lib/vedeu/borders/repository.rb +4 -8
  59. data/lib/vedeu/buffers/buffer.rb +9 -6
  60. data/lib/vedeu/buffers/empty.rb +26 -23
  61. data/lib/vedeu/buffers/view.rb +44 -41
  62. data/lib/vedeu/cells/cursor.rb +0 -2
  63. data/lib/vedeu/cells/empty.rb +0 -1
  64. data/lib/vedeu/cells/escape.rb +0 -2
  65. data/lib/vedeu/coercers/alignment.rb +58 -8
  66. data/lib/vedeu/coercers/horizontal_alignment.rb +13 -9
  67. data/lib/vedeu/coercers/vertical_alignment.rb +13 -8
  68. data/lib/vedeu/common.rb +1 -1
  69. data/lib/vedeu/configuration/configuration.rb +41 -3
  70. data/lib/vedeu/cursors/coordinate.rb +1 -3
  71. data/lib/vedeu/cursors/cursor.rb +2 -6
  72. data/lib/vedeu/dsl/all.rb +1 -2
  73. data/lib/vedeu/dsl/border.rb +6 -6
  74. data/lib/vedeu/dsl/elements.rb +2 -2
  75. data/lib/vedeu/dsl/geometry.rb +7 -7
  76. data/lib/vedeu/dsl/{string → helpers}/align.rb +0 -0
  77. data/lib/vedeu/dsl/helpers/all.rb +17 -0
  78. data/lib/vedeu/dsl/{attributes.rb → helpers/attributes.rb} +0 -0
  79. data/lib/vedeu/dsl/{string → helpers}/text.rb +0 -0
  80. data/lib/vedeu/dsl/{string → helpers}/truncate.rb +0 -0
  81. data/lib/vedeu/dsl/{string → helpers}/wordwrap.rb +0 -0
  82. data/lib/vedeu/dsl/view.rb +11 -19
  83. data/lib/vedeu/dsl/views.rb +16 -106
  84. data/lib/vedeu/geometries/all.rb +0 -1
  85. data/lib/vedeu/geometries/area/area.rb +6 -12
  86. data/lib/vedeu/geometries/area/dimension.rb +21 -44
  87. data/lib/vedeu/geometries/dsl/all.rb +0 -1
  88. data/lib/vedeu/geometries/dsl/dsl.rb +22 -31
  89. data/lib/vedeu/geometries/geometry.rb +6 -0
  90. data/lib/vedeu/geometries/position.rb +6 -3
  91. data/lib/vedeu/geometries/repository.rb +1 -1
  92. data/lib/vedeu/input/mouse.rb +1 -0
  93. data/lib/vedeu/logging/log.rb +3 -6
  94. data/lib/vedeu/menus/dsl.rb +4 -5
  95. data/lib/vedeu/output/compressor.rb +11 -1
  96. data/lib/vedeu/output/viewport.rb +59 -59
  97. data/lib/vedeu/presentation/all.rb +1 -2
  98. data/lib/vedeu/presentation/colour.rb +75 -3
  99. data/lib/vedeu/{geometries/positionable.rb → presentation/position.rb} +4 -4
  100. data/lib/vedeu/presentation/presentation.rb +1 -3
  101. data/lib/vedeu/presentation/styles.rb +16 -1
  102. data/lib/vedeu/repositories/all.rb +0 -1
  103. data/lib/vedeu/sentence.rb +91 -0
  104. data/lib/vedeu/support/point.rb +72 -0
  105. data/lib/vedeu/terminal/terminal.rb +11 -53
  106. data/lib/vedeu/version.rb +1 -1
  107. data/lib/vedeu/views/composition.rb +11 -1
  108. data/lib/vedeu/views/default_attributes.rb +2 -0
  109. data/lib/vedeu/views/line.rb +16 -1
  110. data/lib/vedeu/views/stream.rb +16 -1
  111. data/lib/vedeu/views/view.rb +25 -17
  112. data/test/lib/vedeu/borders/border_test.rb +20 -2
  113. data/test/lib/vedeu/buffers/buffer_test.rb +15 -2
  114. data/test/lib/vedeu/buffers/empty_test.rb +51 -18
  115. data/test/lib/vedeu/buffers/view_test.rb +2 -2
  116. data/test/lib/vedeu/coercers/alignment_test.rb +32 -0
  117. data/test/lib/vedeu/coercers/horizontal_alignment_test.rb +16 -0
  118. data/test/lib/vedeu/coercers/vertical_alignment_test.rb +16 -0
  119. data/test/lib/vedeu/cursors/cursor_test.rb +4 -4
  120. data/test/lib/vedeu/cursors/dsl_test.rb +35 -21
  121. data/test/lib/vedeu/dsl/elements_test.rb +94 -2
  122. data/test/lib/vedeu/dsl/{string → helpers}/align_test.rb +0 -0
  123. data/test/lib/vedeu/dsl/{attributes_test.rb → helpers/attributes_test.rb} +0 -0
  124. data/test/lib/vedeu/dsl/{string → helpers}/text_test.rb +0 -0
  125. data/test/lib/vedeu/dsl/{string → helpers}/truncate_test.rb +0 -0
  126. data/test/lib/vedeu/dsl/{string → helpers}/wordwrap_test.rb +0 -0
  127. data/test/lib/vedeu/dsl/view_test.rb +22 -4
  128. data/test/lib/vedeu/dsl/views_test.rb +8 -5
  129. data/test/lib/vedeu/geometries/dsl/dsl_test.rb +2 -159
  130. data/test/lib/vedeu/geometries/position_test.rb +118 -60
  131. data/test/lib/vedeu/input/mouse_test.rb +1 -6
  132. data/test/lib/vedeu/logging/log_test.rb +14 -3
  133. data/test/lib/vedeu/presentation/colour_test.rb +77 -0
  134. data/test/lib/vedeu/{geometries/positionable_test.rb → presentation/position_test.rb} +4 -4
  135. data/test/lib/vedeu/sentence_test.rb +49 -0
  136. data/test/lib/vedeu/support/point_test.rb +139 -0
  137. data/test/lib/vedeu/terminal/terminal_test.rb +3 -44
  138. data/test/lib/vedeu/views/composition_test.rb +24 -4
  139. data/test/lib/vedeu/views/default_attributes_test.rb +10 -2
  140. data/test/lib/vedeu/views/view_test.rb +8 -15
  141. data/test/support/examples/material_colours_app.rb +0 -6
  142. data/vedeu.gemspec +1 -1
  143. metadata +58 -38
  144. data/examples/views/lines_line_stream.rb +0 -95
  145. data/examples/views/lines_line_streams.rb +0 -75
  146. data/examples/views/lines_line_streams_stream.rb +0 -78
  147. data/examples/views/lines_line_streams_stream_stream.rb +0 -50
  148. data/examples/views/lines_streams.rb +0 -93
  149. data/lib/vedeu/dsl/string/all.rb +0 -16
  150. data/lib/vedeu/geometries/dsl/validator.rb +0 -62
  151. data/lib/vedeu/presentation/background.rb +0 -54
  152. data/lib/vedeu/presentation/foreground.rb +0 -54
  153. data/lib/vedeu/repositories/parent.rb +0 -34
  154. data/test/lib/vedeu/geometries/dsl/validator_test.rb +0 -85
  155. data/test/lib/vedeu/presentation/background_test.rb +0 -74
  156. data/test/lib/vedeu/presentation/foreground_test.rb +0 -75
@@ -15,9 +15,9 @@ module Vedeu
15
15
  end
16
16
  alias_method :client, :nil_for_testing_purposes
17
17
  alias_method :colour, :nil_for_testing_purposes
18
- alias_method :name, :nil_for_testing_purposes
18
+ alias_method :name, :nil_for_testing_purposes
19
19
  alias_method :parent, :nil_for_testing_purposes
20
- alias_method :style, :nil_for_testing_purposes
20
+ alias_method :style, :nil_for_testing_purposes
21
21
 
22
22
  end # DefaultAttributesTest
23
23
 
@@ -62,6 +62,10 @@ module Vedeu
62
62
  it { including_instance.must_respond_to(:truncate) }
63
63
  end
64
64
 
65
+ describe '#truncate?' do
66
+ it { including_instance.must_respond_to(:truncate?) }
67
+ end
68
+
65
69
  describe '#width' do
66
70
  it { including_instance.must_respond_to(:width) }
67
71
  end
@@ -70,6 +74,10 @@ module Vedeu
70
74
  it { including_instance.must_respond_to(:wordwrap) }
71
75
  end
72
76
 
77
+ describe '#wordwrap?' do
78
+ it { including_instance.must_respond_to(:wordwrap?) }
79
+ end
80
+
73
81
  describe '#attributes' do
74
82
  let(:expected) {
75
83
  {
@@ -98,28 +98,21 @@ module Vedeu
98
98
  it { subject.must_be_instance_of(Hash) }
99
99
  end
100
100
 
101
- describe '#store_immediate' do
102
- before { Vedeu.stubs(:trigger) }
101
+ describe '#update_buffer' do
102
+ let(:refresh) {}
103
103
 
104
- subject { instance.store_immediate }
104
+ before { Vedeu.stubs(:trigger) }
105
105
 
106
- it { subject.must_be_instance_of(described) }
106
+ subject { instance.update_buffer(refresh) }
107
107
 
108
- it do
109
- Vedeu.expects(:trigger).with(:_refresh_view_, _name)
110
- subject
108
+ context 'when the name attribute is defined' do
109
+ it { subject.must_be_instance_of(described) }
111
110
  end
112
- end
113
-
114
- describe '#store_deferred' do
115
- subject { instance.store_deferred }
116
-
117
- it { subject.must_be_instance_of(described) }
118
111
 
119
- context 'when the name is not defined' do
112
+ context 'when the name attribute is not defined' do
120
113
  let(:_name) {}
121
114
 
122
- it { proc { subject }.must_raise(Vedeu::Error::InvalidSyntax) }
115
+ it { proc { subject }.must_raise(Vedeu::Error::MissingRequired) }
123
116
  end
124
117
  end
125
118
 
@@ -49,12 +49,6 @@ class VedeuMaterialColoursApp
49
49
  show_top false
50
50
  end
51
51
 
52
- # 0 1 2
53
- # ----------------------
54
- # 3456789012345678901234
55
- # ----------------------
56
- # 0 1 2
57
-
58
52
  Vedeu.interface 'main_interface' do
59
53
  border 'main_interface' do
60
54
  colour foreground: '#ffffff', background: :default
data/vedeu.gemspec CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency 'mocha', '1.1.0'
29
29
  spec.add_development_dependency 'rubocop', '0.35.1'
30
30
  spec.add_development_dependency 'simplecov', '0.11.1'
31
- spec.add_development_dependency 'simplecov-console', '0.2.0'
31
+ spec.add_development_dependency 'simplecov-console', '0.3.0'
32
32
  spec.add_development_dependency 'yard', '0.8.7.6'
33
33
 
34
34
  spec.add_dependency 'bundler', '~> 1.10'
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
4
+ version: 0.8.5
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-01-07 00:00:00.000000000 Z
11
+ date: 2016-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.2.0
131
+ version: 0.3.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.2.0
138
+ version: 0.3.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: yard
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -229,6 +229,7 @@ files:
229
229
  - LICENSE.txt
230
230
  - README.md
231
231
  - Rakefile
232
+ - TODO.md
232
233
  - benchmarks/array_vs_range.rb
233
234
  - bin/vedeu
234
235
  - bin/vedeu_drb_client
@@ -291,6 +292,23 @@ files:
291
292
  - docs/dsl/by_method/foreground_colours.md
292
293
  - docs/dsl/by_method/geometries.md
293
294
  - docs/dsl/by_method/geometry.md
295
+ - docs/dsl/by_method/geometry/align.md
296
+ - docs/dsl/by_method/geometry/align_bottom.md
297
+ - docs/dsl/by_method/geometry/align_centre.md
298
+ - docs/dsl/by_method/geometry/align_left.md
299
+ - docs/dsl/by_method/geometry/align_middle.md
300
+ - docs/dsl/by_method/geometry/align_right.md
301
+ - docs/dsl/by_method/geometry/align_top.md
302
+ - docs/dsl/by_method/geometry/columns.md
303
+ - docs/dsl/by_method/geometry/height.md
304
+ - docs/dsl/by_method/geometry/horizontal_alignment.md
305
+ - docs/dsl/by_method/geometry/rows.md
306
+ - docs/dsl/by_method/geometry/vertical_alignment.md
307
+ - docs/dsl/by_method/geometry/width.md
308
+ - docs/dsl/by_method/geometry/x.md
309
+ - docs/dsl/by_method/geometry/xn.md
310
+ - docs/dsl/by_method/geometry/y.md
311
+ - docs/dsl/by_method/geometry/yn.md
294
312
  - docs/dsl/by_method/goto.md
295
313
  - docs/dsl/by_method/group.md
296
314
  - docs/dsl/by_method/groups.md
@@ -345,6 +363,8 @@ files:
345
363
  - docs/dsl/by_method/unbind.md
346
364
  - docs/dsl/by_method/unbind_alias.md
347
365
  - docs/dsl/by_method/vertical.md
366
+ - docs/dsl/by_method/view.md
367
+ - docs/dsl/by_method/view/stream.md
348
368
  - docs/dsl/by_method/views.md
349
369
  - docs/dsl/by_method/width.md
350
370
  - docs/dsl/by_method/write.md
@@ -475,11 +495,9 @@ files:
475
495
  - examples/views/expected/vedeu_full_screen.out
476
496
  - examples/views/expected/vedeu_full_screen.txt
477
497
  - examples/views/full_screen.rb
478
- - examples/views/lines_line_stream.rb
479
- - examples/views/lines_line_streams.rb
480
- - examples/views/lines_line_streams_stream.rb
481
- - examples/views/lines_line_streams_stream_stream.rb
482
- - examples/views/lines_streams.rb
498
+ - examples/views/misc_view.rb
499
+ - examples/views/wordwrap.rb
500
+ - examples/views/wordwrap.txt
483
501
  - integrations/342_streams.rb
484
502
  - integrations/dsl_app_001.rb
485
503
  - integrations/dsl_app_002.rb
@@ -501,6 +519,8 @@ files:
501
519
  - integrations/dsl_app_018.rb
502
520
  - integrations/dsl_app_019.rb
503
521
  - integrations/dsl_app_020.rb
522
+ - integrations/dsl_app_021.rb
523
+ - integrations/dsl_app_022.rb
504
524
  - integrations/expected/342_streams.out
505
525
  - integrations/expected/dsl_app_001.out
506
526
  - integrations/expected/dsl_app_002.out
@@ -518,7 +538,11 @@ files:
518
538
  - integrations/expected/dsl_app_014.out
519
539
  - integrations/expected/dsl_app_015.out
520
540
  - integrations/expected/dsl_app_016.out
541
+ - integrations/expected/dsl_app_021.out
542
+ - integrations/expected/dsl_app_022.out
521
543
  - integrations/support/test_interface.rb
544
+ - integrations/support/test_interface_021.rb
545
+ - integrations/support/test_interface_022.rb
522
546
  - integrations/test_runner.sh
523
547
  - lib/vedeu.rb
524
548
  - lib/vedeu/all.rb
@@ -611,18 +635,18 @@ files:
611
635
  - lib/vedeu/distributed/test_application.rb
612
636
  - lib/vedeu/distributed/uri.rb
613
637
  - lib/vedeu/dsl/all.rb
614
- - lib/vedeu/dsl/attributes.rb
615
638
  - lib/vedeu/dsl/border.rb
616
639
  - lib/vedeu/dsl/cursors.rb
617
640
  - lib/vedeu/dsl/dsl.rb
618
641
  - lib/vedeu/dsl/elements.rb
619
642
  - lib/vedeu/dsl/geometry.rb
643
+ - lib/vedeu/dsl/helpers/align.rb
644
+ - lib/vedeu/dsl/helpers/all.rb
645
+ - lib/vedeu/dsl/helpers/attributes.rb
646
+ - lib/vedeu/dsl/helpers/text.rb
647
+ - lib/vedeu/dsl/helpers/truncate.rb
648
+ - lib/vedeu/dsl/helpers/wordwrap.rb
620
649
  - lib/vedeu/dsl/presentation.rb
621
- - lib/vedeu/dsl/string/align.rb
622
- - lib/vedeu/dsl/string/all.rb
623
- - lib/vedeu/dsl/string/text.rb
624
- - lib/vedeu/dsl/string/truncate.rb
625
- - lib/vedeu/dsl/string/wordwrap.rb
626
650
  - lib/vedeu/dsl/use.rb
627
651
  - lib/vedeu/dsl/view.rb
628
652
  - lib/vedeu/dsl/views.rb
@@ -662,11 +686,9 @@ files:
662
686
  - lib/vedeu/geometries/dsl/all.rb
663
687
  - lib/vedeu/geometries/dsl/dsl.rb
664
688
  - lib/vedeu/geometries/dsl/grid.rb
665
- - lib/vedeu/geometries/dsl/validator.rb
666
689
  - lib/vedeu/geometries/geometry.rb
667
690
  - lib/vedeu/geometries/move.rb
668
691
  - lib/vedeu/geometries/position.rb
669
- - lib/vedeu/geometries/positionable.rb
670
692
  - lib/vedeu/geometries/repository.rb
671
693
  - lib/vedeu/groups/all.rb
672
694
  - lib/vedeu/groups/clear.rb
@@ -722,9 +744,8 @@ files:
722
744
  - lib/vedeu/plugins/plugin.rb
723
745
  - lib/vedeu/plugins/plugins.rb
724
746
  - lib/vedeu/presentation/all.rb
725
- - lib/vedeu/presentation/background.rb
726
747
  - lib/vedeu/presentation/colour.rb
727
- - lib/vedeu/presentation/foreground.rb
748
+ - lib/vedeu/presentation/position.rb
728
749
  - lib/vedeu/presentation/presentation.rb
729
750
  - lib/vedeu/presentation/style.rb
730
751
  - lib/vedeu/presentation/styles.rb
@@ -742,7 +763,6 @@ files:
742
763
  - lib/vedeu/repositories/collection.rb
743
764
  - lib/vedeu/repositories/defaults.rb
744
765
  - lib/vedeu/repositories/model.rb
745
- - lib/vedeu/repositories/parent.rb
746
766
  - lib/vedeu/repositories/registerable.rb
747
767
  - lib/vedeu/repositories/repositories.rb
748
768
  - lib/vedeu/repositories/repository.rb
@@ -755,6 +775,8 @@ files:
755
775
  - lib/vedeu/runtime/main_loop.rb
756
776
  - lib/vedeu/runtime/router.rb
757
777
  - lib/vedeu/runtime/traps.rb
778
+ - lib/vedeu/sentence.rb
779
+ - lib/vedeu/support/point.rb
758
780
  - lib/vedeu/templating/all.rb
759
781
  - lib/vedeu/templating/decoder.rb
760
782
  - lib/vedeu/templating/encoder.rb
@@ -842,17 +864,17 @@ files:
842
864
  - test/lib/vedeu/distributed/subprocess_test.rb
843
865
  - test/lib/vedeu/distributed/test_application_test.rb
844
866
  - test/lib/vedeu/distributed/uri_test.rb
845
- - test/lib/vedeu/dsl/attributes_test.rb
846
867
  - test/lib/vedeu/dsl/border_test.rb
847
868
  - test/lib/vedeu/dsl/cursors_test.rb
848
869
  - test/lib/vedeu/dsl/dsl_test.rb
849
870
  - test/lib/vedeu/dsl/elements_test.rb
850
871
  - test/lib/vedeu/dsl/geometry_test.rb
872
+ - test/lib/vedeu/dsl/helpers/align_test.rb
873
+ - test/lib/vedeu/dsl/helpers/attributes_test.rb
874
+ - test/lib/vedeu/dsl/helpers/text_test.rb
875
+ - test/lib/vedeu/dsl/helpers/truncate_test.rb
876
+ - test/lib/vedeu/dsl/helpers/wordwrap_test.rb
851
877
  - test/lib/vedeu/dsl/presentation_test.rb
852
- - test/lib/vedeu/dsl/string/align_test.rb
853
- - test/lib/vedeu/dsl/string/text_test.rb
854
- - test/lib/vedeu/dsl/string/truncate_test.rb
855
- - test/lib/vedeu/dsl/string/wordwrap_test.rb
856
878
  - test/lib/vedeu/dsl/use_test.rb
857
879
  - test/lib/vedeu/dsl/view_test.rb
858
880
  - test/lib/vedeu/dsl/views_test.rb
@@ -886,11 +908,9 @@ files:
886
908
  - test/lib/vedeu/geometries/area/y_dimension_test.rb
887
909
  - test/lib/vedeu/geometries/dsl/dsl_test.rb
888
910
  - test/lib/vedeu/geometries/dsl/grid_test.rb
889
- - test/lib/vedeu/geometries/dsl/validator_test.rb
890
911
  - test/lib/vedeu/geometries/geometry_test.rb
891
912
  - test/lib/vedeu/geometries/move_test.rb
892
913
  - test/lib/vedeu/geometries/position_test.rb
893
- - test/lib/vedeu/geometries/positionable_test.rb
894
914
  - test/lib/vedeu/geometries/repository_test.rb
895
915
  - test/lib/vedeu/groups/clear_test.rb
896
916
  - test/lib/vedeu/groups/dsl_test.rb
@@ -936,9 +956,8 @@ files:
936
956
  - test/lib/vedeu/output/write_test.rb
937
957
  - test/lib/vedeu/plugins/plugin_test.rb
938
958
  - test/lib/vedeu/plugins/plugins_test.rb
939
- - test/lib/vedeu/presentation/background_test.rb
940
959
  - test/lib/vedeu/presentation/colour_test.rb
941
- - test/lib/vedeu/presentation/foreground_test.rb
960
+ - test/lib/vedeu/presentation/position_test.rb
942
961
  - test/lib/vedeu/presentation/presentation_test.rb
943
962
  - test/lib/vedeu/presentation/style_test.rb
944
963
  - test/lib/vedeu/presentation/styles_test.rb
@@ -964,6 +983,8 @@ files:
964
983
  - test/lib/vedeu/runtime/main_loop_test.rb
965
984
  - test/lib/vedeu/runtime/router_test.rb
966
985
  - test/lib/vedeu/runtime/traps_test.rb
986
+ - test/lib/vedeu/sentence_test.rb
987
+ - test/lib/vedeu/support/point_test.rb
967
988
  - test/lib/vedeu/templating/decoder_test.rb
968
989
  - test/lib/vedeu/templating/encoder_test.rb
969
990
  - test/lib/vedeu/templating/helpers_test.rb
@@ -1092,17 +1113,17 @@ test_files:
1092
1113
  - test/lib/vedeu/distributed/subprocess_test.rb
1093
1114
  - test/lib/vedeu/distributed/test_application_test.rb
1094
1115
  - test/lib/vedeu/distributed/uri_test.rb
1095
- - test/lib/vedeu/dsl/attributes_test.rb
1096
1116
  - test/lib/vedeu/dsl/border_test.rb
1097
1117
  - test/lib/vedeu/dsl/cursors_test.rb
1098
1118
  - test/lib/vedeu/dsl/dsl_test.rb
1099
1119
  - test/lib/vedeu/dsl/elements_test.rb
1100
1120
  - test/lib/vedeu/dsl/geometry_test.rb
1121
+ - test/lib/vedeu/dsl/helpers/align_test.rb
1122
+ - test/lib/vedeu/dsl/helpers/attributes_test.rb
1123
+ - test/lib/vedeu/dsl/helpers/text_test.rb
1124
+ - test/lib/vedeu/dsl/helpers/truncate_test.rb
1125
+ - test/lib/vedeu/dsl/helpers/wordwrap_test.rb
1101
1126
  - test/lib/vedeu/dsl/presentation_test.rb
1102
- - test/lib/vedeu/dsl/string/align_test.rb
1103
- - test/lib/vedeu/dsl/string/text_test.rb
1104
- - test/lib/vedeu/dsl/string/truncate_test.rb
1105
- - test/lib/vedeu/dsl/string/wordwrap_test.rb
1106
1127
  - test/lib/vedeu/dsl/use_test.rb
1107
1128
  - test/lib/vedeu/dsl/view_test.rb
1108
1129
  - test/lib/vedeu/dsl/views_test.rb
@@ -1136,11 +1157,9 @@ test_files:
1136
1157
  - test/lib/vedeu/geometries/area/y_dimension_test.rb
1137
1158
  - test/lib/vedeu/geometries/dsl/dsl_test.rb
1138
1159
  - test/lib/vedeu/geometries/dsl/grid_test.rb
1139
- - test/lib/vedeu/geometries/dsl/validator_test.rb
1140
1160
  - test/lib/vedeu/geometries/geometry_test.rb
1141
1161
  - test/lib/vedeu/geometries/move_test.rb
1142
1162
  - test/lib/vedeu/geometries/position_test.rb
1143
- - test/lib/vedeu/geometries/positionable_test.rb
1144
1163
  - test/lib/vedeu/geometries/repository_test.rb
1145
1164
  - test/lib/vedeu/groups/clear_test.rb
1146
1165
  - test/lib/vedeu/groups/dsl_test.rb
@@ -1186,9 +1205,8 @@ test_files:
1186
1205
  - test/lib/vedeu/output/write_test.rb
1187
1206
  - test/lib/vedeu/plugins/plugin_test.rb
1188
1207
  - test/lib/vedeu/plugins/plugins_test.rb
1189
- - test/lib/vedeu/presentation/background_test.rb
1190
1208
  - test/lib/vedeu/presentation/colour_test.rb
1191
- - test/lib/vedeu/presentation/foreground_test.rb
1209
+ - test/lib/vedeu/presentation/position_test.rb
1192
1210
  - test/lib/vedeu/presentation/presentation_test.rb
1193
1211
  - test/lib/vedeu/presentation/style_test.rb
1194
1212
  - test/lib/vedeu/presentation/styles_test.rb
@@ -1214,6 +1232,8 @@ test_files:
1214
1232
  - test/lib/vedeu/runtime/main_loop_test.rb
1215
1233
  - test/lib/vedeu/runtime/router_test.rb
1216
1234
  - test/lib/vedeu/runtime/traps_test.rb
1235
+ - test/lib/vedeu/sentence_test.rb
1236
+ - test/lib/vedeu/support/point_test.rb
1217
1237
  - test/lib/vedeu/templating/decoder_test.rb
1218
1238
  - test/lib/vedeu/templating/encoder_test.rb
1219
1239
  - test/lib/vedeu/templating/helpers_test.rb
@@ -1,95 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # frozen_string_literal: true
4
-
5
- require 'bundler/setup'
6
- require 'vedeu'
7
-
8
- class DSLApp
9
-
10
- Vedeu.bind(:_initialize_) { Vedeu.trigger(:_refresh_) }
11
-
12
- Vedeu.configure do
13
- debug!
14
- log '/tmp/vedeu_views_dsl.log'
15
- run_once!
16
- standalone!
17
- end
18
-
19
- Vedeu.interface :test1_interface do
20
- border do
21
- title 'Test 1'
22
- end
23
- geometry do
24
- x 4
25
- y 3
26
- xn 34
27
- yn 8
28
- end
29
- end
30
-
31
- Vedeu.interface :test2_interface do
32
- border do
33
- title 'Test 2'
34
- end
35
- geometry do
36
- x 36
37
- y 3
38
- xn 66
39
- yn 8
40
- end
41
- end
42
-
43
- Vedeu.interface :test3_interface do
44
- border do
45
- title 'Test 3'
46
- end
47
- geometry do
48
- x 4
49
- y 10
50
- xn 34
51
- yn 15
52
- end
53
- end
54
-
55
- Vedeu.render do
56
- view(:test1_interface) do
57
- lines do
58
- line do
59
- stream 'view->lines->line->stream', { foreground: '#ff77ff' }
60
- end
61
- end
62
- end
63
-
64
- view(:test2_interface) do
65
- lines do
66
- line do
67
- stream do
68
- text 'v->ls->l->s->text 1', { foreground: '#7700ff' }
69
- text 'v->ls->l->s->text 2', { foreground: '#ff7700' }
70
- end
71
- end
72
- end
73
- end
74
-
75
- view(:test3_interface) do
76
- lines do
77
- line do
78
- stream do
79
- text 'stream 1->text 1', { foreground: '#ff7700' }
80
- end
81
- stream do
82
- text 'stream 2->text 1', { foreground: '#7700ff' }
83
- end
84
- end
85
- end
86
- end
87
- end
88
-
89
- def self.start(argv = ARGV)
90
- Vedeu::Launcher.execute!(argv)
91
- end
92
-
93
- end # DSLApp
94
-
95
- DSLApp.start