Skip to content

Instantly share code, notes, and snippets.

@davidjrice
Created April 9, 2010 01:01
Show Gist options
  • Save davidjrice/360747 to your computer and use it in GitHub Desktop.
Save davidjrice/360747 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'yajl/http_stream'
URL = "http://localhost:5984/comments/_changes?feed=continuous"
Yajl::HttpStream.get(URL, :symbolize_keys => true) do |change|
puts "#{change[:seq]}: #{change[:id]}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment