clicker 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/clicker/program.rb +7 -14
- data/lib/clicker/version.rb +1 -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: 6945c99ea0c8744bad04db4a506b1461e0ab34b7
|
4
|
+
data.tar.gz: fc07e55227a5f9f865e173594d963ec8df8c7719
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14e7d7745abe1aea2752a5258cb2f2ff326c8b84ee597eb5cd8017b1ba694cc3a7ee1ee038e1bf1b924ea9a1fca01c4860e57f9c60822945a88107e748b321a5
|
7
|
+
data.tar.gz: 84c1358571a8483ec92503cc68a7901d2eb5f10004273bc001ffa486c08862f935b2695d7ab2e6358f51ed84011e45085f3807a88e59e83b33c247ca266890f6
|
data/README.md
CHANGED
@@ -42,6 +42,13 @@
|
|
42
42
|
|
43
43
|
終了させたい場合は、`clicker --stop` としてください。
|
44
44
|
|
45
|
+
## FAQ
|
46
|
+
|
47
|
+
Q: 音がラグって気持ち良くありません。
|
48
|
+
|
49
|
+
A: PulseAudio を使っているなら `/etc/pulse/daemon.conf` で
|
50
|
+
`default-fragment-size-msec` の値を下げることを考慮してください。
|
51
|
+
|
45
52
|
## 貢献する
|
46
53
|
|
47
54
|
https://github.com/plonk/clicker にリポジトリがあります。
|
data/lib/clicker/program.rb
CHANGED
@@ -54,20 +54,13 @@ class Program
|
|
54
54
|
when :stop
|
55
55
|
if @lock.locked?
|
56
56
|
owner = @lock.owner
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
break
|
65
|
-
end
|
66
|
-
sleep 1
|
67
|
-
end
|
68
|
-
unless success
|
69
|
-
STDERR.puts("Error: failed to unlock")
|
70
|
-
STDERR.puts("the lock file is at #{@lock.lock_file_path}.")
|
57
|
+
begin
|
58
|
+
Process.kill("TERM", owner)
|
59
|
+
STDERR.puts("SIGTERM has been sent to PID #{owner}.")
|
60
|
+
rescue Errno::ESRCH
|
61
|
+
STDERR.puts("Warning: Process (#{owner}) not found.")
|
62
|
+
STDERR.puts("Deleting the lock file.")
|
63
|
+
FileUtils.rm(@lock.lock_file_path)
|
71
64
|
end
|
72
65
|
else
|
73
66
|
STDERR.puts("no instance is running.")
|
data/lib/clicker/version.rb
CHANGED