Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing examples

  • Loading branch information...
commit 38547366228b8dace7100ef3ac095e3204149530 1 parent cf8638e
@tef tef authored
View
4 examples/client.py
@@ -1,6 +1,6 @@
-import glyph
+import hyperglyph
import sys
-s = glyph.get(sys.argv[1])
+s = hyperglyph.get(sys.argv[1])
print s
q= s.Queue(u'butt')
print q
View
4 examples/client.rb
@@ -1,5 +1,5 @@
-require "glyph"
-s = Glyph.get(ARGV[0])
+require "hyperglyph"
+s = Hyperglyph.get(ARGV[0])
q= s.Queue('butt')
q.push('butts')
p q.pop()
View
8 examples/server.py
@@ -1,12 +1,12 @@
-import glyph
+import hyperglyph
import collections
queues = {}
-m = glyph.Router()
+m = hyperglyph.Router()
@m.add()
-class Queue(glyph.r):
+class Queue(hyperglyph.r):
def __init__(self, name):
self.name = name
def push(self, msg):
@@ -18,7 +18,7 @@ def pop(self):
if self.name in queues:
return queues[self.name].popleft()
-s = glyph.Server(m, port=12344)
+s = hyperglyph.Server(m, port=12344)
s.start()
View
6 examples/server.rb
@@ -1,10 +1,10 @@
-require "glyph"
+require "hyperglyph"
require "rack"
$queues = {}
-class Service < Glyph::Router
- class Queue < Glyph::Resource
+class Service < Hyperglyph::Router
+ class Queue < Hyperglyph::Resource
def initialize(name)
@name = name
end
Please sign in to comment.
Something went wrong with that request. Please try again.