vedeu 0.8.19 → 0.8.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/integrations/342_streams.rb +5 -16
  3. data/integrations/dsl_app_001.rb +8 -19
  4. data/integrations/dsl_app_002.rb +8 -20
  5. data/integrations/dsl_app_003.rb +8 -19
  6. data/integrations/dsl_app_004.rb +8 -19
  7. data/integrations/dsl_app_005.rb +8 -19
  8. data/integrations/dsl_app_006.rb +8 -19
  9. data/integrations/dsl_app_007.rb +8 -19
  10. data/integrations/dsl_app_008.rb +8 -19
  11. data/integrations/dsl_app_009.rb +8 -19
  12. data/integrations/dsl_app_010.rb +8 -19
  13. data/integrations/dsl_app_011.rb +8 -19
  14. data/integrations/dsl_app_012.rb +8 -19
  15. data/integrations/dsl_app_013.rb +8 -19
  16. data/integrations/dsl_app_014.rb +8 -19
  17. data/integrations/dsl_app_015.rb +8 -19
  18. data/integrations/dsl_app_016.rb +8 -19
  19. data/integrations/dsl_app_017.rb +8 -19
  20. data/integrations/dsl_app_018.rb +8 -19
  21. data/integrations/dsl_app_019.rb +8 -19
  22. data/integrations/dsl_app_020.rb +8 -19
  23. data/integrations/dsl_app_021.rb +8 -19
  24. data/integrations/dsl_app_022.rb +8 -19
  25. data/integrations/dsl_app_border_001.rb +8 -19
  26. data/integrations/dsl_app_border_002.rb +8 -19
  27. data/integrations/dsl_app_border_003.rb +8 -19
  28. data/integrations/dsl_app_border_004.rb +8 -19
  29. data/integrations/dsl_app_border_005.rb +8 -19
  30. data/integrations/dsl_app_border_006.rb +58 -0
  31. data/integrations/dsl_app_border_007.rb +58 -0
  32. data/integrations/dsl_app_border_008.rb +57 -0
  33. data/integrations/dsl_app_border_009.rb +57 -0
  34. data/integrations/dsl_app_border_010.rb +57 -0
  35. data/integrations/dsl_app_border_011.rb +57 -0
  36. data/integrations/expected/dsl_app_border_006.out +1 -0
  37. data/integrations/expected/dsl_app_border_007.out +1 -0
  38. data/integrations/expected/dsl_app_border_008.out +1 -0
  39. data/integrations/expected/dsl_app_border_009.out +1 -0
  40. data/integrations/expected/dsl_app_border_010.out +1 -0
  41. data/integrations/expected/dsl_app_border_011.out +1 -0
  42. data/integrations/test_runner.rb +60 -0
  43. data/integrations/test_runner.sh +11 -5
  44. data/lib/vedeu/version.rb +1 -1
  45. data/test/lib/vedeu/repositories/repositories_test.rb +18 -4
  46. data/test/lib/vedeu_test.rb +12 -0
  47. data/test/support/examples/material_colours_app.rb +0 -134
  48. data/vedeu.gemspec +1 -1
  49. metadata +17 -4
@@ -33,8 +33,14 @@ cd "$(dirname "$0")"
33
33
  ./dsl_app_022.rb
34
34
 
35
35
  # Test some border functionality
36
- ./dsl_app_border_001.rb
37
- ./dsl_app_border_002.rb
38
- ./dsl_app_border_003.rb
39
- ./dsl_app_border_004.rb
40
- ./dsl_app_border_005.rb
36
+ ./dsl_app_border_001.rb # border off
37
+ ./dsl_app_border_002.rb # no top
38
+ ./dsl_app_border_003.rb # no right
39
+ ./dsl_app_border_004.rb # no bottom
40
+ ./dsl_app_border_005.rb # no left
41
+ ./dsl_app_border_006.rb # custom vertices
42
+ ./dsl_app_border_007.rb # custom edges
43
+ ./dsl_app_border_008.rb # only top
44
+ ./dsl_app_border_009.rb # only right
45
+ ./dsl_app_border_010.rb # only bottom
46
+ ./dsl_app_border_011.rb # only left
data/lib/vedeu/version.rb CHANGED
@@ -3,6 +3,6 @@
3
3
  module Vedeu
