Permalink
Browse files

added travis-ci image to readme.md

  • Loading branch information...
1 parent c186152 commit 01f70c67e133c57f7f748b4fc5bc768968959e92 @kracekumar committed Nov 18, 2012
Showing with 27 additions and 0 deletions.
  1. +2 −0 README.md
  2. +19 −0 demos/demo_classes.py
  3. +1 −0 demos/media/index.html
  4. +4 −0 tests-requirements.txt
  5. +1 −0 tests/__init__.py
View
@@ -1,6 +1,8 @@
SimpleURL
=========
+ :image:: https://secure.travis-ci.org/kracekumar/simpleurl.png?branch=master
+ :target: http://travis-ci.org/kracekumar/simpleurl
SimpleURL is based on Werkzeug routing system for Brubeck.
View
@@ -0,0 +1,19 @@
+#!/usr/bin/env python
+
+from brubeck.request_handling import Brubeck, WebMessageHandler
+from brubeck.connections import Mongrel2Connection
+
+
+class DemoHandler(WebMessageHandler):
+ def get(self):
+ name = self.get_argument('name', 'dude')
+ self.set_body('Take five, %s!' % name)
+ return self.render()
+
+config = {
+ 'msg_conn': Mongrel2Connection('tcp://127.0.0.1:9999',
+ 'tcp://127.0.0.1:9998'),
+ 'handler_tuples': [(r'^/brubeck', DemoHandler)],
+}
+app = Brubeck(**config)
+app.run()
@@ -0,0 +1 @@
+Take five index
@@ -0,0 +1,4 @@
+brubeck
+gevent
+werkzeug
+requests
View
@@ -0,0 +1 @@
+#! -*- coding : utf-8 -*-

0 comments on commit 01f70c6

Please sign in to comment.