Skip to content

ruby-meetup-resources/rubywarrior_scoreboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1883ae8 · Dec 4, 2015

History

43 Commits
Nov 23, 2014
Nov 15, 2014
Nov 16, 2014
Nov 21, 2014
Nov 15, 2014
Nov 15, 2014
Nov 15, 2014
Nov 15, 2014
Nov 15, 2014
Nov 21, 2014
Nov 16, 2014
Nov 15, 2014
Nov 15, 2014
Nov 16, 2014
Nov 16, 2014
Nov 15, 2014
Dec 4, 2015
Nov 15, 2014
Nov 15, 2014

Repository files navigation

RubyWarrior Scoreboard

Basic API call

POST /scores
{
  "warrior_name": "Test Warrior",
  "level_number": 1,
  "level_score": 10,
  "total_score": 10,
  "source_code": "class Player ... end",
  "time_bonus": 0
}

Demo website

The default endpoint, and example site, is available at: http://rubywarrior.herokuapp.com/

scoreboard_rubywarrior gem

Please use the scoreboard_rubywarrior gem in conjunction with this website. It will automatically post results to the endpoint you specify

ENV variables

  • If the HIDE_SOURCE ENV variable is present, source code will be hidden
  • If the HIDE_FLOG ENV variable is present, flog details will be hidden

Thanks

Many many thanks to Ryan Bates for creating the ruby-warrior gem.