redgreen_supermario 0.1.0

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/README.markdown ADDED
@@ -0,0 +1,3 @@
1
+ ![Super Mario is super.](http://lh3.ggpht.com/_K-UmMcMXjn0/TBCdvdiRd1I/AAAAAAAAAA0/WXRQ520ljZk/s512/super-mario-bros.png)
2
+
3
+ NOTE: Only for Mac at the moment.
@@ -0,0 +1,15 @@
1
+ module Color
2
+ class << self
3
+ alias_method :orig_color, :color
4
+ end
5
+ def self.color(color)
6
+ Thread.new {
7
+ case color
8
+ when :green then system("/usr/bin/afplay #{File.expand_path('../../sounds/smb_coin.wav', __FILE__)}")
9
+ when :yellow then system("/usr/bin/afplay #{File.expand_path('../../sounds/smb_bump.wav', __FILE__)}")
10
+ when :red then system("/usr/bin/afplay #{File.expand_path('../../sounds/smb_bowserfalls.wav', __FILE__)}")
11
+ end
12
+ }
13
+ self.orig_color(color)
14
+ end
15
+ end
data/rakefile ADDED
@@ -0,0 +1,26 @@
1
+ require 'rake'
2
+
3
+ $LOAD_PATH.unshift('lib')
4
+
5
+ begin
6
+ require 'jeweler'
7
+ Jeweler::Tasks.new do |gem|
8
+ gem.name = "redgreen_supermario"
9
+ gem.summary = "SuperMario galore for your tests."
10
+ gem.email = "hackers.are.rockstars@gmail.com"
11
+ gem.homepage = "http://github.com/malditogeek/redgreen_supermario"
12
+ gem.description = "SuperMario galore for your tests."
13
+ gem.authors = ["Mauro Pompilio"]
14
+ gem.files.include ['lib/*', 'sounds/*']
15
+ end
16
+ rescue LoadError
17
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
18
+ end
19
+
20
+ require 'rake/rdoctask'
21
+ Rake::RDocTask.new do |rdoc|
22
+ rdoc.rdoc_dir = 'rdoc'
23
+ rdoc.title = 'redgreen_supermario'
24
+ rdoc.rdoc_files.include('README.markdown')
25
+ rdoc.rdoc_files.include('lib/**/*.rb')
26
+ end
@@ -0,0 +1,44 @@
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{redgreen_supermario}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Mauro Pompilio"]
12
+ s.date = %q{2010-06-10}
13
+ s.description = %q{SuperMario galore for your tests.}
14
+ s.email = %q{hackers.are.rockstars@gmail.com}
15
+ s.extra_rdoc_files = [
16
+ "README.markdown"
17
+ ]
18
+ s.files = [
19
+ "README.markdown",
20
+ "lib/redgreen_supermario.rb",
21
+ "rakefile",
22
+ "redgreen_supermario.gemspec",
23
+ "sounds/smb_bowserfalls.wav",
24
+ "sounds/smb_bump.wav",
25
+ "sounds/smb_coin.wav",
26
+ "version.yml"
27
+ ]
28
+ s.homepage = %q{http://github.com/malditogeek/redgreen_supermario}
29
+ s.rdoc_options = ["--charset=UTF-8"]
30
+ s.require_paths = ["lib"]
31
+ s.rubygems_version = %q{1.3.7}
32
+ s.summary = %q{SuperMario galore for your tests.}
33
+
34
+ if s.respond_to? :specification_version then
35
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
36
+ s.specification_version = 3
37
+
38
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
39
+ else
40
+ end
41
+ else
42
+ end
43
+ end
44
+
Binary file
Binary file
Binary file
data/version.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :minor: 1
3
+ :patch: 0
4
+ :major: 0
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: redgreen_supermario
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Mauro Pompilio
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-06-10 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: SuperMario galore for your tests.
23
+ email: hackers.are.rockstars@gmail.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - README.markdown
30
+ files:
31
+ - README.markdown
32
+ - lib/redgreen_supermario.rb
33
+ - rakefile
34
+ - redgreen_supermario.gemspec
35
+ - sounds/smb_bowserfalls.wav
36
+ - sounds/smb_bump.wav
37
+ - sounds/smb_coin.wav
38
+ - version.yml
39
+ has_rdoc: true
40
+ homepage: http://github.com/malditogeek/redgreen_supermario
41
+ licenses: []
42
+
43
+ post_install_message:
44
+ rdoc_options:
45
+ - --charset=UTF-8
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ hash: 3
54
+ segments:
55
+ - 0
56
+ version: "0"
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ requirements: []
67
+
68
+ rubyforge_project:
69
+ rubygems_version: 1.3.7
70
+ signing_key:
71
+ specification_version: 3
72
+ summary: SuperMario galore for your tests.
73
+ test_files: []
74
+