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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9013b07b7255d5eb249cca53f35155a08826eda5
4
- data.tar.gz: 106b0dfa3ff9f754d3e38408914b0198e110e15d
3
+ metadata.gz: 1dedbb9669f830e16e76d6cc1fd36e663a8df852
4
+ data.tar.gz: c70f1cee9ddf254058e4f321353cd56bf522c6ad
5
5
  SHA512:
6
- metadata.gz: bc62cbdcc1109ebadae16b6a8f104530405102d90b80ac501756b4613abc62d8420d9bdb15c8494da54f212a0d1d49fd96dadf38ef66b2e730eace400dd2d11c
7
- data.tar.gz: d151dc091e3d29dad7d30e43a86e05a51f5d5662a1b1d6c23d6e81e405f08658b44a6bb750baf4d36cee2723f37515834734534dec4a3bf1403cd7976c3a55b7
6
+ metadata.gz: 52bf53d2726657214caa83cec14af8d55b579c15f7722d0edfa7b8ec1510ed14b604043d33d2ca54098f66e80f2a439252d31de07ceb229513e95d5f13b9c13e
7
+ data.tar.gz: 45629d5e4229bd41d64eb0020f1e7093d4725a28dd8e3aaee4f4f8391d2616e361d7d0c401633a98a311054c5a76f511d5d52209391f06c5a624c30b5059a51e
@@ -65,7 +65,7 @@ module Vedeu
65
65
  #
66
66
  # @return [Vedeu::Cursors::Cursor]
67
67
  def add_cursor!(name)
68
- Vedeu::Cursors::Cursor.new(name: name).store
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.new(name: model.name, visible: boolean).store
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.
@@ -170,7 +170,7 @@ module Vedeu
170
170
  #
171
171
  # @return [Array]
172
172
  def refresh
173
- Vedeu.trigger(:_refresh_, current)
173
+ Vedeu.trigger(:_refresh_view_, current)
174
174
  end
175
175
 
176
176
  # Returns a collection of the names of all the registered
@@ -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
- else
34
- new(value)
35
-
36
- end
32
+ new(value)
37
33
  end
38
34
 
39
35
  # Return a new instance of Vedeu::Presentation::Style.
@@ -23,7 +23,7 @@ module Vedeu
23
23
  def all
24
24
  Vedeu.timer('Refreshing all') do
25
25
  Vedeu.interfaces.zindexed.each do |interface|
26
- Vedeu.trigger(:_refresh_, interface.name)
26
+ Vedeu.trigger(:_refresh_view_, interface.name)
27
27
  end
28
28
  end
29
29
  end
data/lib/vedeu/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Vedeu
2
2
 
3
3
  # The current version of Vedeu.
4
- VERSION = '0.6.16'
4
+ VERSION = '0.6.17'
5
5
 
6
6
  end
@@ -26,9 +26,9 @@ module Vedeu
26
26
  y 1
27
27
  yn 3
28
28
  end
29
- Vedeu::Cursors::Cursor.new(name: 'refresh_cursor',
30
- ox: ox,
31
- oy: oy).store
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.new(name: 'Vedeu.cursor').store
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(:_refresh_, 'Vedeu::Output::Refresh')
34
+ Vedeu.expects(:trigger).with(:_refresh_view_,
35
+ 'Vedeu::Output::Refresh')
35
36
  subject
36
37
  }
37
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vedeu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.16
4
+ version: 0.6.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Laking