summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-09-04 18:26:19 +0200
committerAzul <azul@leap.se>2012-09-04 18:26:19 +0200
commitb0ee08ded6aca81a58b82ebd99dbfaaa441ac9f2 (patch)
tree61c2d5e64f4caa4ea2c75151fabc7c713d09f575 /lib
parent6ea671ff9fca7a22126f2348c63eb4ac471eecea (diff)
added test for CouchStream, made url_for protected
Diffstat (limited to 'lib')
-rw-r--r--lib/couch_stream.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/couch_stream.rb b/lib/couch_stream.rb
index e3f66cc..bed296a 100644
--- a/lib/couch_stream.rb
+++ b/lib/couch_stream.rb
@@ -11,8 +11,10 @@ class CouchStream
yield(hash)
end
end
+
+ protected
- def url_for(path, options)
+ def url_for(path, options = {})
url = @server + @db + '/' + path
url += '?' if options.any?
url += options.map {|k,v| "#{k}=#{v}"}.join('&')