mikeplayer 1.0.8 → 1.1.0

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: 98d73ca7a4c48fc9468996b9aa27ca592d544c8a2637161295625acd6fd849b2
4
- data.tar.gz: 44288a081ec5d6f8e3090613b220fe63828ff239f69209a77f951edc680c8776
3
+ metadata.gz: 121090e98631767a7c640e074f662732b39c4593bd30270c0d9f816a7833bb3f
4
+ data.tar.gz: 618b4294b29fa83a8263530cee8c480e050c3ce56be457086933366aef08977e
5
5
  SHA512:
6
- metadata.gz: bc0bea67f1ba47fcfe6f63bf7008981ac69ff4247d21e413444bbc641d02a1d245737cfba1f495f9b049562ac409e55deba85bd1a8b87d51f77f8f64eeb81708
7
- data.tar.gz: 0ced60fdb31a438d80597f0bb7c4118f8662db0133fd235ea318a4ad591393e2bc85e9b8093a973dc7c5ed522874e74d1a883fb176287eac85ac3f6c44154213
6
+ metadata.gz: e666ab907816480ede76ad2d4e215116ec920c2ce0152d44687177675ecfb484c94de13b897006f2e110bb89f2c81039abb363a52ea6c43f1ace3e48a19c341a
7
+ data.tar.gz: ac571aae2fc74fcef162583c50924a4e8e81dd7ccd141503d9de47e8fbf03898bd6fc8aa2482875068a477ae13fa9ef9a882d7d5379285ee5b9259a19675615f
@@ -38,10 +38,20 @@ module MikePlayer
38
38
  @elapsed += Time.now.to_i - @start_t
39
39
  @start_t = 0
40
40
 
41
- sleep 0.2
41
+ 10.times do
42
+ break unless alive?
43
+
44
+ sleep 0.1
45
+ end
42
46
 
43
47
  kill('KILL')
44
48
 
49
+ 10.times do
50
+ break unless alive?
51
+
52
+ sleep 0.1
53
+ end
54
+
45
55
  @paused = true
46
56
  end
47
57
 
@@ -103,7 +113,11 @@ module MikePlayer
103
113
 
104
114
  @pid = thread_info.pid
105
115
 
106
- sleep 0.2
116
+ 10.times do
117
+ break if alive?
118
+
119
+ sleep 0.2
120
+ end
107
121
 
108
122
  raise "Failed to play #{stdother.read}" unless alive?
109
123
 
@@ -1,3 +1,3 @@
1
1
  module MikePlayer
2
- VERSION = '1.0.8'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mikeplayer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Crockett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-02 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json