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.
@@ -26,7 +26,7 @@ require 'couchrest/support/inheritable_attributes'
26
26
 
27
27
  # = CouchDB, close to the metal
28
28
  module CouchRest
29
- VERSION = '1.0.0'
29
+ VERSION = '1.0.1'
30
30
 
31
31
  # we always want these
32
32
  require 'couchrest/server'
@@ -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
- k = key.to_s
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
- k = key.to_s
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
- - 0
10
- version: 1.0.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-08-06 00:00:00 +01:00
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"