simply_stored 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -89,9 +89,6 @@ module SimplyStored
89
89
  end
90
90
  end
91
91
 
92
- def save(object)
93
- end
94
-
95
92
  def dirty?(object)
96
93
  object.send("#{name}_id_was") != object.send("#{name}_id")
97
94
  end
@@ -100,10 +97,6 @@ module SimplyStored
100
97
  object.send("#{name}_id_was=", object.send("#{name}_id"))
101
98
  end
102
99
 
103
- def destroy(object)
104
-
105
- end
106
-
107
100
  def build(object, json)
108
101
  object.send "#{name}_id=", json["#{name}_id"]
109
102
  object.send "#{name}_id_was=", json["#{name}_id"]
@@ -112,6 +105,7 @@ module SimplyStored
112
105
  def serialize(json, object)
113
106
  json["#{name}_id"] = object.send("#{name}_id") if object.send("#{name}_id")
114
107
  end
108
+ alias :value :serialize
115
109
 
116
110
  def item_class_name
117
111
  @name.to_s.camelize
@@ -174,21 +174,16 @@ module SimplyStored
174
174
  end
175
175
  end
176
176
 
177
- def save(object)
178
- end
179
-
180
177
  def dirty?(object)
181
178
  false
182
179
  end
183
180
 
184
- def destroy(object)
185
- end
186
-
187
181
  def build(object, json)
188
182
  end
189
183
 
190
184
  def serialize(json, object)
191
185
  end
186
+ alias :value :serialize
192
187
 
193
188
  def supports_dirty?
194
189
  false
@@ -64,21 +64,16 @@ module SimplyStored
64
64
  end
65
65
  end
66
66
 
67
- def save(object)
68
- end
69
-
70
67
  def dirty?(object)
71
68
  false
72
69
  end
73
70
 
74
- def destroy(object)
75
- end
76
-
77
71
  def build(object, json)
78
72
  end
79
73
 
80
74
  def serialize(json, object)
81
75
  end
76
+ alias :value :serialize
82
77
 
83
78
  def supports_dirty?
84
79
  false
data/lib/simply_stored.rb CHANGED
@@ -4,6 +4,7 @@ require File.expand_path(File.dirname(__FILE__) + '/simply_stored/storage')
4
4
  require File.expand_path(File.dirname(__FILE__) + '/simply_stored/class_methods_base')
5
5
 
6
6
  module SimplyStored
7
+ VERSION = '0.3.1'
7
8
  class Error < RuntimeError; end
8
9
  class RecordNotFound < RuntimeError; end
9
10
  end
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simply_stored
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 3
8
- - 0
9
- version: 0.3.0
4
+ version: 0.3.1
10
5
  platform: ruby
11
6
  authors:
12
7
  - Mathias Meyer, Jonathan Weiss
@@ -14,61 +9,49 @@ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
11
 
17
- date: 2010-04-10 00:00:00 +02:00
12
+ date: 2010-05-12 00:00:00 +02:00
18
13
  default_executable:
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: rest-client
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 4
30
- - 2
31
23
  version: 1.4.2
32
- type: :runtime
33
- version_requirements: *id001
24
+ version:
34
25
  - !ruby/object:Gem::Dependency
35
26
  name: couch_potato
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
38
30
  requirements:
39
31
  - - ">="
40
32
  - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 2
44
- - 15
45
33
  version: 0.2.15
46
- type: :runtime
47
- version_requirements: *id002
34
+ version:
48
35
  - !ruby/object:Gem::Dependency
49
36
  name: activesupport
50
- prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
52
40
  requirements:
53
41
  - - ">="
54
42
  - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
43
  version: "0"
58
- type: :runtime
59
- version_requirements: *id003
44
+ version:
60
45
  - !ruby/object:Gem::Dependency
61
- name: validatable
62
- prerelease: false
63
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ name: mattmatt-validatable
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
64
50
  requirements:
65
51
  - - ">="
66
52
  - !ruby/object:Gem::Version
67
- segments:
68
- - 0
69
53
  version: "0"
70
- type: :runtime
71
- version_requirements: *id004
54
+ version:
72
55
  description: Convenience layer for CouchDB and SimpleDB. Requires CouchPotato and RightAWS library respectively.
73
56
  email: info@peritor.com
74
57
  executables: []
@@ -113,20 +96,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
96
  requirements:
114
97
  - - ">="
115
98
  - !ruby/object:Gem::Version
116
- segments:
117
- - 0
118
99
  version: "0"
100
+ version:
119
101
  required_rubygems_version: !ruby/object:Gem::Requirement
120
102
  requirements:
121
103
  - - ">="
122
104
  - !ruby/object:Gem::Version
123
- segments:
124
- - 0
125
105
  version: "0"
106
+ version:
126
107
  requirements: []
127
108
 
128
109
  rubyforge_project:
129
- rubygems_version: 1.3.6
110
+ rubygems_version: 1.3.5
130
111
  signing_key:
131
112
  specification_version: 3
132
113
  summary: Convenience layer for CouchDB and SimpleDB