akdubya-cushion 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/cushion.rb +1 -1
- data/lib/cushion/database.rb +2 -0
- data/lib/cushion/document.rb +2 -2
- metadata +2 -2
data/README.rdoc
CHANGED
data/lib/cushion.rb
CHANGED
data/lib/cushion/database.rb
CHANGED
@@ -347,6 +347,8 @@ module Cushion
|
|
347
347
|
# The results are not parsed by default. Set the +headers+ option to pass
|
348
348
|
# custom request headers.
|
349
349
|
#
|
350
|
+
# TODO: Update for multi-key fetch (CouchDB r750565)
|
351
|
+
#
|
350
352
|
def list(design, list_template, view, options = {})
|
351
353
|
defaults = { :accept => "text/html;text/plain;*/*" }
|
352
354
|
headers = options.delete(:headers) || {}
|
data/lib/cushion/document.rb
CHANGED
@@ -94,10 +94,10 @@ module Cushion
|
|
94
94
|
result['ok']
|
95
95
|
end
|
96
96
|
|
97
|
-
# Attach a file to this document.
|
97
|
+
# Attach a file to this document. Will overwrite an existing file.
|
98
98
|
def attach(filename, data, content_type = "application/octet-stream")
|
99
99
|
result = database.attach(id, filename, data, :rev => rev,
|
100
|
-
:
|
100
|
+
:content_type => content_type)
|
101
101
|
if result['ok']
|
102
102
|
self[:_rev] = result['rev']
|
103
103
|
attachments[filename] = {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akdubya-cushion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksander Williams
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-07 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|