missing end fix and secure rubygems

this should allow folks to build and deploy master, lmk if merging in capistrano deployments is an option: https://github.com/nathantsoi/graylog2-web-interface/commit/c9c5d91e0aac854c34d16119113749c29f1570d1