DXOpal (github) is a RubyGem to make browser games with Ruby. API is similar to DXRuby.
$ gem install dxopal
$ dxopal new game1
$ cd game1
$ dxopal server
Open http://localhost:7521/index.html in browser.
Then edit main.rb and reload browser.
Because it contains the whole opal processor, so that you will not be bothered by how to compile your game files into JS.
Technically you can reduce the file size by commenting out
require "opal-parser"
in opal/dxopal.rb and
building your own .js (including your game).