fusuma-plugin-wmctrl 0.4.1 → 0.4.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8654418db5d6e428e786f5d8632ba00a302a2a4fc9cc78c89cbcdaca5dd12a2
|
4
|
+
data.tar.gz: d12bb4124ad144c82e3c30302d60a64261e7f612e783a6cb26e50ded61f90d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 902bfc1063f1a23f5a0ad03420998ef7e04b51f0e5e9f31dc1c7674d9f676ec40741311d8442642639a834ec421766d5b47b57ab206ca140470348339692eb51
|
7
|
+
data.tar.gz: 931711256a8f0a853f35352b018dab803f4fe5cc81637e5796a2d0c5ba30b7274680835d2a026cacef4c2d39db4e174065d7c9f6b526301385b449d1be7ebaac
|
@@ -42,8 +42,8 @@ module Fusuma
|
|
42
42
|
pid = rand(20)
|
43
43
|
allow(POSIX::Spawn)
|
44
44
|
.to receive(:spawn).with(@executor.search_command(@event))
|
45
|
-
|
46
|
-
|
45
|
+
.and_return pid
|
46
|
+
|
47
47
|
expect(Process).to receive(:detach).with(pid)
|
48
48
|
|
49
49
|
@executor.execute(@event)
|
@@ -64,7 +64,6 @@ module Fusuma
|
|
64
64
|
end
|
65
65
|
|
66
66
|
describe '#search_command' do
|
67
|
-
|
68
67
|
context "when workspace: 'prev'" do
|
69
68
|
around do |example|
|
70
69
|
ConfigHelper.load_config_yml = <<~CONFIG
|
@@ -339,7 +338,6 @@ module Fusuma
|
|
339
338
|
end
|
340
339
|
|
341
340
|
describe 'wrap_navigation: true' do
|
342
|
-
|
343
341
|
context "when workspace: 'prev' and current workspace 0" do
|
344
342
|
around do |example|
|
345
343
|
ConfigHelper.load_config_yml = <<~CONFIG
|
@@ -347,25 +345,25 @@ module Fusuma
|
|
347
345
|
1:
|
348
346
|
direction:
|
349
347
|
workspace: 'prev'
|
350
|
-
plugin:
|
348
|
+
plugin:
|
351
349
|
executors:
|
352
350
|
wmctrl_executor:
|
353
351
|
wrap-navigation: true
|
354
352
|
CONFIG
|
355
|
-
|
353
|
+
|
356
354
|
example.run
|
357
|
-
|
355
|
+
|
358
356
|
Config.custom_path = nil
|
359
357
|
end
|
360
358
|
|
361
359
|
it 'should return wmctrl command with an index last workspace' do
|
362
360
|
current_workspace = 0
|
363
361
|
total_workspaces = 3
|
364
|
-
|
362
|
+
|
365
363
|
allow(WmctrlExecutor::Workspace)
|
366
364
|
.to receive(:workspace_values)
|
367
365
|
.and_return([current_workspace, total_workspaces])
|
368
|
-
|
366
|
+
|
369
367
|
expect(@executor.search_command(@event))
|
370
368
|
.to match(/wmctrl -s #{total_workspaces - 1}/)
|
371
369
|
end
|
@@ -378,21 +376,21 @@ module Fusuma
|
|
378
376
|
1:
|
379
377
|
direction:
|
380
378
|
workspace: 'next'
|
381
|
-
plugin:
|
379
|
+
plugin:
|
382
380
|
executors:
|
383
381
|
wmctrl_executor:
|
384
382
|
wrap-navigation: true
|
385
383
|
CONFIG
|
386
|
-
|
384
|
+
|
387
385
|
example.run
|
388
|
-
|
386
|
+
|
389
387
|
Config.custom_path = nil
|
390
388
|
end
|
391
|
-
|
389
|
+
|
392
390
|
it 'should return wmctrl command with an index of first workspace' do
|
393
391
|
current_workspace = 3
|
394
392
|
total_workspaces = 4
|
395
|
-
|
393
|
+
|
396
394
|
allow(WmctrlExecutor::Workspace)
|
397
395
|
.to receive(:workspace_values)
|
398
396
|
.and_return([current_workspace, total_workspaces])
|
@@ -401,7 +399,7 @@ module Fusuma
|
|
401
399
|
.to match(/wmctrl -s 0/)
|
402
400
|
end
|
403
401
|
end
|
404
|
-
|
402
|
+
|
405
403
|
context "when window: 'prev' and current workspace has index 0" do
|
406
404
|
around do |example|
|
407
405
|
ConfigHelper.load_config_yml = <<~CONFIG
|
@@ -409,21 +407,21 @@ module Fusuma
|
|
409
407
|
1:
|
410
408
|
direction:
|
411
409
|
window: 'prev'
|
412
|
-
plugin:
|
410
|
+
plugin:
|
413
411
|
executors:
|
414
412
|
wmctrl_executor:
|
415
413
|
wrap-navigation: true
|
416
414
|
CONFIG
|
417
|
-
|
415
|
+
|
418
416
|
example.run
|
419
|
-
|
417
|
+
|
420
418
|
Config.custom_path = nil
|
421
419
|
end
|
422
|
-
|
420
|
+
|
423
421
|
it 'should return wmctrl command with index of last workspace' do
|
424
422
|
current_workspace = 0
|
425
423
|
total_workspaces = 5
|
426
|
-
|
424
|
+
|
427
425
|
allow(WmctrlExecutor::Workspace)
|
428
426
|
.to receive(:workspace_values)
|
429
427
|
.and_return([current_workspace, total_workspaces])
|
@@ -434,7 +432,7 @@ module Fusuma
|
|
434
432
|
.to match(/wmctrl -s #{total_workspaces - 1}/)
|
435
433
|
end
|
436
434
|
end
|
437
|
-
|
435
|
+
|
438
436
|
context "when window: 'next' and current workspace is last" do
|
439
437
|
around do |example|
|
440
438
|
ConfigHelper.load_config_yml = <<~CONFIG
|
@@ -442,21 +440,21 @@ module Fusuma
|
|
442
440
|
1:
|
443
441
|
direction:
|
444
442
|
window: 'next'
|
445
|
-
plugin:
|
443
|
+
plugin:
|
446
444
|
executors:
|
447
445
|
wmctrl_executor:
|
448
446
|
wrap-navigation: true
|
449
447
|
CONFIG
|
450
|
-
|
448
|
+
|
451
449
|
example.run
|
452
|
-
|
450
|
+
|
453
451
|
Config.custom_path = nil
|
454
452
|
end
|
455
|
-
|
453
|
+
|
456
454
|
it 'should return wmctrl command with index of first workspace' do
|
457
455
|
current_workspace = 4
|
458
456
|
total_workspaces = 5
|
459
|
-
|
457
|
+
|
460
458
|
allow(WmctrlExecutor::Workspace)
|
461
459
|
.to receive(:workspace_values)
|
462
460
|
.and_return([current_workspace, total_workspaces])
|
@@ -467,7 +465,6 @@ module Fusuma
|
|
467
465
|
.to match(/wmctrl -s 0/)
|
468
466
|
end
|
469
467
|
end
|
470
|
-
|
471
468
|
end
|
472
469
|
end
|
473
470
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fusuma-plugin-wmctrl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iberianpig
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fusuma
|