lib/bender/main.rb in bender-bot-0.1.0 vs lib/bender/main.rb in bender-bot-0.1.1
- old
+ new
@@ -151,11 +151,10 @@
req['Accept'] = 'application/json'
Thread.new do
loop do
resp = http.request req
-
users = JSON.parse(resp.body).inject({}) do |h, user|
h[user['key']] = {
nick: user['key'],
name: user['displayName'],
email: user['emailAddress']
@@ -187,6 +186,6 @@
Web.run!
end
end
-end
\ No newline at end of file
+end