vedeu 0.6.71 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/docs/api.md +1 -1
  3. data/lib/vedeu/all.rb +1 -0
  4. data/lib/vedeu/borders/border.rb +66 -55
  5. data/lib/vedeu/borders/caption.rb +10 -20
  6. data/lib/vedeu/borders/dsl.rb +57 -13
  7. data/lib/vedeu/borders/refresh.rb +123 -64
  8. data/lib/vedeu/borders/set_attribute.rb +1 -3
  9. data/lib/vedeu/borders/title.rb +68 -25
  10. data/lib/vedeu/cells/all.rb +23 -0
  11. data/lib/vedeu/cells/border.rb +72 -0
  12. data/lib/vedeu/cells/borders/all.rb +18 -0
  13. data/lib/vedeu/cells/borders/bottom_horizontal.rb +28 -0
  14. data/lib/vedeu/cells/borders/bottom_left.rb +34 -0
  15. data/lib/vedeu/cells/borders/bottom_right.rb +34 -0
  16. data/lib/vedeu/cells/borders/horizontal.rb +28 -0
  17. data/lib/vedeu/cells/borders/left_vertical.rb +28 -0
  18. data/lib/vedeu/cells/borders/right_vertical.rb +28 -0
  19. data/lib/vedeu/cells/borders/top_horizontal.rb +28 -0
  20. data/lib/vedeu/cells/borders/top_left.rb +34 -0
  21. data/lib/vedeu/cells/borders/top_right.rb +34 -0
  22. data/lib/vedeu/cells/borders/vertical.rb +28 -0
  23. data/lib/vedeu/cells/char.rb +24 -0
  24. data/lib/vedeu/cells/clear.rb +29 -0
  25. data/lib/vedeu/cells/empty.rb +78 -0
  26. data/lib/vedeu/cells/escape.rb +24 -0
  27. data/lib/vedeu/cells/html.rb +19 -0
  28. data/lib/vedeu/cells/json.rb +19 -0
  29. data/lib/vedeu/colours/colour.rb +6 -6
  30. data/lib/vedeu/common.rb +9 -0
  31. data/lib/vedeu/cursors/move.rb +2 -3
  32. data/lib/vedeu/editor/insert.rb +1 -1
  33. data/lib/vedeu/editor/item.rb +2 -3
  34. data/lib/vedeu/input/mouse.rb +1 -1
  35. data/lib/vedeu/interfaces/clear.rb +3 -4
  36. data/lib/vedeu/output/compressor.rb +1 -0
  37. data/lib/vedeu/presentation/colour.rb +3 -0
  38. data/lib/vedeu/repositories/defaults.rb +10 -1
  39. data/lib/vedeu/templating/decoder.rb +1 -1
  40. data/lib/vedeu/templating/encoder.rb +1 -1
  41. data/lib/vedeu/templating/template.rb +2 -2
  42. data/lib/vedeu/templating/view_template.rb +1 -1
  43. data/lib/vedeu/terminal/terminal.rb +9 -0
  44. data/lib/vedeu/version.rb +1 -1
  45. data/lib/vedeu/views/html_char.rb +1 -1
  46. data/test/lib/vedeu/application/application_controller_test.rb +2 -2
  47. data/test/lib/vedeu/application/controller_test.rb +4 -4
  48. data/test/lib/vedeu/borders/border_test.rb +10 -2
  49. data/test/lib/vedeu/borders/caption_test.rb +29 -13
  50. data/test/lib/vedeu/borders/dsl_test.rb +44 -25
  51. data/test/lib/vedeu/borders/refresh_test.rb +2 -2
  52. data/test/lib/vedeu/borders/title_test.rb +17 -15
  53. data/test/lib/vedeu/buffers/buffer_test.rb +8 -8
  54. data/test/lib/vedeu/buffers/refresh_test.rb +10 -10
  55. data/test/lib/vedeu/buffers/terminal_test.rb +6 -6
  56. data/test/lib/vedeu/cells/border_test.rb +72 -0
  57. data/test/lib/vedeu/cells/borders/bottom_horizontal_test.rb +22 -0
  58. data/test/lib/vedeu/cells/borders/bottom_left_test.rb +36 -0
  59. data/test/lib/vedeu/cells/borders/bottom_right_test.rb +36 -0
  60. data/test/lib/vedeu/cells/borders/horizontal_test.rb +22 -0
  61. data/test/lib/vedeu/cells/borders/left_vertical_test.rb +22 -0
  62. data/test/lib/vedeu/cells/borders/right_vertical_test.rb +22 -0
  63. data/test/lib/vedeu/cells/borders/top_horizontal_test.rb +22 -0
  64. data/test/lib/vedeu/cells/borders/top_left_test.rb +36 -0
  65. data/test/lib/vedeu/cells/borders/top_right_test.rb +36 -0
  66. data/test/lib/vedeu/cells/borders/vertical_test.rb +22 -0
  67. data/test/lib/vedeu/cells/char_test.rb +22 -0
  68. data/test/lib/vedeu/cells/clear_test.rb +34 -0
  69. data/test/lib/vedeu/cells/empty_test.rb +55 -0
  70. data/test/lib/vedeu/cells/escape_test.rb +13 -0
  71. data/test/lib/vedeu/cells/html_test.rb +13 -0
  72. data/test/lib/vedeu/cells/json_test.rb +13 -0
  73. data/test/lib/vedeu/colours/colour_test.rb +2 -6
  74. data/test/lib/vedeu/colours/translator_test.rb +4 -4
  75. data/test/lib/vedeu/common_test.rb +10 -0
  76. data/test/lib/vedeu/configuration/api_test.rb +24 -24
  77. data/test/lib/vedeu/cursors/cursor_test.rb +4 -4
  78. data/test/lib/vedeu/cursors/dsl_test.rb +16 -16
  79. data/test/lib/vedeu/cursors/reposition_test.rb +2 -2
  80. data/test/lib/vedeu/cursors/repository_test.rb +2 -2
  81. data/test/lib/vedeu/distributed/client_test.rb +2 -2
  82. data/test/lib/vedeu/distributed/server_test.rb +8 -8
  83. data/test/lib/vedeu/distributed/subprocess_test.rb +2 -2
  84. data/test/lib/vedeu/distributed/test_application_test.rb +2 -2
  85. data/test/lib/vedeu/dsl/line_test.rb +2 -2
  86. data/test/lib/vedeu/dsl/presentation_test.rb +4 -4
  87. data/test/lib/vedeu/editor/cursor_test.rb +2 -2
  88. data/test/lib/vedeu/editor/document_test.rb +4 -4
  89. data/test/lib/vedeu/editor/editor_test.rb +20 -20
  90. data/test/lib/vedeu/events/aliases_test.rb +2 -2
  91. data/test/lib/vedeu/events/repository_test.rb +2 -2
  92. data/test/lib/vedeu/geometries/area/area_test.rb +2 -2
  93. data/test/lib/vedeu/geometries/geometry_test.rb +2 -2
  94. data/test/lib/vedeu/geometries/move_test.rb +2 -2
  95. data/test/lib/vedeu/geometries/position_test.rb +2 -2
  96. data/test/lib/vedeu/groups/clear_test.rb +2 -2
  97. data/test/lib/vedeu/groups/group_test.rb +4 -4
  98. data/test/lib/vedeu/groups/refresh_test.rb +2 -2
  99. data/test/lib/vedeu/input/capture_test.rb +42 -40
  100. data/test/lib/vedeu/input/mouse_test.rb +13 -11
  101. data/test/lib/vedeu/input/read_test.rb +10 -10
  102. data/test/lib/vedeu/interfaces/clear_test.rb +15 -6
  103. data/test/lib/vedeu/interfaces/dsl_test.rb +14 -14
  104. data/test/lib/vedeu/interfaces/interface_test.rb +12 -9
  105. data/test/lib/vedeu/logging/debug_test.rb +2 -2
  106. data/test/lib/vedeu/logging/lockless_log_device_test.rb +2 -2
  107. data/test/lib/vedeu/logging/log_test.rb +4 -4
  108. data/test/lib/vedeu/logging/mono_logger_test.rb +8 -8
  109. data/test/lib/vedeu/logging/timer_test.rb +2 -2
  110. data/test/lib/vedeu/menus/menu_test.rb +4 -4
  111. data/test/lib/vedeu/models/cell_test.rb +2 -2
  112. data/test/lib/vedeu/models/focus_test.rb +6 -6
  113. data/test/lib/vedeu/models/toggleable_test.rb +10 -10
  114. data/test/lib/vedeu/null/generic_test.rb +2 -2
  115. data/test/lib/vedeu/output/output_test.rb +8 -8
  116. data/test/lib/vedeu/output/refresh_test.rb +2 -2
  117. data/test/lib/vedeu/output/viewport_test.rb +2 -2
  118. data/test/lib/vedeu/plugins/plugin_test.rb +4 -4
  119. data/test/lib/vedeu/presentation/background_test.rb +2 -2
  120. data/test/lib/vedeu/presentation/foreground_test.rb +2 -2
  121. data/test/lib/vedeu/presentation/style_test.rb +2 -2
  122. data/test/lib/vedeu/renderers/all_test.rb +2 -2
  123. data/test/lib/vedeu/renderers/file_test.rb +6 -6
  124. data/test/lib/vedeu/renderers/terminal_test.rb +2 -2
  125. data/test/lib/vedeu/repositories/collection_test.rb +2 -2
  126. data/test/lib/vedeu/repositories/defaults_test.rb +35 -0
  127. data/test/lib/vedeu/repositories/registerable_test.rb +2 -2
  128. data/test/lib/vedeu/runtime/bootstrap_test.rb +2 -2
  129. data/test/lib/vedeu/runtime/flags_test.rb +2 -2
  130. data/test/lib/vedeu/runtime/launcher_test.rb +4 -4
  131. data/test/lib/vedeu/runtime/main_loop_test.rb +2 -2
  132. data/test/lib/vedeu/runtime/router_test.rb +12 -12
  133. data/test/lib/vedeu/terminal/mode_test.rb +4 -4
  134. data/test/lib/vedeu/terminal/terminal_test.rb +19 -9
  135. data/test/lib/vedeu/views/char_test.rb +2 -2
  136. data/test/lib/vedeu/views/composition_test.rb +2 -2
  137. data/test/lib/vedeu/views/line_test.rb +2 -2
  138. data/test/lib/vedeu/views/stream_test.rb +2 -2
  139. data/test/lib/vedeu/views/view_test.rb +4 -4
  140. data/vedeu.gemspec +1 -1
  141. metadata +57 -4
@@ -70,10 +70,10 @@ module Vedeu
70
70
  end
71
71
 
72
72
  describe 'accessors' do
73
- it {
73
+ it do
74
74
  instance.must_respond_to(:parent)
75
75
  instance.must_respond_to(:parent=)
76
- }
76
+ end
77
77
  end
78
78
 
79
79
  describe '#add' do
@@ -52,14 +52,14 @@ module Vedeu
52
52
  end
53
53
 
54
54
  describe 'accessors' do
55
- it {
55
+ it do
56
56
  instance.must_respond_to(:parent)
57
57
  instance.must_respond_to(:parent=)
58
58
  instance.must_respond_to(:value)
59
59
  instance.must_respond_to(:content)
60
60
  instance.must_respond_to(:text)
61
61
  instance.must_respond_to(:value=)
62
- }
62
+ end
63
63
  end
64
64
 
65
65
  describe '#add' do
@@ -29,7 +29,7 @@ module Vedeu
29
29
  let(:_name) { 'Vedeu::Views::View' }
30
30
 
31
31
  describe 'accessors' do
32
- it {
32
+ it do
33
33
  instance.must_respond_to(:client)
34
34
  instance.must_respond_to(:client=)
35
35
  instance.must_respond_to(:cursor_visible)
@@ -41,7 +41,7 @@ module Vedeu
41
41
  instance.must_respond_to(:lines=)
42
42
  instance.must_respond_to(:zindex)
43
43
  instance.must_respond_to(:zindex=)
44
- }
44
+ end
45
45
  end