4
4
 
5
5
  # The current version of Vedeu.
6
- VERSION = '0.8.19'
6
+ VERSION = '0.8.20'
7
7
 
8
8
  end
@@ -9,9 +9,18 @@ module Vedeu
9
9
  let(:described) { Vedeu::Repositories }
10
10
 
11
11
  describe '.all' do
12
+ # let(:expected) {
13
+ # [
14
+ # Vedeu::Cursors::Repository.new,
15
+ # Vedeu::Buffers::Repository.new,
16
+ # Vedeu::Groups::Repository.new,
17
+ # Vedeu::Interfaces::Repository.new,
18
+ # ]
19
+ # }
20
+
12
21
  subject { described.all }
13
22
 
14
- # @todo Add more tests.
23
+ # it { subject.must_equal(expected) }
15
24
  end
16
25
 
17
26
  describe '.register' do
@@ -38,14 +47,19 @@ module Vedeu
38
47
 
39
48
  subject { described.registered }
40
49
 
41
- # @todo Add more tests.
42
- # it { skip }
50
+ # context 'when there is nothing registered' do
51
+ # let(:expected) { [[], [], [], []] }
52
+
53
+ # it { subject.must_equal(expected) }
54
+ # end
43
55
  end
44
56
 
45
57
  describe '.repositories' do
46
- it { described.must_respond_to(:repositories) }
58
+ subject { described.repositories }
47
59
 
48
60
  it { Vedeu.must_respond_to(:repositories) }
61
+
62
+ it { subject.must_equal(described) }
49
63
  end
50
64
 
51
65
  describe '.reset!' do
@@ -15,24 +15,30 @@ describe Vedeu do
15
15
  it { Vedeu.must_respond_to(:borders) }
16
16
  it { Vedeu.must_respond_to(:bound?) }
17
17
  it { Vedeu.must_respond_to(:buffers) }
18
+ it { Vedeu.must_respond_to(:buffer_update) }
18
19
  it { Vedeu.must_respond_to(:buffer_write) }
19
20
  it { Vedeu.must_respond_to(:clear) }
20
21
  it { Vedeu.must_respond_to(:clear_by_group) }
21
22
  it { Vedeu.must_respond_to(:clear_by_name) }
22
23
  it { Vedeu.must_respond_to(:clear_content_by_name) }
24
+ it { Vedeu.must_respond_to(:clock_time) }
25
+ it { Vedeu.must_respond_to(:config) }
23
26
  it { Vedeu.must_respond_to(:configuration) }
24
27
  it { Vedeu.must_respond_to(:configure) }
25
28
  it { Vedeu.must_respond_to(:cursor) }
26
29
  it { Vedeu.must_respond_to(:cursors) }
30
+ it { Vedeu.must_respond_to(:debug) }
27
31
  it { Vedeu.must_respond_to(:direct_write) }
28
32
  it { Vedeu.must_respond_to(:documents) }
29
33
  it { Vedeu.must_respond_to(:drb_restart) }
30
34
  it { Vedeu.must_respond_to(:drb_start) }
31
35
  it { Vedeu.must_respond_to(:drb_status) }
32
36
  it { Vedeu.must_respond_to(:drb_stop) }
37
+ it { Vedeu.must_respond_to(:esc) }
33
38
  it { Vedeu.must_respond_to(:events) }
34
39
  it { Vedeu.must_respond_to(:exit) }
35
40
  it { Vedeu.must_respond_to(:focus) }
41
+ it { Vedeu.must_respond_to(:focus?) }
36
42
  it { Vedeu.must_respond_to(:focus_by_name) }
37
43
  it { Vedeu.must_respond_to(:focus_next) }
38
44
  it { Vedeu.must_respond_to(:focus_previous) }
@@ -64,11 +70,14 @@ describe Vedeu do
64
70
  it { Vedeu.must_respond_to(:log) }
65
71
  it { Vedeu.must_respond_to(:log_stderr) }
66
72
  it { Vedeu.must_respond_to(:log_stdout) }
73
+ it { Vedeu.must_respond_to(:log_timestamp) }
67
74
  it { Vedeu.must_respond_to(:menu) }
68
75
  it { Vedeu.must_respond_to(:menus) }
69
76
  it { Vedeu.must_respond_to(:profile) }
77
+ it { Vedeu.must_respond_to(:read) }
70
78
  it { Vedeu.must_respond_to(:ready!) }
71
79
  it { Vedeu.must_respond_to(:ready?) }
80
+ it { Vedeu.must_respond_to(:refresh) }
72
81
  it { Vedeu.must_respond_to(:render) }
73
82
  it { Vedeu.must_respond_to(:render_output) }
74
83
  it { Vedeu.must_respond_to(:renders) }
@@ -90,6 +99,7 @@ describe Vedeu do
90
99
  end
91
100
  end
92
101
 
102
+ it { Vedeu.must_respond_to(:repositories) }
93
103
  it { Vedeu.must_respond_to(:resize) }
94
104
  it { Vedeu.must_respond_to(:show_cursor) }
95
105
  it { Vedeu.must_respond_to(:show_group) }
@@ -110,4 +120,6 @@ describe Vedeu do
110
120
  it { Vedeu.width.must_equal(40) }
111
121
  end
112
122
 
123
+ it { Vedeu.must_respond_to(:write) }
124
+
113
125
  end # Vedeu
@@ -31,28 +31,6 @@ class VedeuMaterialColoursApp
31
31
  threaded false
32
32
  end
33
33
 
34
- # Borders can be defined as standalone declarations.
35
- Vedeu.border 'no_bottom' do
36
- background '#000000'
37
- foreground '#ffffff'
38
- show_bottom false
39
- end
40
- Vedeu.border 'no_left' do
41
- background '#000000'
42
- foreground '#ffffff'
43
- show_left false
44
- end
45
- Vedeu.border 'no_right' do
46
- background '#000000'
47
- foreground '#ffffff'
48
- show_right false
49
- end
50
- Vedeu.border 'no_top' do
51
- background '#000000'
52
- foreground '#ffffff'
53
- show_top false
54
- end
55
-
56
34
  Vedeu.interface 'main_interface' do
57
35
  border 'main_interface' do
58
36
  colour foreground: '#ffffff', background: :default
@@ -117,66 +95,6 @@ class VedeuMaterialColoursApp
117
95
  colour foreground: '#ffffff', background: '#e91e63'
118
96
  end
119
97
 
120
- Vedeu.interface 'no_top' do
121
- geometry do
122
- x 50
123
- y 7
124
- height 4
125
- width 10
126
- end
127
- colour foreground: '#ffffff', background: '#9c27b0'
128
- end
129
-
130
- Vedeu.interface 'no_bottom' do
131
- geometry do
132
- x 62
133
- y 7
134
- height 4
135
- width 10
136
- end
137
- colour foreground: '#ffffff', background: '#673ab7'
138
- end
139
-
140
- Vedeu.interface 'no_left' do
141
- geometry do
142
- x 50
143
- y 12
144
- height 4
145
- width 10
146
- end
147
- colour foreground: '#ffffff', background: '#3f51b5'
148
- end
149
-
150
- Vedeu.interface 'no_right' do
151
- geometry do
152
- x 62
153
- y 12
154
- height 4
155
- width 10
156
- end
157
- colour foreground: '#ffffff', background: '#2196f3'
158
- end
159
-
160
- Vedeu.interface 'custom_corners' do
161
- geometry do
162
- x 50
163
- y 17
164
- height 4
165
- width 10
166
- end
167
- colour foreground: '#ffffff', background: '#03a9f4'
168
- end
169
-
170
- Vedeu.interface 'custom_sides' do
171
- geometry do
172
- x 62
173
- y 17
174
- height 4
175
- width 10
176
- end
177
- colour foreground: '#000000', background: '#00bcd4'
178
- end
179
-
180
98
  # Borders can be defined as part of the interface definition.
181
99
  Vedeu.interface 'only_top' do
182
100
  colour foreground: '#ffffff', background: '#009688'
