vedeu 0.6.71 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/api.md +1 -1
- data/lib/vedeu/all.rb +1 -0
- data/lib/vedeu/borders/border.rb +66 -55
- data/lib/vedeu/borders/caption.rb +10 -20
- data/lib/vedeu/borders/dsl.rb +57 -13
- data/lib/vedeu/borders/refresh.rb +123 -64
- data/lib/vedeu/borders/set_attribute.rb +1 -3
- data/lib/vedeu/borders/title.rb +68 -25
- data/lib/vedeu/cells/all.rb +23 -0
- data/lib/vedeu/cells/border.rb +72 -0
- data/lib/vedeu/cells/borders/all.rb +18 -0
- data/lib/vedeu/cells/borders/bottom_horizontal.rb +28 -0
- data/lib/vedeu/cells/borders/bottom_left.rb +34 -0
- data/lib/vedeu/cells/borders/bottom_right.rb +34 -0
- data/lib/vedeu/cells/borders/horizontal.rb +28 -0
- data/lib/vedeu/cells/borders/left_vertical.rb +28 -0
- data/lib/vedeu/cells/borders/right_vertical.rb +28 -0
- data/lib/vedeu/cells/borders/top_horizontal.rb +28 -0
- data/lib/vedeu/cells/borders/top_left.rb +34 -0
- data/lib/vedeu/cells/borders/top_right.rb +34 -0
- data/lib/vedeu/cells/borders/vertical.rb +28 -0
- data/lib/vedeu/cells/char.rb +24 -0
- data/lib/vedeu/cells/clear.rb +29 -0
- data/lib/vedeu/cells/empty.rb +78 -0
- data/lib/vedeu/cells/escape.rb +24 -0
- data/lib/vedeu/cells/html.rb +19 -0
- data/lib/vedeu/cells/json.rb +19 -0
- data/lib/vedeu/colours/colour.rb +6 -6
- data/lib/vedeu/common.rb +9 -0
- data/lib/vedeu/cursors/move.rb +2 -3
- data/lib/vedeu/editor/insert.rb +1 -1
- data/lib/vedeu/editor/item.rb +2 -3
- data/lib/vedeu/input/mouse.rb +1 -1
- data/lib/vedeu/interfaces/clear.rb +3 -4
- data/lib/vedeu/output/compressor.rb +1 -0
- data/lib/vedeu/presentation/colour.rb +3 -0
- data/lib/vedeu/repositories/defaults.rb +10 -1
- data/lib/vedeu/templating/decoder.rb +1 -1
- data/lib/vedeu/templating/encoder.rb +1 -1
- data/lib/vedeu/templating/template.rb +2 -2
- data/lib/vedeu/templating/view_template.rb +1 -1
- data/lib/vedeu/terminal/terminal.rb +9 -0
- data/lib/vedeu/version.rb +1 -1
- data/lib/vedeu/views/html_char.rb +1 -1
- data/test/lib/vedeu/application/application_controller_test.rb +2 -2
- data/test/lib/vedeu/application/controller_test.rb +4 -4
- data/test/lib/vedeu/borders/border_test.rb +10 -2
- data/test/lib/vedeu/borders/caption_test.rb +29 -13
- data/test/lib/vedeu/borders/dsl_test.rb +44 -25
- data/test/lib/vedeu/borders/refresh_test.rb +2 -2
- data/test/lib/vedeu/borders/title_test.rb +17 -15
- data/test/lib/vedeu/buffers/buffer_test.rb +8 -8
- data/test/lib/vedeu/buffers/refresh_test.rb +10 -10
- data/test/lib/vedeu/buffers/terminal_test.rb +6 -6
- data/test/lib/vedeu/cells/border_test.rb +72 -0
- data/test/lib/vedeu/cells/borders/bottom_horizontal_test.rb +22 -0
- data/test/lib/vedeu/cells/borders/bottom_left_test.rb +36 -0
- data/test/lib/vedeu/cells/borders/bottom_right_test.rb +36 -0
- data/test/lib/vedeu/cells/borders/horizontal_test.rb +22 -0
- data/test/lib/vedeu/cells/borders/left_vertical_test.rb +22 -0
- data/test/lib/vedeu/cells/borders/right_vertical_test.rb +22 -0
- data/test/lib/vedeu/cells/borders/top_horizontal_test.rb +22 -0
- data/test/lib/vedeu/cells/borders/top_left_test.rb +36 -0
- data/test/lib/vedeu/cells/borders/top_right_test.rb +36 -0
- data/test/lib/vedeu/cells/borders/vertical_test.rb +22 -0
- data/test/lib/vedeu/cells/char_test.rb +22 -0
- data/test/lib/vedeu/cells/clear_test.rb +34 -0
- data/test/lib/vedeu/cells/empty_test.rb +55 -0
- data/test/lib/vedeu/cells/escape_test.rb +13 -0
- data/test/lib/vedeu/cells/html_test.rb +13 -0
- data/test/lib/vedeu/cells/json_test.rb +13 -0
- data/test/lib/vedeu/colours/colour_test.rb +2 -6
- data/test/lib/vedeu/colours/translator_test.rb +4 -4
- data/test/lib/vedeu/common_test.rb +10 -0
- data/test/lib/vedeu/configuration/api_test.rb +24 -24
- data/test/lib/vedeu/cursors/cursor_test.rb +4 -4
- data/test/lib/vedeu/cursors/dsl_test.rb +16 -16
- data/test/lib/vedeu/cursors/reposition_test.rb +2 -2
- data/test/lib/vedeu/cursors/repository_test.rb +2 -2
- data/test/lib/vedeu/distributed/client_test.rb +2 -2
- data/test/lib/vedeu/distributed/server_test.rb +8 -8
- data/test/lib/vedeu/distributed/subprocess_test.rb +2 -2
- data/test/lib/vedeu/distributed/test_application_test.rb +2 -2
- data/test/lib/vedeu/dsl/line_test.rb +2 -2
- data/test/lib/vedeu/dsl/presentation_test.rb +4 -4
- data/test/lib/vedeu/editor/cursor_test.rb +2 -2
- data/test/lib/vedeu/editor/document_test.rb +4 -4
- data/test/lib/vedeu/editor/editor_test.rb +20 -20
- data/test/lib/vedeu/events/aliases_test.rb +2 -2
- data/test/lib/vedeu/events/repository_test.rb +2 -2
- data/test/lib/vedeu/geometries/area/area_test.rb +2 -2
- data/test/lib/vedeu/geometries/geometry_test.rb +2 -2
- data/test/lib/vedeu/geometries/move_test.rb +2 -2
- data/test/lib/vedeu/geometries/position_test.rb +2 -2
- data/test/lib/vedeu/groups/clear_test.rb +2 -2
- data/test/lib/vedeu/groups/group_test.rb +4 -4
- data/test/lib/vedeu/groups/refresh_test.rb +2 -2
- data/test/lib/vedeu/input/capture_test.rb +42 -40
- data/test/lib/vedeu/input/mouse_test.rb +13 -11
- data/test/lib/vedeu/input/read_test.rb +10 -10
- data/test/lib/vedeu/interfaces/clear_test.rb +15 -6
- data/test/lib/vedeu/interfaces/dsl_test.rb +14 -14
- data/test/lib/vedeu/interfaces/interface_test.rb +12 -9
- data/test/lib/vedeu/logging/debug_test.rb +2 -2
- data/test/lib/vedeu/logging/lockless_log_device_test.rb +2 -2
- data/test/lib/vedeu/logging/log_test.rb +4 -4
- data/test/lib/vedeu/logging/mono_logger_test.rb +8 -8
- data/test/lib/vedeu/logging/timer_test.rb +2 -2
- data/test/lib/vedeu/menus/menu_test.rb +4 -4
- data/test/lib/vedeu/models/cell_test.rb +2 -2
- data/test/lib/vedeu/models/focus_test.rb +6 -6
- data/test/lib/vedeu/models/toggleable_test.rb +10 -10
- data/test/lib/vedeu/null/generic_test.rb +2 -2
- data/test/lib/vedeu/output/output_test.rb +8 -8
- data/test/lib/vedeu/output/refresh_test.rb +2 -2
- data/test/lib/vedeu/output/viewport_test.rb +2 -2
- data/test/lib/vedeu/plugins/plugin_test.rb +4 -4
- data/test/lib/vedeu/presentation/background_test.rb +2 -2
- data/test/lib/vedeu/presentation/foreground_test.rb +2 -2
- data/test/lib/vedeu/presentation/style_test.rb +2 -2
- data/test/lib/vedeu/renderers/all_test.rb +2 -2
- data/test/lib/vedeu/renderers/file_test.rb +6 -6
- data/test/lib/vedeu/renderers/terminal_test.rb +2 -2
- data/test/lib/vedeu/repositories/collection_test.rb +2 -2
- data/test/lib/vedeu/repositories/defaults_test.rb +35 -0
- data/test/lib/vedeu/repositories/registerable_test.rb +2 -2
- data/test/lib/vedeu/runtime/bootstrap_test.rb +2 -2
- data/test/lib/vedeu/runtime/flags_test.rb +2 -2
- data/test/lib/vedeu/runtime/launcher_test.rb +4 -4
- data/test/lib/vedeu/runtime/main_loop_test.rb +2 -2
- data/test/lib/vedeu/runtime/router_test.rb +12 -12
- data/test/lib/vedeu/terminal/mode_test.rb +4 -4
- data/test/lib/vedeu/terminal/terminal_test.rb +19 -9
- data/test/lib/vedeu/views/char_test.rb +2 -2
- data/test/lib/vedeu/views/composition_test.rb +2 -2
- data/test/lib/vedeu/views/line_test.rb +2 -2
- data/test/lib/vedeu/views/stream_test.rb +2 -2
- data/test/lib/vedeu/views/view_test.rb +4 -4
- data/vedeu.gemspec +1 -1
- metadata +57 -4
@@ -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.
|
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.
|
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
|
+
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.
|
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.
|
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
|