godlike 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ .DS_STORE
2
+ pkg/
data/README ADDED
@@ -0,0 +1,40 @@
1
+ # Godlike
2
+
3
+ The best autotest add on ever. Its motivational. Its awesome. Its Godlike. Godlike is an autotest hook that places cool sounds when you acheive 100% test passing rate. The default sound is the Unreal Tournament voice: GODLIKE
4
+
5
+ ## Requirements
6
+
7
+ Godlike only works for Macs because they are the most god like.
8
+
9
+ ## Installation
10
+
11
+ sudo gem install gemcutter
12
+ sudo gem tumble
13
+ sudo gem install godlike
14
+
15
+ # .autotest
16
+ require 'godlike'
17
+
18
+ ## Customization
19
+
20
+ You can choose any of the few cools sounds I've included in the gem.
21
+
22
+ * godlike.wav
23
+ * headshot.wav
24
+ * killingspree.wav
25
+ * perfect.wav
26
+ * supreme_victory.wav
27
+ * ultrakill.wav
28
+
29
+ Set the GODLIKE_SOUND consant in your autotest file
30
+
31
+ require 'godlike'
32
+ GODLIKE_SOUND = 'supreme_victory' # leave off extension
33
+ # Note, you can also provided an absolute path to play your own sounds
34
+
35
+ ## Notes
36
+
37
+ Big thanks to [Carlos Brando](http://github.com/carlosbrando/autotest-notification) for writing the cocoa script to play audio.
38
+
39
+
40
+
@@ -0,0 +1,29 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rake/rdoctask'
4
+
5
+ desc 'Default: run unit tests.'
6
+ task :default => :test
7
+
8
+ desc 'Test the godlike plugin.'
9
+ Rake::TestTask.new(:test) do |t|
10
+ t.libs << 'lib'
11
+ t.libs << 'test'
12
+ t.pattern = 'test/**/*_test.rb'
13
+ t.verbose = true
14
+ end
15
+
16
+ begin
17
+ require 'jeweler'
18
+ Jeweler::Tasks.new do |gemspec|
19
+ gemspec.name = "godlike"
20
+ gemspec.summary = "Feel godly after your tests"
21
+ gemspec.description = "Announcers can be motivating"
22
+ gemspec.email = "Adman1965@gmail.com"
23
+ gemspec.homepage = "http://github.com/Adman65/godlike"
24
+ gemspec.authors = ["Adam Hawkins"]
25
+ Jeweler::GemcutterTasks.new
26
+ end
27
+ rescue LoadError
28
+ puts "Jeweler not available. Install it with: sudo gem install jeweler"
29
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
Binary file
@@ -0,0 +1,24 @@
1
+ # Godlike
2
+ # Extracted code from Carlos Brando's autotest notifications
3
+ # Wanted to make something easy that would play a cool sound
4
+ # after a successful test run
5
+ # aka: GODLIKE
6
+
7
+
8
+ Autotest.add_hook :all_good do
9
+ sounds_directory = "#{File.dirname(__FILE__)}/godlike/sounds"
10
+
11
+ sound_file = String.new
12
+
13
+ if defined?(GODLIKE_SOUND)
14
+ if File.exists? "#{sounds_directory}/#{GODLIKE_SOUND}.wav"
15
+ sound_file = "#{sounds_directory}/#{GODLIKE_SOUND}.wav"
16
+ else
17
+ sound_file = GODLIKE_SOUND
18
+ end
19
+ else
20
+ sound_file = "#{sounds_directory}/godlike.wav"
21
+ end
22
+
23
+ `#{File.expand_path(File.dirname(__FILE__) + "/../bin/")}/playsound #{sound_file}`
24
+ end
@@ -0,0 +1,8 @@
1
+ require 'test_helper'
2
+
3
+ class GodlikeTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,3 @@
1
+ require 'rubygems'
2
+ require 'active_support'
3
+ require 'active_support/test_case'
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: godlike
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Adam Hawkins
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-19 00:00:00 -08:00
13
+ default_executable: playsound
14
+ dependencies: []
15
+
16
+ description: Announcers can be motivating
17
+ email: Adman1965@gmail.com
18
+ executables:
19
+ - playsound
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README
24
+ files:
25
+ - .gitignore
26
+ - README
27
+ - Rakefile
28
+ - VERSION
29
+ - bin/playsound
30
+ - lib/godlike.rb
31
+ - lib/godlike/sounds/godlike.wav
32
+ - lib/godlike/sounds/headshot.wav
33
+ - lib/godlike/sounds/killingspree.wav
34
+ - lib/godlike/sounds/perfect.wav
35
+ - lib/godlike/sounds/supreme_victory.wav
36
+ - lib/godlike/sounds/ultrakill.wav
37
+ - test/godlike_test.rb
38
+ - test/test_helper.rb
39
+ has_rdoc: true
40
+ homepage: http://github.com/Adman65/godlike
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
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: "0"
53
+ version:
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: "0"
59
+ version:
60
+ requirements: []
61
+
62
+ rubyforge_project:
63
+ rubygems_version: 1.3.5
64
+ signing_key:
65
+ specification_version: 3
66
+ summary: Feel godly after your tests
67
+ test_files:
68
+ - test/godlike_test.rb
69
+ - test/test_helper.rb