Permalink
Browse files

Started demo

  • Loading branch information...
1 parent 86613b5 commit 3c3e4f43b942f533bec617f17d6de3622f7b1e81 @sleeper committed Jan 23, 2012
Showing with 87 additions and 0 deletions.
  1. +6 −0 Gemfile
  2. +65 −0 Gemfile.lock
  3. 0 demo/config/twitsock.rb
  4. +16 −0 demo/twitsock.rb
View
@@ -0,0 +1,6 @@
+source "http://rubygems.org"
+
+gem "goliath", :git => "https://github.com/postrank-labs/goliath.git"
+gem "coffee-script"
+gem "less"
+
View
@@ -0,0 +1,65 @@
+GIT
+ remote: https://github.com/postrank-labs/goliath.git
+ revision: 9c1e0383bc91c6088986a0f71e063b95f804aba2
+ specs:
+ goliath (0.9.4)
+ async-rack
+ em-synchrony (>= 1.0.0)
+ em-websocket
+ eventmachine (>= 1.0.0.beta.3)
+ http_parser.rb (~> 0.5.3)
+ http_router (~> 0.9.0)
+ log4r
+ multi_json
+ rack (>= 1.2.2)
+ rack-contrib
+ rack-respond_to
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ addressable (2.2.6)
+ async-rack (0.5.1)
+ rack (~> 1.1)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.2.0)
+ commonjs (0.2.0)
+ therubyracer (~> 0.9.9)
+ em-synchrony (1.0.0)
+ eventmachine (>= 1.0.0.beta.1)
+ em-websocket (0.3.6)
+ addressable (>= 2.1.1)
+ eventmachine (>= 0.12.9)
+ eventmachine (1.0.0.beta.4)
+ execjs (1.3.0)
+ multi_json (~> 1.0)
+ http_parser.rb (0.5.3)
+ http_router (0.9.7)
+ rack (>= 1.0.0)
+ url_mount (~> 0.2.1)
+ less (2.0.8)
+ commonjs (~> 0.2.0)
+ therubyracer (~> 0.9.9)
+ libv8 (3.3.10.4)
+ log4r (1.1.10)
+ multi_json (1.0.4)
+ rack (1.4.1)
+ rack-accept-media-types (0.9)
+ rack-contrib (1.1.0)
+ rack (>= 0.9.1)
+ rack-respond_to (0.9.8)
+ rack-accept-media-types (>= 0.6)
+ therubyracer (0.9.9)
+ libv8 (~> 3.3.10)
+ url_mount (0.2.1)
+ rack
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-script
+ goliath!
+ less
View
No changes.
View
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+
+require "bundler/setup"
+require 'goliath'
+
+# Twitter search:
+# curl -d 'track=freemobile' https://stream.twitter.com/1/statuses/filter.json -uUSER:PWD
+#
+
+class TwitSock < Goliath::API
+
+ def response(env)
+ [200, {}, "Hello World"]
+ end
+
+end

0 comments on commit 3c3e4f4

Please sign in to comment.