gamebox 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +2 -2
- data/lib/gamebox/sound_manager.rb +8 -2
- metadata +2 -2
data/History.txt
CHANGED
@@ -31,3 +31,8 @@
|
|
31
31
|
|
32
32
|
* Bug fix release for RubyWeekend #3
|
33
33
|
* added registering for events with input_manager that have no ids (ie i.reg KeyDownEvent do |e| ... will get all keys pressed)
|
34
|
+
|
35
|
+
=== 0.0.5 / 2009-06-28
|
36
|
+
|
37
|
+
* Bug fix release for RubyWeekend #3
|
38
|
+
* sound manager now ignores txt files
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ gem 'hoe', '>= 2.3.0'
|
|
3
3
|
require 'hoe'
|
4
4
|
|
5
5
|
module Gamebox
|
6
|
-
VERSION = '0.0.
|
6
|
+
VERSION = '0.0.5'
|
7
7
|
end
|
8
8
|
Hoe.new 'gamebox' do |spec|
|
9
9
|
spec.developer('Shawn Anderson', 'shawn42@gmail.com')
|
@@ -13,7 +13,7 @@ Hoe.new 'gamebox' do |spec|
|
|
13
13
|
spec.summary = "Framework for building and distributing games using Rubygame"
|
14
14
|
spec.url = "http://shawn42.github.com/gamebox"
|
15
15
|
spec.version = Gamebox::VERSION
|
16
|
-
spec.changes = spec.paragraphs_of('History.txt',
|
16
|
+
spec.changes = spec.paragraphs_of('History.txt', 8..9).join("\n\n")
|
17
17
|
spec.extra_deps << ['constructor']
|
18
18
|
spec.extra_deps << ['publisher']
|
19
19
|
spec.extra_deps << ['bacon']
|
@@ -31,7 +31,10 @@ class SoundManager
|
|
31
31
|
name = File.basename(f)
|
32
32
|
begin
|
33
33
|
sym = name.gsub(" ","_").split(".")[0..-2].join(".").to_sym
|
34
|
-
|
34
|
+
ext = name.gsub(" ","_").split(".").last
|
35
|
+
unless ext == "txt"
|
36
|
+
@music[sym] = @resource_manager.load_music(f)
|
37
|
+
end
|
35
38
|
rescue;end
|
36
39
|
end if files
|
37
40
|
|
@@ -41,7 +44,10 @@ class SoundManager
|
|
41
44
|
name = File.basename(f)
|
42
45
|
begin
|
43
46
|
sym = name.gsub(" ","_").split(".")[0..-2].join(".").to_sym
|
44
|
-
|
47
|
+
ext = name.gsub(" ","_").split(".").last
|
48
|
+
unless ext == "txt"
|
49
|
+
@sounds[sym] = @resource_manager.load_sound(f)
|
50
|
+
end
|
45
51
|
rescue;end
|
46
52
|
end if files
|
47
53
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gamebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Anderson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-28 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|