vedeu 0.6.29 → 0.6.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/Guardfile +6 -5
  4. data/README.md +50 -4
  5. data/Rakefile +16 -4
  6. data/docs/dsl.md +3 -3
  7. data/lib/vedeu/all.rb +6 -8
  8. data/lib/vedeu/bindings/all.rb +43 -13
  9. data/lib/vedeu/borders/border.rb +26 -3
  10. data/lib/vedeu/borders/refresh.rb +5 -0
  11. data/lib/vedeu/buffers/refresh.rb +10 -0
  12. data/lib/vedeu/cursors/cursor.rb +59 -0
  13. data/lib/vedeu/cursors/refresh.rb +5 -0
  14. data/lib/vedeu/distributed/server.rb +12 -0
  15. data/lib/vedeu/distributed/subprocess.rb +7 -2
  16. data/lib/vedeu/editor/editor.rb +5 -0
  17. data/lib/vedeu/editor/repository.rb +41 -0
  18. data/lib/vedeu/geometry/geometry.rb +19 -8
  19. data/lib/vedeu/geometry/repository.rb +25 -0
  20. data/lib/vedeu/groups/clear.rb +3 -0
  21. data/lib/vedeu/groups/group.rb +9 -0
  22. data/lib/vedeu/groups/refresh.rb +5 -0
  23. data/lib/vedeu/input/dsl.rb +4 -4
  24. data/lib/vedeu/input/mapper.rb +3 -0
  25. data/lib/vedeu/interfaces/all.rb +1 -0
  26. data/lib/vedeu/interfaces/dsl.rb +1 -1
  27. data/lib/vedeu/interfaces/interface.rb +12 -0
  28. data/lib/vedeu/logging/log.rb +3 -0
  29. data/lib/vedeu/menus/repository.rb +40 -0
  30. data/lib/vedeu/models/focus.rb +9 -0
  31. data/lib/vedeu/output/clear/interface.rb +9 -1
  32. data/lib/vedeu/output/refresh/refresh.rb +3 -0
  33. data/lib/vedeu/repositories/model.rb +1 -9
  34. data/lib/vedeu/runtime/application.rb +7 -0
  35. data/lib/vedeu/runtime/flags.rb +3 -0
  36. data/lib/vedeu/runtime/launcher.rb +2 -0
  37. data/lib/vedeu/runtime/router.rb +7 -0
  38. data/lib/vedeu/terminal/buffer.rb +11 -0
  39. data/lib/vedeu/terminal/terminal.rb +3 -0
  40. data/lib/vedeu/version.rb +1 -1
  41. data/test/lib/vedeu/bindings/all_test.rb +19 -0
  42. data/test/lib/vedeu/borders/border_test.rb +0 -4
  43. data/test/lib/vedeu/borders/refresh_test.rb +4 -0
  44. data/test/lib/vedeu/buffers/refresh_test.rb +5 -0
  45. data/test/lib/vedeu/cursors/cursor_test.rb +21 -0
  46. data/test/lib/vedeu/cursors/refresh_test.rb +4 -0
  47. data/test/lib/vedeu/distributed/server_test.rb +7 -0
  48. data/test/lib/vedeu/editor/editor_test.rb +4 -0
  49. data/test/lib/vedeu/editor/repository_test.rb +12 -0
  50. data/test/lib/vedeu/events/aliases_test.rb +0 -1
  51. data/test/lib/vedeu/geometry/geometry_test.rb +0 -3
  52. data/test/lib/vedeu/geometry/repository_test.rb +13 -0
  53. data/test/lib/vedeu/groups/clear_test.rb +4 -0
  54. data/test/lib/vedeu/groups/group_test.rb +6 -0
  55. data/test/lib/vedeu/groups/refresh_test.rb +4 -0
  56. data/test/lib/vedeu/input/dsl_test.rb +3 -3
  57. data/test/lib/vedeu/input/mapper_test.rb +4 -0
  58. data/test/lib/vedeu/interfaces/interface_test.rb +9 -0
  59. data/test/lib/vedeu/logging/log_test.rb +4 -0
  60. data/test/lib/vedeu/menus/repository_test.rb +13 -0
  61. data/test/lib/vedeu/models/focus_test.rb +6 -0
  62. data/test/lib/vedeu/output/clear/interface_test.rb +5 -0
  63. data/test/lib/vedeu/output/refresh/refresh_test.rb +4 -0
  64. data/test/lib/vedeu/repositories/model_test.rb +0 -15
  65. data/test/lib/vedeu/runtime/application_test.rb +5 -0
  66. data/test/lib/vedeu/runtime/flags_test.rb +4 -0
  67. data/test/lib/vedeu/runtime/router_test.rb +26 -0
  68. data/test/lib/vedeu/terminal/buffer_test.rb +8 -0
  69. data/test/lib/vedeu/terminal/terminal_test.rb +4 -0
  70. data/test/support/examples/material_colours_app.rb +24 -4
  71. data/test/test_helper.rb +23 -23
  72. metadata +4 -40
  73. data/lib/vedeu/bindings/application.rb +0 -41
  74. data/lib/vedeu/bindings/bindings.rb +0 -46
  75. data/lib/vedeu/bindings/cursors.rb +0 -101
  76. data/lib/vedeu/bindings/document.rb +0 -97
  77. data/lib/vedeu/bindings/drb.rb +0 -78
  78. data/lib/vedeu/bindings/focus.rb +0 -46
  79. data/lib/vedeu/bindings/menus.rb +0 -99
  80. data/lib/vedeu/bindings/movement.rb +0 -51
  81. data/lib/vedeu/bindings/refresh.rb +0 -74
  82. data/lib/vedeu/bindings/system.rb +0 -81
  83. data/lib/vedeu/bindings/view.rb +0 -50
  84. data/lib/vedeu/bindings/visibility.rb +0 -118
  85. data/test/lib/vedeu/bindings/application_test.rb +0 -39
  86. data/test/lib/vedeu/bindings/bindings_test.rb +0 -109
  87. data/test/lib/vedeu/bindings/cursors_test.rb +0 -24
  88. data/test/lib/vedeu/bindings/document_test.rb +0 -25
  89. data/test/lib/vedeu/bindings/drb_test.rb +0 -27
  90. data/test/lib/vedeu/bindings/focus_test.rb +0 -19
  91. data/test/lib/vedeu/bindings/menus_test.rb +0 -26
  92. data/test/lib/vedeu/bindings/movement_test.rb +0 -24
  93. data/test/lib/vedeu/bindings/refresh_test.rb +0 -22
  94. data/test/lib/vedeu/bindings/system_test.rb +0 -24
  95. data/test/lib/vedeu/bindings/view_test.rb +0 -19
  96. data/test/lib/vedeu/bindings/visibility_test.rb +0 -52
  97. data/test/support/all_seeds.sh +0 -9
@@ -1,19 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Vedeu
4
-
5
- module Bindings
6
-
7
- describe View do
8
-
9
- context 'the system events needed by Vedeu to run are defined' do
10
- it { Vedeu.bound?(:_maximise_).must_equal(true) }
11
- it { Vedeu.bound?(:_resize_).must_equal(true) }
12
- it { Vedeu.bound?(:_unmaximise_).must_equal(true) }
13
- end
14
-
15
- end # View
16
-
17
- end # Bindings
18
-
19
- end # Vedeu
@@ -1,52 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Vedeu
4
-
5
- module Bindings
6
-
7
- describe Visibility do
8
-
9
- context 'the visibility events are defined' do
10
- it { Vedeu.bound?(:_clear_).must_equal(true) }
11
- it { Vedeu.bound?(:_clear_group_).must_equal(true) }
12
- it { Vedeu.bound?(:_clear_view_).must_equal(true) }
13
- it { Vedeu.bound?(:_clear_view_content_).must_equal(true) }
14
-
15
- it { Vedeu.bound?(:_cursor_hide_).must_equal(true) }
16
- it { Vedeu.bound?(:_cursor_show_).must_equal(true) }
17
- it { Vedeu.bound?(:_hide_cursor_).must_equal(true) }
18
- it { Vedeu.bound?(:_show_cursor_).must_equal(true) }
19
- it { Vedeu.bound?(:_toggle_cursor_).must_equal(true) }
20
-
21
- it { Vedeu.bound?(:_hide_group_).must_equal(true) }
22
- it { Vedeu.bound?(:_show_group_).must_equal(true) }
23
- it { Vedeu.bound?(:_toggle_group_).must_equal(true) }
24
-
25
- it { Vedeu.bound?(:_hide_interface_).must_equal(true) }
26
- it { Vedeu.bound?(:_show_interface_).must_equal(true) }
27
- it { Vedeu.bound?(:_toggle_interface_).must_equal(true) }
28
- it { Vedeu.bound?(:_hide_view_).must_equal(true) }
29
- it { Vedeu.bound?(:_show_view_).must_equal(true) }
30
- it { Vedeu.bound?(:_toggle_view_).must_equal(true) }
31
- end
32
-
33
- # describe ':_some_event_' do
34
- # let(:_name) { 'some_name' }
35
- #
36
- # before do
37
- # # stub expectation
38
- # end
39
- #
40
- # subject { Vedeu.trigger(:_some_event_, _name) }
41
- #
42
- # it {
43
- # # expectation
44
- # subject
45
- # }
46
- # end
47
-
48
- end # Visibility
49
-
50
- end # Bindings
51
-
52
- end # Vedeu
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- 1.upto(99999) do |seed|
4
- if system("rake NO_SIMPLECOV=1 SEED=#{seed} > /dev/null")
5
- puts "SEED #{seed} successful"
6
- else
7
- puts "SEED #{seed} failure"
8
- end
9
- end