Skip to content

Commit b154a40

Browse files
committed
First commit
0 parents  commit b154a40

File tree

6 files changed

+72
-0
lines changed

6 files changed

+72
-0
lines changed

Gemfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
source 'https://rubygems.org'
2+
3+
git_source(:github) do |repo_name|
4+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
5+
"https://github.com/#{repo_name}.git"
6+
end
7+
8+
gem 'sinatra', '~> 2.0'

Gemfile.lock

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
mustermann (1.0.1)
5+
rack (2.0.4)
6+
rack-protection (2.0.0)
7+
rack
8+
sinatra (2.0.0)
9+
mustermann (~> 1.0)
10+
rack (~> 2.0)
11+
rack-protection (= 2.0.0)
12+
tilt (~> 2.0)
13+
tilt (2.0.8)
14+
15+
PLATFORMS
16+
ruby
17+
18+
DEPENDENCIES
19+
sinatra (~> 2.0)
20+
21+
BUNDLED WITH
22+
1.16.1

LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Chris Oliver
4+
5+
Permission is hereby granted, free of charge, to any person
6+
obtaining a copy of this software and associated documentation
7+
files (the "Software"), to deal in the Software without
8+
restriction, including without limitation the rights to use,
9+
copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the
11+
Software is furnished to do so, subject to the following
12+
conditions:
13+
14+
The above copyright notice and this permission notice shall be
15+
included in all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24+
OTHER DEALINGS IN THE SOFTWARE.

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# A simple Sinatra example
2+
3+
Built by Chris Oliver ([@excid3](https://twitter.com/excid3)) for
4+
[Hatchbox.io](https://hatchbox.io)
5+
6+
## Usage
7+
8+
1. Clone
9+
2. bundle install
10+
3. rackup

app.rb

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require 'bundler/setup'
2+
require 'sinatra'
3+
4+
get '/' do
5+
"Hello world from Sinatra!"
6+
end

config.ru

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require './app'
2+
run Sinatra::Application

0 commit comments

Comments
 (0)