redgreen_inception 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.
@@ -0,0 +1,3 @@
1
+ ![Inception within inception.](http://img228.imageshack.us/img228/8514/redgreeninception.png)
2
+
3
+ NOTE: Only for Mac at the moment.
@@ -0,0 +1,20 @@
1
+ require 'test/unit'
2
+ require 'rubygems'
3
+ require 'redgreen'
4
+ require 'redgreen_inception'
5
+
6
+ class Inception < Test::Unit::TestCase
7
+
8
+ 1.times do |c|
9
+ define_method("test_fail_#{c}") { sleep 1; assert false }
10
+ end
11
+
12
+ 3.times do |c|
13
+ define_method("test_err_#{c}") { sleep 1; assert 'err' + 2 }
14
+ end
15
+
16
+ 5.times do |c|
17
+ define_method("test_win_#{c}") { sleep 1; assert true }
18
+ end
19
+
20
+ end
@@ -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/inception_chord.wav', __FILE__)}")
9
+ #when :yellow then system("/usr/bin/afplay #{File.expand_path('../../sounds/inception_chord.wav', __FILE__)}")
10
+ when :red then system("/usr/bin/afplay #{File.expand_path('../../sounds/inception_horn.mp3', __FILE__)}")
11
+ end
12
+ }
13
+ self.orig_color(color)
14
+ end
15
+ end
Binary file
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: redgreen_inception
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-08-13 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: inception 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
+ - demo_test.rb
32
+ - lib/redgreen_inception.rb
33
+ - sounds/inception_chord.wav
34
+ - sounds/inception_horn.mp3
35
+ - README.markdown
36
+ has_rdoc: true
37
+ homepage: http://github.com/malditogeek/redgreen_inception
38
+ licenses: []
39
+
40
+ post_install_message:
41
+ rdoc_options:
42
+ - --charset=UTF-8
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ hash: 3
51
+ segments:
52
+ - 0
53
+ version: "0"
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ requirements: []
64
+
65
+ rubyforge_project:
66
+ rubygems_version: 1.3.7
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: inception galore for your tests.
70
+ test_files: []
71
+