Skip to content

Commit 86d919e

Browse files
author
Tobias Lütke
committed
First implementation
0 parents  commit 86d919e

File tree

15 files changed

+194
-0
lines changed

15 files changed

+194
-0
lines changed

..gitignore.un~

1.77 KB
Binary file not shown.

.Gemfile.un~

942 Bytes
Binary file not shown.

.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
BUNDLE_DISABLE_SHARED_GEMS: "1"

.config.ru.un~

4.83 KB
Binary file not shown.

.database.rb.un~

5.86 KB
Binary file not shown.

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.*.swp
2+
.*.un\~
3+
tags
4+
.swo
5+
jferris-*.gemspec
6+
*.scratch.*
7+
*.rbc
8+
.bundle/config

.server.rb.un~

44.3 KB
Binary file not shown.

Gemfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
source :gemcutter
2+
source "http://gems.github.com"
3+
4+
gem "sequel"
5+
gem "rack"
6+
gem "rack-contrib"
7+
gem "json"
8+
gem "sqlite3-ruby"
9+
gem "shotgun"
10+
gem "sinatra"

Gemfile.lock

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
remote: http://gems.github.com/
4+
specs:
5+
json (1.4.6)
6+
rack (1.2.1)
7+
rack-contrib (1.0.1)
8+
rack (>= 0.9.1)
9+
sequel (3.15.0)
10+
shotgun (0.8)
11+
rack (>= 1.0)
12+
sinatra (1.0)
13+
rack (>= 1.0)
14+
sqlite3-ruby (1.3.1)
15+
16+
PLATFORMS
17+
ruby
18+
19+
DEPENDENCIES
20+
json
21+
rack
22+
rack-contrib
23+
sequel
24+
shotgun
25+
sinatra
26+
sqlite3-ruby

config.ru

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
require "rubygems"
2+
require "bundler"
3+
require 'net/http'
4+
require 'rexml/document'
5+
require 'rack/contrib'
6+
require 'sinatra/base'
7+
require 'database'
8+
require 'server'
9+
10+
Bundler.setup
11+
require 'json'
12+
13+
14+
use Rack::ContentLength
15+
use Rack::Static, :root => File.dirname(__FILE__) + '/public', :urls => ["/index.html", '/css', '/fonts', '/img', '/js']
16+
run StatsApp.new

0 commit comments

Comments
 (0)