namelessjon-couchrest 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/couchrest.rb +1 -1
- data/lib/couchrest/response.rb +2 -12
- metadata +3 -9
data/lib/couchrest.rb
CHANGED
data/lib/couchrest/response.rb
CHANGED
@@ -8,24 +8,14 @@ module CouchRest
|
|
8
8
|
end
|
9
9
|
@headers = pkeys.respond_to?(:headers) ? pkeys.headers : {}
|
10
10
|
@raw = pkeys.respond_to?(:raw) ? pkeys.raw : nil
|
11
|
-
@original = {}
|
12
11
|
end
|
13
12
|
|
14
13
|
def []=(key, value)
|
15
|
-
|
16
|
-
@original[k] ||= self[k] if defined?(@original)
|
17
|
-
super(k, value)
|
18
|
-
end
|
19
|
-
|
20
|
-
def original
|
21
|
-
self.merge(@original)
|
14
|
+
super(key.to_s, value)
|
22
15
|
end
|
23
16
|
|
24
17
|
def delete(key)
|
25
|
-
|
26
|
-
r = self.delete(k)
|
27
|
-
@original[k] ||= r
|
28
|
-
r
|
18
|
+
super(key.to_s)
|
29
19
|
end
|
30
20
|
|
31
21
|
def [](key)
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: namelessjon-couchrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 1
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Jonathan Stott
|
@@ -20,7 +19,7 @@ autorequire:
|
|
20
19
|
bindir: bin
|
21
20
|
cert_chain: []
|
22
21
|
|
23
|
-
date: 2010-
|
22
|
+
date: 2010-10-25 00:00:00 +01:00
|
24
23
|
default_executable:
|
25
24
|
dependencies:
|
26
25
|
- !ruby/object:Gem::Dependency
|
@@ -31,7 +30,6 @@ dependencies:
|
|
31
30
|
requirements:
|
32
31
|
- - ">="
|
33
32
|
- !ruby/object:Gem::Version
|
34
|
-
hash: 1
|
35
33
|
segments:
|
36
34
|
- 1
|
37
35
|
- 5
|
@@ -47,7 +45,6 @@ dependencies:
|
|
47
45
|
requirements:
|
48
46
|
- - ">="
|
49
47
|
- !ruby/object:Gem::Version
|
50
|
-
hash: 17
|
51
48
|
segments:
|
52
49
|
- 1
|
53
50
|
- 15
|
@@ -62,7 +59,6 @@ dependencies:
|
|
62
59
|
requirements:
|
63
60
|
- - ">="
|
64
61
|
- !ruby/object:Gem::Version
|
65
|
-
hash: 3
|
66
62
|
segments:
|
67
63
|
- 0
|
68
64
|
version: "0"
|
@@ -145,7 +141,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
141
|
requirements:
|
146
142
|
- - ">="
|
147
143
|
- !ruby/object:Gem::Version
|
148
|
-
hash: 3
|
149
144
|
segments:
|
150
145
|
- 0
|
151
146
|
version: "0"
|
@@ -154,7 +149,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
149
|
requirements:
|
155
150
|
- - ">="
|
156
151
|
- !ruby/object:Gem::Version
|
157
|
-
hash: 3
|
158
152
|
segments:
|
159
153
|
- 0
|
160
154
|
version: "0"
|