diff --git a/Gemfile b/Gemfile index a567bdc..aba5337 100755 --- a/Gemfile +++ b/Gemfile @@ -4,4 +4,5 @@ gem 'sinatra' gem 'rspec' gem 'capybara' -gem 'cucumber-sinatra' \ No newline at end of file +gem 'cucumber-sinatra' +gem 'newrelic_rpm' diff --git a/Gemfile.lock b/Gemfile.lock index fc4244a..8445c9f 100755 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -14,6 +14,7 @@ GEM highline (1.6.21) mime-types (2.3) mini_portile (0.6.0) + newrelic_rpm (3.9.3.241) nokogiri (1.6.3.1) mini_portile (= 0.6.0) rack (1.5.2) @@ -51,5 +52,6 @@ PLATFORMS DEPENDENCIES capybara cucumber-sinatra + newrelic_rpm rspec sinatra diff --git a/config.ru b/config.ru index 0f2a26d..9df70ce 100755 --- a/config.ru +++ b/config.ru @@ -1,4 +1,5 @@ require 'rubygems' require File.join(File.dirname(__FILE__), 'server.rb') -run NinjaBearCowboy \ No newline at end of file + +run NinjaBearCowboy diff --git a/public/css/style.css b/public/css/style.css new file mode 100644 index 0000000..269ef74 --- /dev/null +++ b/public/css/style.css @@ -0,0 +1,67 @@ +body { + font-family: arial, helvetica, sans-serif; + font-size: 14px; + color: black; + background-color: #ffc; + margin: 20px; + padding: 0; +} + +/* This is a comment, by the way */ + +p { + line-height: 21px; +} + +h1 { + color: #ffc; + background-color: #900; + font-size: 2em; + margin: 0; + margin-bottom: 7px; + padding: 4px; + font-style: italic; + text-align: center; + letter-spacing: 0.5em; + border-bottom-style: solid; + border-bottom-width: 0.5em; + border-bottom-color: #c00; +} + +h2 { + color: white; + background-color: #090; + font-size: 1.5em; + margin: 0; + padding: 2px; + padding-left: 14px; +} + +h3 { + color: #999; + font-size: 1.25em; +} + +img { + border-style: dashed; + border-width: 2px; + border-color: #ccc; +} + +a { + text-decoration: none; +} + +strong { + font-style: italic; + text-transform: uppercase; +} + +li { + color: #900; + font-style: italic; +} + +table { + background-color: #ccc; +} \ No newline at end of file diff --git a/server.rb b/server.rb index ca54834..a368324 100755 --- a/server.rb +++ b/server.rb @@ -1,8 +1,12 @@ require 'sinatra/base' require './lib/player' require './lib/game' +configure :production do + require 'newrelic_rpm' +end class NinjaBearCowboy < Sinatra::Base + get '/' do erb :index end diff --git a/views/layout.erb b/views/layout.erb index 01d070d..95df2b0 100755 --- a/views/layout.erb +++ b/views/layout.erb @@ -1,4 +1,5 @@ +
<%= yield %>