#!/usr/bin/env ruby # # Created by hitode909 on 2011-1-18. # Copyright (c) 2011. All rights reserved. require 'rubygems' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'user-stream-receiver' require 'json' UserStreamReceiver.new.run{|chunk| data = JSON.parse(chunk) p data }