diff options
-rw-r--r-- | test.rb | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -3,19 +3,16 @@ require 'rubygems' require "yajl/http_stream" -Signal.trap('INT') { AMQP.stop{ EM.stop } } -Signal.trap('TERM'){ AMQP.stop{ EM.stop } } - def main url = "http://localhost:5984/" - db = "test" + db = "leap_certs" feed_type = "continuous" since = "0" queue = "changes" Yajl::HttpStream.get("#{url}#{db}/_changes?feed=#{feed_type}&since=#{since}", :symbolize_keys => true) do |hash| if hash[:id] - #p hash + p hash end end end |