46
46
 
47
47
  describe '#add' do
@@ -81,10 +81,10 @@ module Vedeu
81
81
 
82
82
  it { subject.must_be_instance_of(described) }
83
83
 
84
- it {
84
+ it do
85
85
  Vedeu.expects(:trigger).with(:_refresh_view_, _name)
86
86
  subject
87
- }
87
+ end
88
88
  end
89
89
 
90
90
  describe '#store_deferred' do
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 'pry', '0.10.3'
30
30
  spec.add_development_dependency 'rubocop', '0.35.1'
31
- spec.add_development_dependency 'simplecov', '0.11.0'
31
+ spec.add_development_dependency 'simplecov', '0.11.1'
32
32
  spec.add_development_dependency 'simplecov-console', '0.2.0'
33
33
  spec.add_development_dependency 'yard', '0.8.7.6'
34
34
 
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.71
4
+ version: 0.7.0
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-11-30 00:00:00.000000000 Z
11
+ date: 2015-12-03 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.11.0
131
+ version: 0.11.1
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.11.0
138
+ version: 0.11.1
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: simplecov-console
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -344,6 +344,25 @@ files:
344
344
  - lib/vedeu/buffers/repository.rb
345
345
  - lib/vedeu/buffers/terminal.rb
346
346
  - lib/vedeu/buffers/view.rb
