couchdb-client 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module CouchDB
2
2
  class Client
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -20,8 +20,8 @@ module CouchDB
20
20
 
21
21
  alias [] db
22
22
 
23
- def get(path)
24
- send_http_request :get, path
23
+ def get(path, options = {})
24
+ send_http_request :get, path, options
25
25
  end
26
26
 
27
27
  def put(path, options = {})
@@ -31,8 +31,8 @@ module CouchDB
31
31
  client.delete name
32
32
  end
33
33
 
34
- def all_docs(options = nil)
35
- client.get path_for('_all_docs')
34
+ def all_docs(params = nil)
35
+ client.get path_for('_all_docs'), :query => params
36
36
  end
37
37
 
38
38
  def new_doc(data)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchdb-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-17 00:00:00.000000000 Z
12
+ date: 2012-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json