diff options
author | Azul <azul@riseup.net> | 2013-09-10 18:57:52 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-09-10 18:57:52 +0200 |
commit | 7958827a0ba1126646e01314e7c6bb4f86292dc8 (patch) | |
tree | d4079d37c38e025486212d6b9f1d327fd1a7651e /lib/tapicero/couch_stream.rb | |
parent | 57140b80f00aab43918a3ec3276062823971dec7 (diff) |
use our own JsonStream and a created callback in CouchChanges
Diffstat (limited to 'lib/tapicero/couch_stream.rb')
-rw-r--r-- | lib/tapicero/couch_stream.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/tapicero/couch_stream.rb b/lib/tapicero/couch_stream.rb index 96c752a..8583010 100644 --- a/lib/tapicero/couch_stream.rb +++ b/lib/tapicero/couch_stream.rb @@ -1,5 +1,3 @@ -require 'yajl/http_stream' - module Tapicero class CouchStream def initialize(database_url) @@ -9,7 +7,7 @@ module Tapicero def get(path, options) url = url_for(path, options) # puts url - Yajl::HttpStream.get(url, :symbolize_keys => true) do |hash| + Tapicero::JsonStream.get(url, :symbolize_keys => true) do |hash| yield(hash) end end |