simply_stored 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/simply_stored/couch.rb +5 -6
  2. metadata +2 -2
@@ -50,7 +50,6 @@ module SimplyStored
50
50
  what = args.shift
51
51
  options = args.last.is_a?(Hash) ? args.last : {}
52
52
 
53
- options.assert_valid_keys(:with_deleted)
54
53
  with_deleted = options.delete(:with_deleted)
55
54
 
56
55
  case what
@@ -58,7 +57,7 @@ module SimplyStored
58
57
  if with_deleted || !soft_deleting_enabled?
59
58
  CouchPotato.database.view(all_documents(*args))
60
59
  else
61
- CouchPotato.database.view(all_documents_without_deleted(:key => nil))
60
+ CouchPotato.database.view(all_documents_without_deleted(options.update(:key => nil)))
62
61
  end
63
62
  when :first
64
63
  if with_deleted || !soft_deleting_enabled?
@@ -76,12 +75,12 @@ module SimplyStored
76
75
  end
77
76
  end
78
77
 
79
- def all
80
- find(:all)
78
+ def all(*args)
79
+ find(:all, *args)
81
80
  end
82
81
 
83
- def first
84
- find(:first)
82
+ def first(*args)
83
+ find(:first, *args)
85
84
  end
86
85
 
87
86
  def count(options = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simply_stored
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Meyer, Jonathan Weiss
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-09 00:00:00 +01:00
12
+ date: 2009-12-28 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency