Throw axes to pending makers!
Leaving a pending long time is really bad, shouldn't be happened. They'll make a trouble. So, this gem sends notification to committer that added pending after a while from the commit.
Avoid the trouble due to pending examples :D
$ gem install pendaxes
$ pendaxes <config_file>
pendaxes --help for more.
$ pendaxes --init # will write to .pendaxes.yml $ pendaxes --init config.yml # will write to config.yml
see https://github.com/cookpad/pendaxes/wiki/Configuration for detail.
/path/to/be/cloned/repository, then detect pendings using rspec detector (default).
Finally send notification to committers via email (from
workspace: path: /path/to/be/cloned/repository # where to clone? repository: https://github.com/foo/bar.git # where clone from? notifications: - use: file to: "report.html" reporter: use: haml - use: mail from: firstname.lastname@example.org delivery_method: sendmail reporter: use: haml
斧... Axe in Japanese. Recently, Japanese engineer says a review comment as axe (斧).
Throwing axe means "comment my opnion."
This script throws axe to committer, about his/her uncontrolled pending tests.
椅子を投げる (Throwing chairs) is similarly:
- Ruby 1.9+ (1.9.3 supported)
git grep and
git blame to detect pendings, and supported test suite is currently
this gem supports git managed repository, and using rspec.
Patches for other environment are welcomed. :-)
Writing notificator and reporter
(c) 2012 Shota Fukumori (sora_h) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request