347
+ - lib/vedeu/cells/all.rb
348
+ - lib/vedeu/cells/border.rb
349
+ - lib/vedeu/cells/borders/all.rb
350
+ - lib/vedeu/cells/borders/bottom_horizontal.rb
351
+ - lib/vedeu/cells/borders/bottom_left.rb
352
+ - lib/vedeu/cells/borders/bottom_right.rb
353
+ - lib/vedeu/cells/borders/horizontal.rb
354
+ - lib/vedeu/cells/borders/left_vertical.rb
355
+ - lib/vedeu/cells/borders/right_vertical.rb
356
+ - lib/vedeu/cells/borders/top_horizontal.rb
357
+ - lib/vedeu/cells/borders/top_left.rb
358
+ - lib/vedeu/cells/borders/top_right.rb
359
+ - lib/vedeu/cells/borders/vertical.rb
360
+ - lib/vedeu/cells/char.rb
361
+ - lib/vedeu/cells/clear.rb
362
+ - lib/vedeu/cells/empty.rb
363
+ - lib/vedeu/cells/escape.rb
364
+ - lib/vedeu/cells/html.rb
365
+ - lib/vedeu/cells/json.rb
347
366
  - lib/vedeu/colours/all.rb
348
367
  - lib/vedeu/colours/background.rb
349
368
  - lib/vedeu/colours/backgrounds.rb
@@ -565,6 +584,23 @@ files:
565
584
  - test/lib/vedeu/buffers/repository_test.rb
566
585
  - test/lib/vedeu/buffers/terminal_test.rb
567
586
  - test/lib/vedeu/buffers/view_test.rb
587
+ - test/lib/vedeu/cells/border_test.rb
588
+ - test/lib/vedeu/cells/borders/bottom_horizontal_test.rb
589
+ - test/lib/vedeu/cells/borders/bottom_left_test.rb
590
+ - test/lib/vedeu/cells/borders/bottom_right_test.rb
591
+ - test/lib/vedeu/cells/borders/horizontal_test.rb
592
+ - test/lib/vedeu/cells/borders/left_vertical_test.rb
593
+ - test/lib/vedeu/cells/borders/right_vertical_test.rb
594
+ - test/lib/vedeu/cells/borders/top_horizontal_test.rb
595
+ - test/lib/vedeu/cells/borders/top_left_test.rb
596
+ - test/lib/vedeu/cells/borders/top_right_test.rb
597
+ - test/lib/vedeu/cells/borders/vertical_test.rb
598
+ - test/lib/vedeu/cells/char_test.rb
599
+ - test/lib/vedeu/cells/clear_test.rb
600
+ - test/lib/vedeu/cells/empty_test.rb
601
+ - test/lib/vedeu/cells/escape_test.rb
602
+ - test/lib/vedeu/cells/html_test.rb
603
+ - test/lib/vedeu/cells/json_test.rb
568
604
  - test/lib/vedeu/colours/background_test.rb
569
605
  - test/lib/vedeu/colours/backgrounds_test.rb
570
606
  - test/lib/vedeu/colours/colour_test.rb
@@ -791,6 +827,23 @@ test_files:
791
827
  - test/lib/vedeu/buffers/repository_test.rb
792
828
  - test/lib/vedeu/buffers/terminal_test.rb
793
829
  - test/lib/vedeu/buffers/view_test.rb
830
+ - test/lib/vedeu/cells/border_test.rb
831
+ - test/lib/vedeu/cells/borders/bottom_horizontal_test.rb
832
+ - test/lib/vedeu/cells/borders/bottom_left_test.rb
833
+ - test/lib/vedeu/cells/borders/bottom_right_test.rb
834
+ - test/lib/vedeu/cells/borders/horizontal_test.rb
835
+ - test/lib/vedeu/cells/borders/left_vertical_test.rb
836
+ - test/lib/vedeu/cells/borders/right_vertical_test.rb
837
+ - test/lib/vedeu/cells/borders/top_horizontal_test.rb
838
+ - test/lib/vedeu/cells/borders/top_left_test.rb
839
+ - test/lib/vedeu/cells/borders/top_right_test.rb
840
+ - test/lib/vedeu/cells/borders/vertical_test.rb
841
+ - test/lib/vedeu/cells/char_test.rb
842
+ - test/lib/vedeu/cells/clear_test.rb
843
+ - test/lib/vedeu/cells/empty_test.rb
844
+ - test/lib/vedeu/cells/escape_test.rb
845
+ - test/lib/vedeu/cells/html_test.rb
846
+ - test/lib/vedeu/cells/json_test.rb
794
847
  - test/lib/vedeu/colours/background_test.rb
795
848
  - test/lib/vedeu/colours/backgrounds_test.rb
796
849
  - test/lib/vedeu/colours/colour_test.rb