Skip to content

Commit

Permalink
Added license, readme, and trimmed out lint from the css.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraff committed Apr 25, 2010
1 parent a9845f9 commit 4b3837c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 47 deletions.
20 changes: 20 additions & 0 deletions MIT-LICENSE
@@ -0,0 +1,20 @@
Original parts Copyright (c) 2010 Robert Graff.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 changes: 10 additions & 1 deletion README.md
@@ -1 +1,10 @@
A Sinatra-Sequel-RSpec quickstart template
# Sinatra-Sequel-RSpec Template

This template is an extended "Hello World" for a Sinatra-Sequel-RSpec
app. It provides an example folder structure, migrations, model, helper,
routes and specs to help you quickly get started writing your own app.

An extensive blog post on this template is available at:
http://drafts.workingdemo.com/2010/04/sinatra-sequel-rspec-template/

*Original parts Copyright (c) 2010 Robert Graff. Released under the MIT license.*
3 changes: 3 additions & 0 deletions config/init.rb
Expand Up @@ -20,6 +20,9 @@
include Rack::Utils
alias_method :h, :escape_html

# partial helper taken from Sam Elliot (aka lenary) at http://gist.github.com/119874
# which itself was based on Chris Schneider's implementation:
# http://github.com/cschneid/irclogger/blob/master/lib/partials.rb
def partial(template, *args)
template_array = template.to_s.split('/')
template = template_array[0..-2].join('/') + "/_#{template_array[-1]}"
Expand Down
46 changes: 0 additions & 46 deletions public/app.css
Expand Up @@ -6,49 +6,3 @@ body, p, ol, ul, td {
line-height: 18px;
}

pre {
background-color: #eee;
padding: 10px;
font-size: 11px;
}

a { color: #000; }
a:visited { color: #666; }
a:hover { color: #fff; background-color:#000; }

.fieldWithErrors {
padding: 2px;
background-color: red;
display: table;
}

#errorExplanation {
width: 400px;
border: 2px solid red;
padding: 7px;
padding-bottom: 12px;
margin-bottom: 20px;
background-color: #f0f0f0;
}

#errorExplanation h2 {
text-align: left;
font-weight: bold;
padding: 5px 5px 5px 15px;
font-size: 12px;
margin: -7px;
background-color: #c00;
color: #fff;
}

#errorExplanation p {
color: #333;
margin-bottom: 0;
padding: 5px;
}

#errorExplanation ul li {
font-size: 12px;
list-style: square;
}

0 comments on commit 4b3837c

Please sign in to comment.