uh-layout 0.2.2 → 0.2.3

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: 8bb65a2c71c6948855c070300fbb8443d885b386
4
- data.tar.gz: adfd597c14c3a6cb6e96b08f5e5e06605b38dac9
3
+ metadata.gz: c6b79e33e24afa90cb3ac6e5164d8a4603c18da5
4
+ data.tar.gz: d6ffed19ae70a74ea34b95e47c4b1ab1aec61435
5
5
  SHA512:
6
- metadata.gz: 4899027dd185969f9cc7bcbaefaa68133017aa628b54489a72700a00a15ee78913bd49741f8a6b7a7ae0a280bcaf81d484a15f246398dd5932bf77e3552b8a7f
7
- data.tar.gz: 0a34f78194a89f3a4aae7e4ef15efa540d9c39ba77bd078f48a9dfc7f01e7c6b9ce526b4ac938ed77f7e3e44897b7114889feb0ad2fdb242cbc3c6ab479e4a0c
6
+ metadata.gz: e61af32c594c778693f78bee48d76ab19183c0a30944f614ad158a15808f446211f16ee1b537de3fd418af79098d7730f9c7b7f14638941b591df87ba1253c37
7
+ data.tar.gz: ff18fa02b66dd28f38cac8072d8d6749accc54dc675b923cd55861dfc0ea564bf89c541cb8ad432d5e0394430430a4882f863fb6301b1914179de89eb110d0fd
data/.travis.yml CHANGED
@@ -7,6 +7,7 @@ rvm:
7
7
  - ruby-head
8
8
  - rbx-2
9
9
  matrix:
10
+ fast_finish: true
10
11
  allow_failures:
11
12
  - rvm:
12
13
  - ruby-head
@@ -1,5 +1,5 @@
1
1
  module Uh
2
2
  class Layout
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
5
5
  end
data/lib/uh/layout.rb CHANGED
@@ -86,10 +86,14 @@ module Uh
86
86
  update_widgets
87
87
  end
88
88
 
89
- def update client
89
+ def update(client)
90
90
  update_widgets unless client.hidden?
91
91
  end
92
92
 
93
+ def expose(window)
94
+ update_widgets
95
+ end
96
+
93
97
  def handle_screen_sel(direction)
94
98
  screens.sel direction
95
99
  current_client.focus if current_client
@@ -148,6 +148,13 @@ module Uh
148
148
  end
149
149
  end
150
150
 
151
+ describe '#expose' do
152
+ it 'updates the widgets' do
153
+ expect(layout).to receive :update_widgets
154
+ layout.expose :window
155
+ end
156
+ end
157
+
151
158
  describe '#handle_screen_sel' do
152
159
  it 'selects consecutive screen in given direction' do
153
160
  expect { layout.handle_screen_sel :succ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uh-layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Jouan