zombie-chaser 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/zombie_test_chaser.rb +1 -1
- data/ui/ui.rb +3 -3
- data/zombie-chaser.gemspec +88 -0
- metadata +3 -2
data/lib/zombie_test_chaser.rb
CHANGED
data/ui/ui.rb
CHANGED
|
@@ -12,7 +12,7 @@ class Actor
|
|
|
12
12
|
def self.window; @window end
|
|
13
13
|
|
|
14
14
|
def self.sprites
|
|
15
|
-
@sprites ||= Dir['
|
|
15
|
+
@sprites ||= Dir[File.join(File.dirname(__FILE__),'sprites/*.png')].inject({}) do |sprites,f|
|
|
16
16
|
sprite = File.basename(f,'.*').split('-')
|
|
17
17
|
sprites[sprite.first] ||= {}
|
|
18
18
|
sprites[sprite.first][sprite.last] = Gosu::Image.new(window, f, false)
|
|
@@ -62,8 +62,8 @@ class Window < Gosu::Window
|
|
|
62
62
|
self.caption = 'Zombie-chaser'
|
|
63
63
|
self.grid = 1
|
|
64
64
|
|
|
65
|
-
@grass = Gosu::Image.new(self, '
|
|
66
|
-
@shrubbery = Gosu::Image.new(self, '
|
|
65
|
+
@grass = Gosu::Image.new(self, File.join(File.dirname(__FILE__),'tiles/grass.png'), true)
|
|
66
|
+
@shrubbery = Gosu::Image.new(self, File.join(File.dirname(__FILE__),'tiles/shrubbery.png'), true)
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
def draw
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{zombie-chaser}
|
|
8
|
+
s.version = "0.0.2"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["Andrew Grimm", "Ryan Davis", "Eric Hodel", "Kevin Clark"]
|
|
12
|
+
s.date = %q{2009-12-08}
|
|
13
|
+
s.default_executable = %q{zombie-chaser}
|
|
14
|
+
s.description = %q{A zombie-themed graphic(al) user interface for mutation testing}
|
|
15
|
+
s.email = %q{andrew.j.grimm@gmail.com}
|
|
16
|
+
s.executables = ["zombie-chaser"]
|
|
17
|
+
s.extra_rdoc_files = [
|
|
18
|
+
"README.txt"
|
|
19
|
+
]
|
|
20
|
+
s.files = [
|
|
21
|
+
"README.txt",
|
|
22
|
+
"Rakefile",
|
|
23
|
+
"bin/zombie-chaser",
|
|
24
|
+
"lib/chaser.rb",
|
|
25
|
+
"lib/human.rb",
|
|
26
|
+
"lib/interface.rb",
|
|
27
|
+
"lib/test_unit_handler.rb",
|
|
28
|
+
"lib/world.rb",
|
|
29
|
+
"lib/zombie_test_chaser.rb",
|
|
30
|
+
"test/fixtures/chased.rb",
|
|
31
|
+
"test/test_chaser.rb",
|
|
32
|
+
"test/test_unit.rb",
|
|
33
|
+
"test/test_zombie.rb",
|
|
34
|
+
"ui/icons/death.png",
|
|
35
|
+
"ui/icons/robot.png",
|
|
36
|
+
"ui/sprites/robot-attacking.png",
|
|
37
|
+
"ui/sprites/robot-dead.png",
|
|
38
|
+
"ui/sprites/robot-dying.png",
|
|
39
|
+
"ui/sprites/robot-idle.png",
|
|
40
|
+
"ui/sprites/robot-moving.png",
|
|
41
|
+
"ui/sprites/robot-turning.png",
|
|
42
|
+
"ui/sprites/tank-attacking.png",
|
|
43
|
+
"ui/sprites/tank-dead.png",
|
|
44
|
+
"ui/sprites/tank-idle.png",
|
|
45
|
+
"ui/sprites/tank-moving.png",
|
|
46
|
+
"ui/sprites/tank-turning.png",
|
|
47
|
+
"ui/sprites/witch-attacking.png",
|
|
48
|
+
"ui/sprites/witch-dead.png",
|
|
49
|
+
"ui/sprites/witch-idle.png",
|
|
50
|
+
"ui/sprites/witch-moving.png",
|
|
51
|
+
"ui/sprites/witch-turning.png",
|
|
52
|
+
"ui/sprites/zombie-attacking.png",
|
|
53
|
+
"ui/sprites/zombie-dead.png",
|
|
54
|
+
"ui/sprites/zombie-dying.png",
|
|
55
|
+
"ui/sprites/zombie-idle.png",
|
|
56
|
+
"ui/sprites/zombie-moving.png",
|
|
57
|
+
"ui/sprites/zombie-turning.png",
|
|
58
|
+
"ui/tiles/grass.png",
|
|
59
|
+
"ui/tiles/shrubbery.png",
|
|
60
|
+
"ui/ui.rb",
|
|
61
|
+
"zombie-chaser.gemspec"
|
|
62
|
+
]
|
|
63
|
+
s.homepage = %q{http://andrewjgrimm.wordpress.com/2009/11/08/declare-war-on-everything-with-chaser/}
|
|
64
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
|
65
|
+
s.require_paths = ["lib"]
|
|
66
|
+
s.rubygems_version = %q{1.3.5}
|
|
67
|
+
s.summary = %q{Lightweight mutation testing ... with ZOMBIES!!!}
|
|
68
|
+
s.test_files = [
|
|
69
|
+
"test/fixtures/chased.rb",
|
|
70
|
+
"test/test_chaser.rb",
|
|
71
|
+
"test/test_unit.rb",
|
|
72
|
+
"test/test_zombie.rb"
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
if s.respond_to? :specification_version then
|
|
76
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
77
|
+
s.specification_version = 3
|
|
78
|
+
|
|
79
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
80
|
+
s.add_runtime_dependency(%q<gosu>, [">= 0"])
|
|
81
|
+
else
|
|
82
|
+
s.add_dependency(%q<gosu>, [">= 0"])
|
|
83
|
+
end
|
|
84
|
+
else
|
|
85
|
+
s.add_dependency(%q<gosu>, [">= 0"])
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zombie-chaser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Grimm
|
|
@@ -12,7 +12,7 @@ autorequire:
|
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
14
|
|
|
15
|
-
date: 2009-12-
|
|
15
|
+
date: 2009-12-08 00:00:00 +11:00
|
|
16
16
|
default_executable: zombie-chaser
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
@@ -74,6 +74,7 @@ files:
|
|
|
74
74
|
- ui/tiles/grass.png
|
|
75
75
|
- ui/tiles/shrubbery.png
|
|
76
76
|
- ui/ui.rb
|
|
77
|
+
- zombie-chaser.gemspec
|
|
77
78
|
has_rdoc: true
|
|
78
79
|
homepage: http://andrewjgrimm.wordpress.com/2009/11/08/declare-war-on-everything-with-chaser/
|
|
79
80
|
licenses: []
|