@@ -500,58 +418,6 @@ class VedeuMaterialColoursApp
500
418
  line '4, 10'
501
419
  end
502
420
  end
503
- view('no_top') do
504
- lines do
505
- line 'no top'
506
- line '4, 10'
507
- end
508
- end
509
- view('no_bottom') do
510
- lines do
511
- line 'no'
512
- line 'bottom'
513
- line '4, 10'
514
- end
515
- end
516
- view('no_left') do
517
- lines do
518
- line 'no left'
519
- line '4, 10'
520
- end
521
- end
522
- view('no_right') do
523
- lines do
524
- line 'no right'
525
- line '4, 10'
526
- end
527
- end
528
- view('custom_corners') do
529
- border do
530
- foreground '#000000'
531
- top_left 'A', colour: { background: '#ff5722' }
532
- top_right 'B', colour: { background: '#0000ff', foreground: '#ffffff' }
533
- bottom_left 'C', colour: { background: '#ffff00', foreground: '#000000' }
534
- bottom_right 'D', colour: { background: '#ffffff' }
535
- end
536
- lines do
537
- line 'custom'
538
- line 'corners'
539
- end
540
- end
541
- view('custom_sides') do
542
- border do
543
- background '#ff5722'
544
-
545
- top_horizontal '*', colour: { background: '#000000', foreground: '#ffffff' }
546
- left_vertical '$', colour: { background: '#0000ff', foreground: '#ffffff' }
547
- right_vertical '%', colour: { background: '#ffff00', foreground: '#000000' }
548
- bottom_horizontal '&', colour: { background: '#ffffff' }
549
- end
550
- lines do
551
- line 'custom'
552
- line 'sides'
553
- end
554
- end
555
421
  view('only_top') do
556
422
  lines do
557
423
  line 'only'
data/vedeu.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'minitest', '5.8.4'
28
28
  spec.add_development_dependency 'minitest-reporters', '1.1.8'
29
29
  spec.add_development_dependency 'mocha', '1.1.0'
30
- spec.add_development_dependency 'rubocop', '0.37.2'
30
+ spec.add_development_dependency 'rubocop', '0.38.0'
31
31
  spec.add_development_dependency 'simplecov', '0.11.2'
32
32
  spec.add_development_dependency 'simplecov-console', '0.3.0'
33
33
  spec.add_development_dependency 'yard', '0.8.7.6'
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.19
4
+ version: 0.8.20
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-03 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 0.37.2
103
+ version: 0.38.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 0.37.2
110
+ version: 0.38.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -561,6 +561,12 @@ files:
561
561
  - integrations/dsl_app_border_003.rb
562
562
  - integrations/dsl_app_border_004.rb
563
563
  - integrations/dsl_app_border_005.rb
564
+ - integrations/dsl_app_border_006.rb
565
+ - integrations/dsl_app_border_007.rb
566
+ - integrations/dsl_app_border_008.rb
567
+ - integrations/dsl_app_border_009.rb
568
+ - integrations/dsl_app_border_010.rb
569
+ - integrations/dsl_app_border_011.rb
564
570
  - integrations/expected/342_streams.out
565
571
  - integrations/expected/dsl_app_001.out
566
572
  - integrations/expected/dsl_app_002.out
@@ -585,9 +591,16 @@ files:
585
591
  - integrations/expected/dsl_app_border_003.out
586
592
  - integrations/expected/dsl_app_border_004.out
587
593
  - integrations/expected/dsl_app_border_005.out
594
+ - integrations/expected/dsl_app_border_006.out
595
+ - integrations/expected/dsl_app_border_007.out
596
+ - integrations/expected/dsl_app_border_008.out
597
+ - integrations/expected/dsl_app_border_009.out
598
+ - integrations/expected/dsl_app_border_010.out
599
+ - integrations/expected/dsl_app_border_011.out
588
600
  - integrations/support/test_interface.rb
589
601
  - integrations/support/test_interface_021.rb
590
602
  - integrations/support/test_interface_022.rb
603
+ - integrations/test_runner.rb
591
604
  - integrations/test_runner.sh
592
605
  - lib/vedeu.rb
593
606
  - lib/vedeu/all.rb