georgepalmer-couch_foo 0.8.0 → 0.8.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.
- data/VERSION.yml +1 -1
- data/lib/couch_foo/view_methods.rb +2 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -198,8 +198,8 @@ module CouchFoo
|
|
198
198
|
# the key filtering)
|
199
199
|
def switch_keys_if_descending!(result)
|
200
200
|
if result[:descending]
|
201
|
-
startkey = result
|
202
|
-
endkey = result
|
201
|
+
startkey = result.delete(:startkey)
|
202
|
+
endkey = result.delete(:endkey)
|
203
203
|
result[:startkey] = endkey unless endkey.nil?
|
204
204
|
result[:endkey] = startkey unless startkey.nil?
|
205
205
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: georgepalmer-couch_foo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- George Palmer
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-09 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|