Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ gem 'sinatra'

gem 'rspec'
gem 'capybara'
gem 'cucumber-sinatra'
gem 'cucumber-sinatra'
gem 'newrelic_rpm'
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -51,5 +52,6 @@ PLATFORMS
DEPENDENCIES
capybara
cucumber-sinatra
newrelic_rpm
rspec
sinatra
3 changes: 2 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'rubygems'
require File.join(File.dirname(__FILE__), 'server.rb')

run NinjaBearCowboy

run NinjaBearCowboy
67 changes: 67 additions & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
@@ -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;
}
4 changes: 4 additions & 0 deletions server.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions views/layout.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<html>
<head><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>
<%= yield %>
</body>
Expand Down