consoleparty 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/party.rb +3 -2
- 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: 76b1651c4fec89baae6821e004f060787aa8519c
|
4
|
+
data.tar.gz: ee018228e56c50c9fd172fe1ec9ab69b214d5a05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c218b73d5e13cc2ce199bfe0cf29a51a223f6786e8d05d6feab0d6ed0027fb8aa9829f51fdf8939c28933a5b862bef7e327be85ccc2694fc91c8f23fa1dbae49
|
7
|
+
data.tar.gz: e9ed4aa8539e2f4c4936c70206518d5532f063e3391c1acec6c4f67365e5e9d8ae7a8bf05b1c6a11ab49d2294c25a0a20a6d1d78e95b6fc7c009df84b5a48702
|
data/lib/party.rb
CHANGED
@@ -88,9 +88,10 @@ class Party
|
|
88
88
|
|
89
89
|
saying = Thread.new {
|
90
90
|
i = 0
|
91
|
+
words = stuff_to_say.cycle
|
91
92
|
while !silent
|
92
93
|
talking.synchronize{
|
93
|
-
|
94
|
+
system "say", words.next
|
94
95
|
}
|
95
96
|
i+=1
|
96
97
|
end
|
@@ -138,7 +139,7 @@ class Party
|
|
138
139
|
if (!silent)
|
139
140
|
talking.synchronize {
|
140
141
|
if farewell
|
141
|
-
|
142
|
+
system "say", farewell
|
142
143
|
end
|
143
144
|
}
|
144
145
|
end
|