akdubya-cushion 0.6.0 → 0.6.1

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.
@@ -11,7 +11,7 @@ the inspiration.
11
11
  # myapp.rb
12
12
  require 'cushion'
13
13
 
14
- db = Cushion!(mydb)
14
+ db = Cushion!(:mydb)
15
15
 
16
16
  == Document Basics
17
17
 
@@ -21,7 +21,7 @@ def Cushion!(dbname, opts = {})
21
21
  end
22
22
 
23
23
  module Cushion
24
- VERSION = '0.6.0'
24
+ VERSION = '0.6.1'
25
25
 
26
26
  class << self
27
27
 
@@ -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) || {}
@@ -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
- :headers => { :content_type => content_type })
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.0
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-06 00:00:00 -08:00
12
+ date: 2009-03-07 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency