vedeu 0.6.16 → 0.6.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vedeu/dsl/interface.rb +2 -2
- data/lib/vedeu/models/focus.rb +1 -1
- data/lib/vedeu/output/presentation/style.rb +2 -6
- data/lib/vedeu/output/refresh/refresh.rb +1 -1
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/cursors/refresh_test.rb +3 -3
- data/test/lib/vedeu/cursors/repository_test.rb +1 -1
- data/test/lib/vedeu/output/refresh/refresh_test.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dedbb9669f830e16e76d6cc1fd36e663a8df852
|
4
|
+
data.tar.gz: c70f1cee9ddf254058e4f321353cd56bf522c6ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52bf53d2726657214caa83cec14af8d55b579c15f7722d0edfa7b8ec1510ed14b604043d33d2ca54098f66e80f2a439252d31de07ceb229513e95d5f13b9c13e
|
7
|
+
data.tar.gz: 45629d5e4229bd41d64eb0020f1e7093d4725a28dd8e3aaee4f4f8391d2616e361d7d0c401633a98a311054c5a76f511d5d52209391f06c5a624c30b5059a51e
|
data/lib/vedeu/dsl/interface.rb
CHANGED
@@ -65,7 +65,7 @@ module Vedeu
|
|
65
65
|
#
|
66
66
|
# @return [Vedeu::Cursors::Cursor]
|
67
67
|
def add_cursor!(name)
|
68
|
-
Vedeu::Cursors::Cursor.
|
68
|
+
Vedeu::Cursors::Cursor.store(name: name)
|
69
69
|
end
|
70
70
|
|
71
71
|
# Registers interface name in focus list unless already
|
@@ -130,7 +130,7 @@ module Vedeu
|
|
130
130
|
def cursor(value = true)
|
131
131
|
boolean = value ? true : false
|
132
132
|
|
133
|
-
Vedeu::Cursors::Cursor.
|
133
|
+
Vedeu::Cursors::Cursor.store(name: model.name, visible: boolean)
|
134
134
|
end
|
135
135
|
|
136
136
|
# Set the cursor to visible for the interface.
|
data/lib/vedeu/models/focus.rb
CHANGED
@@ -27,13 +27,9 @@ module Vedeu
|
|
27
27
|
# @param value [Object|NilClass]
|
28
28
|
# @return [Object]
|
29
29
|
def self.coerce(value)
|
30
|
-
if value.is_a?(self)
|
31
|
-
value
|
30
|
+
return value if value.is_a?(self)
|
32
31
|
|
33
|
-
|
34
|
-
new(value)
|
35
|
-
|
36
|
-
end
|
32
|
+
new(value)
|
37
33
|
end
|
38
34
|
|
39
35
|
# Return a new instance of Vedeu::Presentation::Style.
|
data/lib/vedeu/version.rb
CHANGED
@@ -26,9 +26,9 @@ module Vedeu
|
|
26
26
|
y 1
|
27
27
|
yn 3
|
28
28
|
end
|
29
|
-
Vedeu::Cursors::Cursor.
|
30
|
-
|
31
|
-
|
29
|
+
Vedeu::Cursors::Cursor.store(name: 'refresh_cursor',
|
30
|
+
ox: ox,
|
31
|
+
oy: oy)
|
32
32
|
|
33
33
|
Vedeu::Terminal.stubs(:output).returns(expected)
|
34
34
|
|
@@ -18,7 +18,7 @@ module Vedeu
|
|
18
18
|
Vedeu::Models::Focus.reset
|
19
19
|
Vedeu.cursors.reset
|
20
20
|
Vedeu::Models::Focus.add('Vedeu.cursor')
|
21
|
-
Vedeu::Cursors::Cursor.
|
21
|
+
Vedeu::Cursors::Cursor.store(name: 'Vedeu.cursor')
|
22
22
|
end
|
23
23
|
|
24
24
|
it { subject.must_be_instance_of(Vedeu::Cursors::Cursor) }
|
@@ -31,7 +31,8 @@ module Vedeu
|
|
31
31
|
before { Vedeu.interfaces.stubs(:zindexed).returns(interfaces) }
|
32
32
|
|
33
33
|
it {
|
34
|
-
Vedeu.expects(:trigger).with(:
|
34
|
+
Vedeu.expects(:trigger).with(:_refresh_view_,
|
35
|
+
'Vedeu::Output::Refresh')
|
35
36
|
subject
|
36
37
|
}
|
37
38
|
|