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 +4 -4
- data/lib/mikeplayer/play_thread.rb +16 -2
- data/lib/mikeplayer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 121090e98631767a7c640e074f662732b39c4593bd30270c0d9f816a7833bb3f
|
4
|
+
data.tar.gz: 618b4294b29fa83a8263530cee8c480e050c3ce56be457086933366aef08977e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
|
data/lib/mikeplayer/version.rb
CHANGED
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
|
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-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|