Permalink
Browse files

ini

  • Loading branch information...
0 parents commit 310ecfc084194f23f2c2f182055dfc03016ab537 @alandipert committed Jul 19, 2011
Showing with 585 additions and 0 deletions.
  1. +1 −0 .rvmrc
  2. +3 −0 Gemfile
  3. +22 −0 Gemfile.lock
  4. +11 −0 README.md
  5. +8 −0 app.html
  6. +1 −0 app.js.coffee
  7. +15 −0 app.rb
  8. +18 −0 public/javascripts/jquery-1.6.1.min.js
  9. +480 −0 public/javascripts/json2.js
  10. +26 −0 public/javascripts/underscore-min.js
1 .rvmrc
@@ -0,0 +1 @@
+rvm use 1.9.2
@@ -0,0 +1,3 @@
+source :rubygems
+gem 'sinatra'
+gem 'coffee-script'
@@ -0,0 +1,22 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.1.1)
+ execjs (1.0.0)
+ multi_json (~> 1.0)
+ multi_json (1.0.3)
+ rack (1.3.0)
+ sinatra (1.2.6)
+ rack (~> 1.1)
+ tilt (< 2.0, >= 1.2.2)
+ tilt (1.3.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-script
+ sinatra
@@ -0,0 +1,11 @@
+# Simple Sinatra/CoffeeScript Application
+
+Write Ruby in `app.rb`.
+
+Write CoffeeScript in `app.js.coffee`.
+
+Edit HTML in `app.html`.
+
+Run with `shotgun app.rb`.
+
+Visit `http://localhost:9393` to see your application.
@@ -0,0 +1,8 @@
+<head>
+ <title>HCVS Test</title>
+ <script charset="utf-8" src="/script.js"></script>
+</head>
+<body>
+ <p>hey</p>
+</body>
+</html>
@@ -0,0 +1 @@
+alert('hey')
15 app.rb
@@ -0,0 +1,15 @@
+require 'sinatra'
+require 'json'
+
+get '/app.js' do
+ coffee File.read(File.join('app.js.coffee'))
+end
+
+get '/' do
+ File.read(File.join('app.html'))
+end
+
+get '/events' do
+ content_type :json
+ {:state => 'message_received'}.to_json
+end

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 310ecfc

Please sign in to comment.