Skip to content

Commit

Permalink
added travis-ci image to readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kracekumar committed Nov 18, 2012
1 parent c186152 commit 01f70c6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,8 @@
SimpleURL 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. SimpleURL is based on Werkzeug routing system for Brubeck.


Expand Down
19 changes: 19 additions & 0 deletions demos/demo_classes.py
Original file line number Original file line Diff line number Diff line change
@@ -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()
1 change: 1 addition & 0 deletions demos/media/index.html
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
Take five index
4 changes: 4 additions & 0 deletions tests-requirements.txt
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,4 @@
brubeck
gevent
werkzeug
requests
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
#! -*- coding : utf-8 -*-

0 comments on commit 01f70c6

Please sign in to comment.