harlem_bits 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/lib/harlem_bits/bit.rb +1 -1
- data/lib/harlem_bits/version.rb +1 -1
- data/lib/harlem_bits.rb +6 -6
- metadata +1 -1
data/.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
.DS_Store
|
1
|
+
.DS_Store
|
2
|
+
harlem_bits-*.gem
|
data/lib/harlem_bits/bit.rb
CHANGED
data/lib/harlem_bits/version.rb
CHANGED
data/lib/harlem_bits.rb
CHANGED
@@ -13,11 +13,11 @@ module HarlemBits
|
|
13
13
|
t = Thread.new { system "afplay #{AUDIO_FILE}" }
|
14
14
|
s = Harlem.new width || 50, height || 25
|
15
15
|
s.start
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
rescue Interrupt
|
17
|
+
s.kill
|
18
|
+
t.kill
|
19
|
+
ensure
|
20
|
+
puts 'fin'
|
21
|
+
exit 0
|
22
22
|
end
|
23
23
|
end
|