Skip to content

Commit 3730449

Browse files
committed
initial commit
0 parents  commit 3730449

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+9576
-0
lines changed

.bundle/config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
BUNDLE_DISABLE_SHARED_GEMS: "1"
3+
BUNDLE_BIN: bin
4+
BUNDLE_PATH: vendor

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# dirs
2+
vendor/ruby/*
3+
bin/
4+
tmp/
5+
6+
# tempfiles
7+
*[~#]
8+
.#*
9+
*_flymake*
10+
/.emacs-project
11+
/.irbrc
12+
*_out

Gemfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
source "http://rubygems.org"
2+
3+
gem 'thin'
4+
5+
gem 'haml'
6+
7+
group :development do
8+
gem 'guard-livereload'
9+
gem 'rack-livereload'
10+
end
11+
12+
gem 'sinatra'
13+
gem 'sinatra-contrib'
14+
gem 'json'
15+
gem 'sprockets'
16+
gem 'yui-compressor'

Gemfile.lock

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
POpen4 (0.1.4)
5+
Platform (>= 0.4.0)
6+
open4
7+
Platform (0.4.0)
8+
addressable (2.2.8)
9+
backports (2.5.3)
10+
daemons (1.1.8)
11+
em-websocket (0.3.6)
12+
addressable (>= 2.1.1)
13+
eventmachine (>= 0.12.9)
14+
eventmachine (0.12.10)
15+
ffi (1.0.11)
16+
guard (1.0.3)
17+
ffi (>= 0.5.0)
18+
thor (>= 0.14.6)
19+
guard-livereload (0.4.2)
20+
em-websocket (>= 0.2.0)
21+
guard (>= 0.10.0)
22+
multi_json (~> 1.0)
23+
haml (3.1.5)
24+
hike (1.2.1)
25+
json (1.6.7)
26+
multi_json (1.0.4)
27+
open4 (1.3.0)
28+
rack (1.4.1)
29+
rack-livereload (0.3.6)
30+
rack
31+
rack-protection (1.2.0)
32+
rack
33+
rack-test (0.6.1)
34+
rack (>= 1.0)
35+
sinatra (1.3.2)
36+
rack (~> 1.3, >= 1.3.6)
37+
rack-protection (~> 1.2)
38+
tilt (~> 1.3, >= 1.3.3)
39+
sinatra-contrib (1.3.1)
40+
backports (>= 2.0)
41+
eventmachine
42+
rack-protection
43+
rack-test
44+
sinatra (~> 1.3.0)
45+
tilt (~> 1.3)
46+
sprockets (2.4.2)
47+
hike (~> 1.2)
48+
multi_json (~> 1.0)
49+
rack (~> 1.0)
50+
tilt (~> 1.1, != 1.3.0)
51+
thin (1.3.1)
52+
daemons (>= 1.0.9)
53+
eventmachine (>= 0.12.6)
54+
rack (>= 1.0.0)
55+
thor (0.15.2)
56+
tilt (1.3.3)
57+
yui-compressor (0.9.6)
58+
POpen4 (>= 0.1.4)
59+
60+
PLATFORMS
61+
ruby
62+
63+
DEPENDENCIES
64+
guard-livereload
65+
haml
66+
json
67+
rack-livereload
68+
sinatra
69+
sinatra-contrib
70+
sprockets
71+
thin
72+
yui-compressor

Guardfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# A sample Guardfile
2+
# More info at https://github.com/guard/guard#readme
3+
4+
guard 'livereload' do
5+
watch(%r{views/.+\.(erb|haml|slim)})
6+
watch(%r{app/js/.+\.(css|js|html|coffee)})
7+
end

TODO

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- [ ] basic setup
2+
- [ ] functionality

app/app.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
class App < Sinatra::Base
2+
set :root, File.expand_path(File.join( File.dirname(__FILE__) , '..'))
3+
4+
configure :development do
5+
require "sinatra/reloader"
6+
7+
register Sinatra::Reloader
8+
FILES.each do |file|
9+
also_reload 'app/'+file
10+
end
11+
end
12+
13+
get '/' do
14+
haml :index
15+
end
16+
17+
class << self
18+
def development?
19+
Sinatra::Application.environment == :development
20+
end
21+
end
22+
end

app/js/application.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//= require "jquery"
2+

0 commit comments

Comments
 (0)