littlebrat 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/littlebrat.rb +2 -1
  2. metadata +9 -26
@@ -50,7 +50,8 @@ class LittleBrat < Gosu::Window
50
50
  end
51
51
 
52
52
  def str_from_button_id id
53
- self.button_id_to_char(id) || random_letter
53
+ c = self.button_id_to_char(id).to_s.strip
54
+ c.empty? ? random_letter : c
54
55
  end
55
56
 
56
57
  def random_letter
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: littlebrat
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
4
+ version: 0.1.2
10
5
  platform: ruby
11
6
  authors:
12
7
  - Mike Moore
@@ -14,24 +9,19 @@ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2010-09-27 00:00:00 -06:00
12
+ date: 2010-11-09 00:00:00 -07:00
18
13
  default_executable:
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: gosu
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
25
20
  requirements:
26
21
  - - ~>
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 7
31
- - 24
32
23
  version: 0.7.24
33
- type: :runtime
34
- version_requirements: *id001
24
+ version:
35
25
  description: Because kids like to smash buttons
36
26
  email:
37
27
  - mike@blowmage.com
@@ -59,7 +49,6 @@ files:
59
49
  - sounds/TYPEKEY.WAV
60
50
  - sounds/TYPESPAC.WAV
61
51
  - sounds/WATER.WAV
62
- - bin/littlebrat
63
52
  has_rdoc: true
64
53
  homepage: http://rubygems.org/gems/littlebrat
65
54
  licenses: []
@@ -70,27 +59,21 @@ rdoc_options: []
70
59
  require_paths:
71
60
  - lib
72
61
  required_ruby_version: !ruby/object:Gem::Requirement
73
- none: false
74
62
  requirements:
75
63
  - - ">="
76
64
  - !ruby/object:Gem::Version
77
- segments:
78
- - 0
79
65
  version: "0"
66
+ version:
80
67
  required_rubygems_version: !ruby/object:Gem::Requirement
81
- none: false
82
68
  requirements:
83
69
  - - ">="
84
70
  - !ruby/object:Gem::Version
85
- segments:
86
- - 1
87
- - 3
88
- - 6
89
71
  version: 1.3.6
72
+ version:
90
73
  requirements: []
91
74
 
92
75
  rubyforge_project: littlebrat
93
- rubygems_version: 1.3.7
76
+ rubygems_version: 1.3.5
94
77
  signing_key:
95
78
  specification_version: 3
96
79
  summary: A handy little app to entertain the kiddos