ScoreboardRubywarrior
This gem monkey patches ruby-warrior to allow scores to be automatically posted to a webserver (currently https://rubywarrior.herokuapp.com/)
There is plenty of scope for improving the metrics etc, so please feel free to add your (tested?! ;) patches and send them our way.
The website code is also open sourced at https://github.com/ruby-meetup-resources/rubywarrior_scoreboard
Installation
$ gem install scoreboard_rubywarrior
Usage
Please see Ryan Bates' instructions on the original ruby-warrior
Endpoint
The website where the scores can be viewed (and source inspected etc.) is available on github by default, the scoreboard_rubywarrior will post to the demo herokuapp at http://rubywarrior.herokuapp.com/scores .
If you want to post to your own custom website for your own meetup, all
you need to do is create a .scoreboard_endpoint
file in the root of the
rubywarrior directory (so in the same directory as player.rb) and fill in
the URL that you want the scores to be posted to.
Contributing
- Fork it ( https://github.com/ruby-meetup-resources/scoreboard_rubywarrior/fork )
- 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 a new Pull Request
Thanks
Many many thanks to Ryan Bates for creating the ruby-warrior gem.