vedeu 0.6.22 → 0.6.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +3 -3
- data/docs/events/refresh.md +5 -0
- data/lib/vedeu/bindings/refresh.rb +8 -0
- data/lib/vedeu/borders/all.rb +1 -1
- data/lib/vedeu/borders/border.rb +1 -1
- data/lib/vedeu/borders/null.rb +5 -0
- data/lib/vedeu/borders/{render.rb → refresh.rb} +23 -16
- data/lib/vedeu/buffers/refresh.rb +5 -2
- data/lib/vedeu/groups/clear.rb +1 -0
- data/lib/vedeu/models/views/view.rb +0 -2
- data/lib/vedeu/output/clear/interface.rb +1 -1
- data/lib/vedeu/output/compressor.rb +1 -1
- data/lib/vedeu/output/renderers/all.rb +0 -3
- data/lib/vedeu/output/viewport.rb +2 -1
- data/lib/vedeu/runtime/launcher.rb +1 -0
- data/lib/vedeu/runtime/main_loop.rb +2 -8
- data/lib/vedeu/terminal/buffer.rb +1 -1
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/bindings/refresh_test.rb +1 -0
- data/test/lib/vedeu/borders/border_test.rb +20 -18
- data/test/lib/vedeu/borders/{render_test.rb → refresh_test.rb} +8 -7
- data/test/lib/vedeu/buffers/refresh_test.rb +1 -1
- data/test/lib/vedeu/models/views/view_test.rb +0 -6
- data/test/lib/vedeu/output/viewport_test.rb +14 -4
- data/test/lib/vedeu/terminal/buffer_test.rb +0 -29
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4242ab9d58186c12c3f4884987b54da9740b138d
|
4
|
+
data.tar.gz: 9129f04bc359fa77f802414074136695417003f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 449cf59c90d7017af8b6558e59dcf077ec89cb935f750365e36d0ba8b36d6a09e75f07f329ea6ab7acfa5eeaab55b9f14a35613aaef72c39b45a3be71bf21be0
|
7
|
+
data.tar.gz: 723cd0a76e4d71187bd28390f61fef953fe1ed73de24b976a21eaff46928d595f0d5ab8682016dd29cebf9a2aac28aa062aa364f63798c9eac1f65a920327b36
|
data/.codeclimate.yml
CHANGED
data/docs/events/refresh.md
CHANGED
@@ -14,6 +14,11 @@ will be still refreshed in memory but not shown.
|
|
14
14
|
|
15
15
|
Vedeu.trigger(:_refresh_)
|
16
16
|
|
17
|
+
### :_refresh_border_
|
18
|
+
Will cause the named border to refresh.
|
19
|
+
|
20
|
+
Vedeu.trigger(:_refresh_border_, name)
|
21
|
+
|
17
22
|
### :_refresh_cursor_
|
18
23
|
Will cause the named cursor to refresh, or the cursor of the interface
|
19
24
|
which is currently in focus.
|
@@ -14,6 +14,7 @@ module Vedeu
|
|
14
14
|
# @return [TrueClass]
|
15
15
|
def setup!
|
16
16
|
refresh!
|
17
|
+
refresh_border!
|
17
18
|
refresh_cursor!
|
18
19
|
refresh_group!
|
19
20
|
refresh_view!
|
@@ -29,6 +30,13 @@ module Vedeu
|
|
29
30
|
Vedeu.bind(:_refresh_) { Vedeu::Output::Refresh.all }
|
30
31
|
end
|
31
32
|
|
33
|
+
# See {file:docs/events/refresh.md#\_refresh_border_}
|
34
|
+
def refresh_border!
|
35
|
+
Vedeu.bind(:_refresh_border_) do |name|
|
36
|
+
Vedeu::Borders::Refresh.by_name(name)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
32
40
|
# See {file:docs/events/refresh.md#\_refresh_cursor_}
|
33
41
|
def refresh_cursor!
|
34
42
|
Vedeu.bind(:_refresh_cursor_) do |name|
|
data/lib/vedeu/borders/all.rb
CHANGED
data/lib/vedeu/borders/border.rb
CHANGED
data/lib/vedeu/borders/null.rb
CHANGED
@@ -2,9 +2,9 @@ module Vedeu
|
|
2
2
|
|
3
3
|
module Borders
|
4
4
|
|
5
|
-
# Renders the
|
5
|
+
# Renders and refreshes the named border.
|
6
6
|
#
|
7
|
-
class
|
7
|
+
class Refresh
|
8
8
|
|
9
9
|
extend Forwardable
|
10
10
|
include Vedeu::Common
|
@@ -23,7 +23,6 @@ module Vedeu
|
|
23
23
|
:height,
|
24
24
|
:horizontal,
|
25
25
|
:left?,
|
26
|
-
:name,
|
27
26
|
:right?,
|
28
27
|
:style,
|
29
28
|
:title,
|
@@ -39,33 +38,41 @@ module Vedeu
|
|
39
38
|
:y,
|
40
39
|
:yn
|
41
40
|
|
41
|
+
# @example
|
42
|
+
# Vedeu.trigger(:_refresh_border_, name)
|
43
|
+
#
|
44
|
+
# @param name [String|Symbol] The name of the border to render.
|
42
45
|
# @return [Array<Array<Vedeu::Views::Char>>]
|
43
|
-
|
44
|
-
|
45
|
-
new(border).render
|
46
|
+
def self.by_name(name)
|
47
|
+
new(name).render
|
46
48
|
end
|
47
49
|
|
48
|
-
# Returns a new instance of Vedeu::Borders::
|
50
|
+
# Returns a new instance of Vedeu::Borders::Refresh.
|
49
51
|
#
|
50
|
-
# @param
|
51
|
-
# @return [Vedeu::Borders::
|
52
|
-
def initialize(
|
53
|
-
@
|
52
|
+
# @param name [String|Symbol]
|
53
|
+
# @return [Vedeu::Borders::Refresh]
|
54
|
+
def initialize(name)
|
55
|
+
@name = name
|
54
56
|
end
|
55
57
|
|
56
58
|
# @return [Array<Array<Vedeu::Views::Char>>]
|
57
59
|
def render
|
58
|
-
Vedeu::Output::Output.render(output) if enabled?
|
60
|
+
Vedeu::Output::Output.render(output) if enabled? && Vedeu.ready?
|
59
61
|
end
|
60
62
|
|
61
63
|
protected
|
62
64
|
|
63
|
-
# @!attribute [r]
|
64
|
-
# @return [
|
65
|
-
attr_reader :
|
65
|
+
# @!attribute [r] name
|
66
|
+
# @return [String|Symbol]
|
67
|
+
attr_reader :name
|
66
68
|
|
67
69
|
private
|
68
70
|
|
71
|
+
# @return [Vedeu::Borders::Border]
|
72
|
+
def border
|
73
|
+
@border ||= Vedeu.borders.by_name(name)
|
74
|
+
end
|
75
|
+
|
69
76
|
# @return [Array<Array<Vedeu::Views::Char>>]
|
70
77
|
def output
|
71
78
|
Vedeu.timer("Bordering: '#{name}'") do
|
@@ -348,7 +355,7 @@ module Vedeu
|
|
348
355
|
caption.chomp.slice(0..(width - 5))
|
349
356
|
end
|
350
357
|
|
351
|
-
end #
|
358
|
+
end # Refresh
|
352
359
|
|
353
360
|
end # Borders
|
354
361
|
|
@@ -40,10 +40,13 @@ module Vedeu
|
|
40
40
|
|
41
41
|
# @return [Array|Vedeu::Error::ModelNotFound]
|
42
42
|
def by_name
|
43
|
+
Vedeu.trigger(:_clear_view_content_, name)
|
44
|
+
|
43
45
|
Vedeu.timer("Refresh Buffer: '#{name}'") do
|
44
46
|
Vedeu.buffers.by_name(name).render
|
45
|
-
|
46
|
-
|
47
|
+
end
|
48
|
+
|
49
|
+
Vedeu.trigger(:_refresh_border_, name) unless content_only?
|
47
50
|
end
|
48
51
|
|
49
52
|
protected
|
data/lib/vedeu/groups/clear.rb
CHANGED
@@ -44,7 +44,7 @@ module Vedeu
|
|
44
44
|
#
|
45
45
|
# @return [Array<Array<String>>|NilClass]
|
46
46
|
def render
|
47
|
-
Vedeu::Output::Output.render(output) if visible?
|
47
|
+
Vedeu::Output::Output.render(output) if visible? && Vedeu.ready?
|
48
48
|
end
|
49
49
|
|
50
50
|
# Returns a string representation of the viewport.
|
@@ -63,6 +63,7 @@ module Vedeu
|
|
63
63
|
|
64
64
|
private
|
65
65
|
|
66
|
+
# @return [Array<Array<Vedeu::Views::Char>>]
|
66
67
|
def output
|
67
68
|
Vedeu.timer("Rendering: '#{name}'") do
|
68
69
|
out = []
|
@@ -22,15 +22,9 @@ module Vedeu
|
|
22
22
|
@loop = true
|
23
23
|
|
24
24
|
while @loop
|
25
|
-
|
26
|
-
|
27
|
-
Vedeu.trigger(:_hide_cursor_)
|
25
|
+
Vedeu.trigger(:_refresh_cursor_, Vedeu.focus)
|
28
26
|
|
29
|
-
|
30
|
-
message: 'MainLoop rendering terminal buffer.')
|
31
|
-
Vedeu::Terminal::Buffer.render
|
32
|
-
|
33
|
-
Vedeu.trigger(:_show_cursor_)
|
27
|
+
yield
|
34
28
|
|
35
29
|
safe_exit_point!
|
36
30
|
end
|
@@ -38,7 +38,7 @@ module Vedeu
|
|
38
38
|
|
39
39
|
# @return [Array<Array<Vedeu::Models::Cell>>]
|
40
40
|
def empty_buffer
|
41
|
-
Array.new(Vedeu.height) do |y|
|
41
|
+
@empty_buffer ||= Array.new(Vedeu.height) do |y|
|
42
42
|
Array.new(Vedeu.width) do |x|
|
43
43
|
Vedeu::Models::Cell.new(position: [y + 1, x + 1])
|
44
44
|
end
|
data/lib/vedeu/version.rb
CHANGED
@@ -8,6 +8,7 @@ module Vedeu
|
|
8
8
|
|
9
9
|
context 'the system events needed by Vedeu to run are defined' do
|
10
10
|
it { Vedeu.bound?(:_refresh_).must_equal(true) }
|
11
|
+
it { Vedeu.bound?(:_refresh_border_).must_equal(true) }
|
11
12
|
it { Vedeu.bound?(:_refresh_cursor_).must_equal(true) }
|
12
13
|
it { Vedeu.bound?(:_refresh_group_).must_equal(true) }
|
13
14
|
it { Vedeu.bound?(:_refresh_view_).must_equal(true) }
|
@@ -17,7 +17,7 @@ module Vedeu
|
|
17
17
|
colour: nil,
|
18
18
|
enabled: false,
|
19
19
|
horizontal: 'q',
|
20
|
-
name:
|
20
|
+
name: _name,
|
21
21
|
repository: Vedeu.borders,
|
22
22
|
show_bottom: true,
|
23
23
|
show_left: true,
|
@@ -31,6 +31,7 @@ module Vedeu
|
|
31
31
|
}
|
32
32
|
}
|
33
33
|
let(:geometry) {}
|
34
|
+
let(:_name) { 'borders' }
|
34
35
|
|
35
36
|
describe '.build' do
|
36
37
|
subject {
|
@@ -96,7 +97,7 @@ module Vedeu
|
|
96
97
|
bottom_right: 'D',
|
97
98
|
enabled: enabled,
|
98
99
|
horizontal: 'H',
|
99
|
-
name:
|
100
|
+
name: _name,
|
100
101
|
show_top: top,
|
101
102
|
show_bottom: bottom,
|
102
103
|
show_left: left,
|
@@ -106,13 +107,14 @@ module Vedeu
|
|
106
107
|
vertical: 'V'
|
107
108
|
}
|
108
109
|
}
|
110
|
+
let(:_name) { 'Border#bxbxnbybyn' }
|
109
111
|
let(:enabled) { false }
|
110
112
|
let(:top) { false }
|
111
113
|
let(:bottom) { false }
|
112
114
|
let(:left) { false }
|
113
115
|
let(:right) { false }
|
114
116
|
let(:geometry) {
|
115
|
-
Vedeu::Geometry::Geometry.new(name:
|
117
|
+
Vedeu::Geometry::Geometry.new(name: _name,
|
116
118
|
x: 2,
|
117
119
|
xn: 6,
|
118
120
|
y: 2,
|
@@ -212,7 +214,7 @@ module Vedeu
|
|
212
214
|
|
213
215
|
describe '#width' do
|
214
216
|
let(:geometry) {
|
215
|
-
Vedeu::Geometry::Geometry.new(name:
|
217
|
+
Vedeu::Geometry::Geometry.new(name: _name, width: 8)
|
216
218
|
}
|
217
219
|
|
218
220
|
before { Vedeu.geometries.stubs(:by_name).returns(geometry) }
|
@@ -230,7 +232,7 @@ module Vedeu
|
|
230
232
|
let(:attributes) {
|
231
233
|
{
|
232
234
|
enabled: true,
|
233
|
-
name:
|
235
|
+
name: _name,
|
234
236
|
}
|
235
237
|
}
|
236
238
|
|
@@ -241,7 +243,7 @@ module Vedeu
|
|
241
243
|
let(:attributes) {
|
242
244
|
{
|
243
245
|
enabled: true,
|
244
|
-
name:
|
246
|
+
name: _name,
|
245
247
|
show_left: false
|
246
248
|
}
|
247
249
|
}
|
@@ -253,7 +255,7 @@ module Vedeu
|
|
253
255
|
let(:attributes) {
|
254
256
|
{
|
255
257
|
enabled: true,
|
256
|
-
name:
|
258
|
+
name: _name,
|
257
259
|
show_left: false,
|
258
260
|
show_right: false
|
259
261
|
}
|
@@ -266,7 +268,7 @@ module Vedeu
|
|
266
268
|
|
267
269
|
describe '#height' do
|
268
270
|
let(:geometry) {
|
269
|
-
Vedeu::Geometry::Geometry.new(name:
|
271
|
+
Vedeu::Geometry::Geometry.new(name: _name, height: 5)
|
270
272
|
}
|
271
273
|
|
272
274
|
before { Vedeu.geometries.stubs(:by_name).returns(geometry) }
|
@@ -284,7 +286,7 @@ module Vedeu
|
|
284
286
|
let(:attributes) {
|
285
287
|
{
|
286
288
|
enabled: true,
|
287
|
-
name:
|
289
|
+
name: _name,
|
288
290
|
}
|
289
291
|
}
|
290
292
|
|
@@ -295,7 +297,7 @@ module Vedeu
|
|
295
297
|
let(:attributes) {
|
296
298
|
{
|
297
299
|
enabled: true,
|
298
|
-
name:
|
300
|
+
name: _name,
|
299
301
|
show_top: false
|
300
302
|
}
|
301
303
|
}
|
@@ -307,7 +309,7 @@ module Vedeu
|
|
307
309
|
let(:attributes) {
|
308
310
|
{
|
309
311
|
enabled: true,
|
310
|
-
name:
|
312
|
+
name: _name,
|
311
313
|
show_top: false,
|
312
314
|
show_bottom: false
|
313
315
|
}
|
@@ -327,7 +329,7 @@ module Vedeu
|
|
327
329
|
let(:attributes) {
|
328
330
|
{
|
329
331
|
enabled: true,
|
330
|
-
name:
|
332
|
+
name: _name,
|
331
333
|
}
|
332
334
|
}
|
333
335
|
|
@@ -344,7 +346,7 @@ module Vedeu
|
|
344
346
|
let(:attributes) {
|
345
347
|
{
|
346
348
|
enabled: true,
|
347
|
-
name:
|
349
|
+
name: _name,
|
348
350
|
show_bottom: false,
|
349
351
|
}
|
350
352
|
}
|
@@ -362,7 +364,7 @@ module Vedeu
|
|
362
364
|
let(:attributes) {
|
363
365
|
{
|
364
366
|
enabled: true,
|
365
|
-
name:
|
367
|
+
name: _name,
|
366
368
|
show_left: false,
|
367
369
|
}
|
368
370
|
}
|
@@ -380,7 +382,7 @@ module Vedeu
|
|
380
382
|
let(:attributes) {
|
381
383
|
{
|
382
384
|
enabled: true,
|
383
|
-
name:
|
385
|
+
name: _name,
|
384
386
|
show_right: false,
|
385
387
|
}
|
386
388
|
}
|
@@ -398,7 +400,7 @@ module Vedeu
|
|
398
400
|
let(:attributes) {
|
399
401
|
{
|
400
402
|
enabled: true,
|
401
|
-
name:
|
403
|
+
name: _name,
|
402
404
|
show_top: false,
|
403
405
|
}
|
404
406
|
}
|
@@ -408,12 +410,12 @@ module Vedeu
|
|
408
410
|
end
|
409
411
|
|
410
412
|
describe '#render' do
|
411
|
-
before { Vedeu
|
413
|
+
before { Vedeu.stubs(:trigger).with(:_refresh_border_, _name) }
|
412
414
|
|
413
415
|
subject { instance.render }
|
414
416
|
|
415
417
|
it {
|
416
|
-
Vedeu
|
418
|
+
Vedeu.expects(:trigger).with(:_refresh_border_, _name)
|
417
419
|
subject
|
418
420
|
}
|
419
421
|
end
|
@@ -4,10 +4,10 @@ module Vedeu
|
|
4
4
|
|
5
5
|
module Borders
|
6
6
|
|
7
|
-
describe
|
7
|
+
describe Refresh do
|
8
8
|
|
9
|
-
let(:described) { Vedeu::Borders::
|
10
|
-
let(:instance) { described.new(
|
9
|
+
let(:described) { Vedeu::Borders::Refresh }
|
10
|
+
let(:instance) { described.new(_name) }
|
11
11
|
let(:border) {
|
12
12
|
Vedeu::Borders::Border.new(enabled: enabled,
|
13
13
|
name: _name,
|
@@ -20,7 +20,7 @@ module Vedeu
|
|
20
20
|
}
|
21
21
|
let(:visible) { false }
|
22
22
|
let(:enabled) { false }
|
23
|
-
let(:_name) { 'Vedeu::
|
23
|
+
let(:_name) { 'Vedeu::Borders::Refresh' }
|
24
24
|
let(:title) {}
|
25
25
|
let(:caption) {}
|
26
26
|
let(:show_top) { true }
|
@@ -30,14 +30,14 @@ module Vedeu
|
|
30
30
|
|
31
31
|
describe '#initialize' do
|
32
32
|
it { instance.must_be_instance_of(described) }
|
33
|
-
it { instance.instance_variable_get('@
|
33
|
+
it { instance.instance_variable_get('@name').must_equal(_name) }
|
34
34
|
end
|
35
35
|
|
36
36
|
describe '#render' do
|
37
37
|
it { instance.must_respond_to(:render) }
|
38
38
|
end
|
39
39
|
|
40
|
-
describe '.
|
40
|
+
describe '.by_name' do
|
41
41
|
let(:geometry) {
|
42
42
|
Vedeu::Geometry::Geometry.new(name: _name, x: 1, xn: 7, y: 1, yn: 4)
|
43
43
|
}
|
@@ -45,11 +45,12 @@ module Vedeu
|
|
45
45
|
Vedeu::Models::Interface.new(name: _name, visible: true)
|
46
46
|
}
|
47
47
|
before do
|
48
|
+
Vedeu.borders.stubs(:by_name).returns(border)
|
48
49
|
Vedeu.geometries.stubs(:by_name).returns(geometry)
|
49
50
|
Vedeu.interfaces.stubs(:by_name).returns(interface)
|
50
51
|
end
|
51
52
|
|
52
|
-
subject { described.
|
53
|
+
subject { described.by_name(_name) }
|
53
54
|
|
54
55
|
context 'when the border is enabled' do
|
55
56
|
let(:enabled) { true }
|
@@ -61,17 +61,11 @@ module Vedeu
|
|
61
61
|
|
62
62
|
describe '#render' do
|
63
63
|
before do
|
64
|
-
Vedeu.stubs(:trigger).with(:_clear_view_content_, _name)
|
65
64
|
Vedeu::Output::Viewport.stubs(:render).with(instance)
|
66
65
|
end
|
67
66
|
|
68
67
|
subject { instance.render }
|
69
68
|
|
70
|
-
it {
|
71
|
-
Vedeu.expects(:trigger).with(:_clear_view_content_, _name)
|
72
|
-
subject
|
73
|
-
}
|
74
|
-
|
75
69
|
it {
|
76
70
|
Vedeu::Output::Viewport.expects(:render).with(instance)
|
77
71
|
subject
|
@@ -25,6 +25,7 @@ module Vedeu
|
|
25
25
|
Vedeu::Models::Interface.new(style: nil, visible: visible)
|
26
26
|
}
|
27
27
|
let(:geometry) { Vedeu::Geometry::Geometry.new(height: 3, width: 3) }
|
28
|
+
let(:ready) { true }
|
28
29
|
|
29
30
|
before do
|
30
31
|
Vedeu.interfaces.stubs(:by_name).returns(interface)
|
@@ -40,15 +41,24 @@ module Vedeu
|
|
40
41
|
describe '.render' do
|
41
42
|
before do
|
42
43
|
Vedeu::Output::Output.stubs(:render)
|
44
|
+
Vedeu.stubs(:ready?).returns(ready)
|
43
45
|
end
|
44
46
|
|
45
47
|
subject { described.render(view) }
|
46
48
|
|
47
49
|
context 'when the interface is visible' do
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
50
|
+
context 'and Vedeu is ready' do
|
51
|
+
it {
|
52
|
+
Vedeu::Output::Output.expects(:render)
|
53
|
+
subject
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
context 'but Vedeu is not ready' do
|
58
|
+
let(:ready) { false }
|
59
|
+
|
60
|
+
it { subject.must_equal(nil) }
|
61
|
+
end
|
52
62
|
end
|
53
63
|
|
54
64
|
context 'when the interface is not visible' do
|
@@ -18,19 +18,9 @@ module Vedeu
|
|
18
18
|
end
|
19
19
|
|
20
20
|
describe '#buffer' do
|
21
|
-
let(:expected) {
|
22
|
-
Array.new(Vedeu.height) do |y|
|
23
|
-
Array.new(Vedeu.width) do |x|
|
24
|
-
Vedeu::Models::Cell.new(position: [y + 1, x + 1])
|
25
|
-
end
|
26
|
-
end
|
27
|
-
}
|
28
|
-
|
29
21
|
subject { described.buffer }
|
30
22
|
|
31
23
|
it { subject.must_be_instance_of(Array) }
|
32
|
-
it { described.instance_variable_get('@output').must_equal(expected) }
|
33
|
-
it { subject.must_equal(expected) }
|
34
24
|
end
|
35
25
|
|
36
26
|
describe '#clear' do
|
@@ -57,18 +47,9 @@ module Vedeu
|
|
57
47
|
end
|
58
48
|
|
59
49
|
describe '#empty_buffer' do
|
60
|
-
let(:expected) {
|
61
|
-
Array.new(height) do |y|
|
62
|
-
Array.new(width) do |x|
|
63
|
-
Vedeu::Models::Cell.new(position: [y + 1, x + 1])
|
64
|
-
end
|
65
|
-
end
|
66
|
-
}
|
67
|
-
|
68
50
|
subject { described.empty_buffer }
|
69
51
|
|
70
52
|
it { subject.must_be_instance_of(Array) }
|
71
|
-
it { subject.must_equal(expected) }
|
72
53
|
end
|
73
54
|
|
74
55
|
# describe '#output' do
|
@@ -121,19 +102,9 @@ module Vedeu
|
|
121
102
|
end
|
122
103
|
|
123
104
|
describe '#reset' do
|
124
|
-
let(:output) {
|
125
|
-
Array.new(height) do |y|
|
126
|
-
Array.new(width) do |x|
|
127
|
-
Vedeu::Models::Cell.new(position: [y + 1, x + 1])
|
128
|
-
end
|
129
|
-
end
|
130
|
-
}
|
131
|
-
|
132
105
|
subject { described.reset }
|
133
106
|
|
134
|
-
it { described.instance_variable_get('@output').must_equal(output) }
|
135
107
|
it { subject.must_be_instance_of(Array) }
|
136
|
-
it { subject.must_equal(output) }
|
137
108
|
end
|
138
109
|
|
139
110
|
describe '#write' do
|
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.
|
4
|
+
version: 0.6.23
|
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-10-
|
11
|
+
date: 2015-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -290,7 +290,7 @@ files:
|
|
290
290
|
- lib/vedeu/borders/border.rb
|
291
291
|
- lib/vedeu/borders/dsl.rb
|
292
292
|
- lib/vedeu/borders/null.rb
|
293
|
-
- lib/vedeu/borders/
|
293
|
+
- lib/vedeu/borders/refresh.rb
|
294
294
|
- lib/vedeu/borders/repository.rb
|
295
295
|
- lib/vedeu/buffers/all.rb
|
296
296
|
- lib/vedeu/buffers/buffer.rb
|
@@ -491,7 +491,7 @@ files:
|
|
491
491
|
- test/lib/vedeu/borders/border_test.rb
|
492
492
|
- test/lib/vedeu/borders/dsl_test.rb
|
493
493
|
- test/lib/vedeu/borders/null_test.rb
|
494
|
-
- test/lib/vedeu/borders/
|
494
|
+
- test/lib/vedeu/borders/refresh_test.rb
|
495
495
|
- test/lib/vedeu/borders/repository_test.rb
|
496
496
|
- test/lib/vedeu/buffers/buffer_test.rb
|
497
497
|
- test/lib/vedeu/buffers/null_test.rb
|
@@ -704,7 +704,7 @@ test_files:
|
|
704
704
|
- test/lib/vedeu/borders/border_test.rb
|
705
705
|
- test/lib/vedeu/borders/dsl_test.rb
|
706
706
|
- test/lib/vedeu/borders/null_test.rb
|
707
|
-
- test/lib/vedeu/borders/
|
707
|
+
- test/lib/vedeu/borders/refresh_test.rb
|
708
708
|
- test/lib/vedeu/borders/repository_test.rb
|
709
709
|
- test/lib/vedeu/buffers/buffer_test.rb
|
710
710
|
- test/lib/vedeu/buffers/null_test.rb
|