From e4df501035434cbb1920ccca21e489599b5ad382 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 19 Dec 2013 13:18:28 +0100 Subject: Version 0.2.0: use CouchRest::Changes This also changes the format of the config file. Please make sure to adjust it. --- lib/tapicero/couch_stream.rb | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 lib/tapicero/couch_stream.rb (limited to 'lib/tapicero/couch_stream.rb') diff --git a/lib/tapicero/couch_stream.rb b/lib/tapicero/couch_stream.rb deleted file mode 100644 index b63a9fd..0000000 --- a/lib/tapicero/couch_stream.rb +++ /dev/null @@ -1,28 +0,0 @@ -# -# UNUSED: we currently use CouchRest's streamer instead. Still keeping this -# around because it's a simple alternative that works. -# - -module Tapicero - class CouchStream - def initialize(database_url) - @database_url = database_url - end - - def get(path, options) - url = url_for(path, options) - # puts url - Tapicero::JsonStream.get(url, :symbolize_keys => true) do |hash| - yield(hash) - end - end - - protected - - def url_for(path, options = {}) - url = [@database_url, path].join('/') - url += '?' if options.any? - url += options.map {|k,v| "#{k}=#{v}"}.join('&') - end - end -end -- cgit v1.2.3