Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gunn/godlike
Feel god like after your tests
https://github.com/gunn/godlike
Last synced: about 1 month ago
JSON representation
Feel god like after your tests
- Host: GitHub
- URL: https://github.com/gunn/godlike
- Owner: gunn
- Created: 2009-12-21T05:31:19.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2009-12-21T07:09:24.000Z (about 15 years ago)
- Last Synced: 2023-04-18T04:19:41.783Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 1.78 MB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Godlike
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
## Requirements
Godlike only works for Macs because they are the most god like.
## Installationsudo gem install gemcutter
sudo gem tumble
sudo gem install godlike
# .autotest
require 'godlike'## Customization
You can choose any of the few cools sounds I've included in the gem.
* godlike.mp3
* headshot.mp3
* killingspree.mp3
* perfect.mp3
* supreme_victory.mp3
* ultrakill.mp3
* frag.mp3
* flag_capture.mp3Set the GODLIKE_SOUND consant in your autotest file
require 'godlike'
GODLIKE_SOUND = 'supreme_victory' # leave off extension
# Note, you can also provided an absolute path to play your own soundsOr set to a proc:
sounds = %w[godlike headshot killingspree perfect supreme_victory ultrakill flag_capture frag]
GODLIKE_SOUND = proc { sounds[(sounds.size*rand).to_i] }
# Pic a sound at random each time## Notes
The Autotest hook :all\_good was firing even on failure for me so I've changed it to use the :ran\_command hook plus some checks. -ArthurBig thanks to [Carlos Brando](http://github.com/carlosbrando/autotest-notification) for writing the cocoa script to play audio.