clicker 0.1.2 → 0.1.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: ea84096718d5bf96651f028213a16f458f827da5
4
- data.tar.gz: faa5d185de541b7ed94fb8b8f151fd29eb7b3ee5
3
+ metadata.gz: 6945c99ea0c8744bad04db4a506b1461e0ab34b7
4
+ data.tar.gz: fc07e55227a5f9f865e173594d963ec8df8c7719
5
5
  SHA512:
6
- metadata.gz: b7579cff852877011e175da251d7cea71598b85c7226b838e525e32a6f11b88d6e8f593e15635eaad69b339f9de9926f9c435dd3ba95f4c8ba4a1983df9eb9b6
7
- data.tar.gz: 327c8f3be65f153ccb19a6fcc9dcf2cb75c790c15285f0ec63964aeae600641bb9efc301e5433f80ce00e9c05f1d20e6e1fa42e829fc338f014b8327c0a6a276
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 にリポジトリがあります。
@@ -54,20 +54,13 @@ class Program
54
54
  when :stop
55
55
  if @lock.locked?
56
56
  owner = @lock.owner
57
- Process.kill("TERM", owner)
58
- STDERR.puts("SIGTERM has been sent to PID #{owner}.")
59
- success = false
60
- sleep 0.1
61
- 5.times do
62
- unless File.exist? @lock.lock_file_path
63
- success = true
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.")
@@ -1,3 +1,3 @@
1
1
  module Clicker
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clicker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoteichi