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 CHANGED
@@ -1 +1,2 @@
1
- .DS_Store
1
+ .DS_Store
2
+ harlem_bits-*.gem
@@ -13,7 +13,7 @@ module HarlemBits
13
13
  end
14
14
 
15
15
  def to_s
16
- @on ? '1'.send(@color) : '0'
16
+ @on ? ('1'.send(@color) rescue '1') : '0'
17
17
  end
18
18
  alias_method :inspect, :to_s
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module HarlemBits
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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
- # rescue Interrupt
17
- # s.kill
18
- # t.kill
19
- # ensure
20
- # puts 'fin'
21
- # exit 0
16
+ rescue Interrupt
17
+ s.kill
18
+ t.kill
19
+ ensure
20
+ puts 'fin'
21
+ exit 0
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harlem_bits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: