ripple 0.9.5 → 1.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +32 -0
- data/Gemfile +10 -9
- data/Guardfile +15 -0
- data/Rakefile +11 -40
- data/lib/rails/generators/ripple/configuration/configuration_generator.rb +0 -13
- data/lib/rails/generators/ripple/configuration/templates/ripple.yml +4 -4
- data/lib/rails/generators/ripple/js/js_generator.rb +0 -13
- data/lib/rails/generators/ripple/js/templates/js/contrib.js +0 -17
- data/lib/rails/generators/ripple/js/templates/js/ripple.js +0 -13
- data/lib/rails/generators/ripple/model/model_generator.rb +0 -14
- data/lib/rails/generators/ripple/model/templates/model.rb +1 -1
- data/lib/rails/generators/ripple/observer/observer_generator.rb +0 -14
- data/lib/rails/generators/ripple/test/test_generator.rb +7 -19
- data/lib/rails/generators/ripple_generator.rb +1 -14
- data/lib/ripple.rb +7 -14
- data/lib/ripple/associations.rb +129 -26
- data/lib/ripple/associations/embedded.rb +1 -15
- data/lib/ripple/associations/instantiators.rb +0 -13
- data/lib/ripple/associations/linked.rb +41 -19
- data/lib/ripple/associations/many.rb +0 -14
- data/lib/ripple/associations/many_embedded_proxy.rb +0 -14
- data/lib/ripple/associations/many_linked_proxy.rb +39 -18
- data/lib/ripple/associations/many_reference_proxy.rb +93 -0
- data/lib/ripple/associations/many_stored_key_proxy.rb +76 -0
- data/lib/ripple/associations/one.rb +1 -15
- data/lib/ripple/associations/one_embedded_proxy.rb +0 -14
- data/lib/ripple/associations/one_key_proxy.rb +58 -0
- data/lib/ripple/associations/one_linked_proxy.rb +4 -14
- data/lib/ripple/associations/one_stored_key_proxy.rb +43 -0
- data/lib/ripple/associations/proxy.rb +8 -14
- data/lib/ripple/attribute_methods.rb +19 -17
- data/lib/ripple/attribute_methods/dirty.rb +19 -15
- data/lib/ripple/attribute_methods/query.rb +0 -14
- data/lib/ripple/attribute_methods/read.rb +0 -14
- data/lib/ripple/attribute_methods/write.rb +0 -14
- data/lib/ripple/callbacks.rb +10 -16
- data/lib/ripple/conflict/basic_resolver.rb +82 -0
- data/lib/ripple/conflict/document_hooks.rb +20 -0
- data/lib/ripple/conflict/resolver.rb +71 -0
- data/lib/ripple/conflict/test_helper.rb +33 -0
- data/lib/ripple/conversion.rb +0 -14
- data/lib/ripple/core_ext.rb +1 -14
- data/lib/ripple/core_ext/casting.rb +19 -19
- data/lib/ripple/core_ext/object.rb +8 -0
- data/lib/ripple/document.rb +21 -16
- data/lib/ripple/document/bucket_access.rb +0 -14
- data/lib/ripple/document/finders.rb +17 -23
- data/lib/ripple/document/key.rb +8 -28
- data/lib/ripple/document/link.rb +30 -0
- data/lib/ripple/document/persistence.rb +12 -20
- data/lib/ripple/embedded_document.rb +10 -15
- data/lib/ripple/embedded_document/around_callbacks.rb +18 -0
- data/lib/ripple/embedded_document/finders.rb +7 -18
- data/lib/ripple/embedded_document/persistence.rb +5 -17
- data/lib/ripple/i18n.rb +0 -14
- data/lib/ripple/inspection.rb +21 -15
- data/lib/ripple/locale/en.yml +9 -13
- data/lib/ripple/nested_attributes.rb +33 -39
- data/lib/ripple/observable.rb +0 -13
- data/lib/ripple/properties.rb +1 -14
- data/lib/ripple/property_type_mismatch.rb +0 -14
- data/lib/ripple/railtie.rb +4 -14
- data/lib/ripple/railties/ripple.rake +86 -0
- data/lib/ripple/serialization.rb +11 -11
- data/lib/ripple/test_server.rb +36 -0
- data/lib/ripple/timestamps.rb +0 -13
- data/lib/ripple/translation.rb +4 -14
- data/lib/ripple/validations.rb +1 -15
- data/lib/ripple/validations/associated_validator.rb +26 -17
- data/lib/ripple/version.rb +3 -0
- data/ripple.gemspec +24 -35
- data/spec/integration/ripple/associations_spec.rb +89 -58
- data/spec/integration/ripple/conflict_resolution_spec.rb +298 -0
- data/spec/integration/ripple/nested_attributes_spec.rb +19 -19
- data/spec/integration/ripple/persistence_spec.rb +15 -34
- data/spec/integration/ripple/search_associations_spec.rb +31 -0
- data/spec/ripple/associations/many_embedded_proxy_spec.rb +23 -36
- data/spec/ripple/associations/many_linked_proxy_spec.rb +133 -45
- data/spec/ripple/associations/many_reference_proxy_spec.rb +170 -0
- data/spec/ripple/associations/many_stored_key_proxy_spec.rb +158 -0
- data/spec/ripple/associations/one_embedded_proxy_spec.rb +24 -37
- data/spec/ripple/associations/one_key_proxy_spec.rb +82 -0
- data/spec/ripple/associations/one_linked_proxy_spec.rb +22 -23
- data/spec/ripple/associations/one_stored_key_proxy_spec.rb +72 -0
- data/spec/ripple/associations/proxy_spec.rb +21 -15
- data/spec/ripple/associations_spec.rb +54 -23
- data/spec/ripple/attribute_methods/dirty_spec.rb +56 -5
- data/spec/ripple/attribute_methods_spec.rb +47 -21
- data/spec/ripple/bucket_access_spec.rb +4 -17
- data/spec/ripple/callbacks_spec.rb +52 -15
- data/spec/ripple/conflict/resolver_spec.rb +42 -0
- data/spec/ripple/conversion_spec.rb +2 -15
- data/spec/ripple/core_ext_spec.rb +12 -15
- data/spec/ripple/document/link_spec.rb +67 -0
- data/spec/ripple/document_spec.rb +34 -19
- data/spec/ripple/embedded_document/finders_spec.rb +12 -19
- data/spec/ripple/embedded_document/persistence_spec.rb +20 -26
- data/spec/ripple/embedded_document_spec.rb +44 -34
- data/spec/ripple/finders_spec.rb +58 -29
- data/spec/ripple/inspection_spec.rb +40 -37
- data/spec/ripple/key_spec.rb +5 -17
- data/spec/ripple/observable_spec.rb +3 -16
- data/spec/ripple/persistence_spec.rb +134 -18
- data/spec/ripple/properties_spec.rb +21 -15
- data/spec/ripple/ripple_spec.rb +1 -14
- data/spec/ripple/serialization_spec.rb +16 -17
- data/spec/ripple/timestamps_spec.rb +73 -52
- data/spec/ripple/validations/associated_validator_spec.rb +69 -25
- data/spec/ripple/validations_spec.rb +3 -16
- data/spec/spec_helper.rb +17 -18
- data/spec/support/associations.rb +1 -1
- data/spec/support/associations/proxies.rb +0 -13
- data/spec/support/integration_setup.rb +11 -0
- data/spec/support/mocks.rb +0 -13
- data/spec/support/models.rb +33 -2
- data/spec/support/models/address.rb +1 -16
- data/spec/support/models/box.rb +7 -14
- data/spec/support/models/car.rb +27 -1
- data/spec/support/models/cardboard_box.rb +0 -14
- data/spec/support/models/clock.rb +6 -15
- data/spec/support/models/clock_observer.rb +0 -14
- data/spec/support/models/credit_card.rb +5 -0
- data/spec/support/models/customer.rb +0 -14
- data/spec/support/models/email.rb +0 -14
- data/spec/support/models/family.rb +1 -13
- data/spec/support/models/favorite.rb +0 -14
- data/spec/support/models/invoice.rb +0 -14
- data/spec/support/models/late_invoice.rb +0 -14
- data/spec/support/models/nested.rb +12 -0
- data/spec/support/models/ninja.rb +7 -0
- data/spec/support/models/note.rb +0 -14
- data/spec/support/models/page.rb +1 -15
- data/spec/support/models/paid_invoice.rb +0 -14
- data/spec/support/models/post.rb +12 -0
- data/spec/support/models/profile.rb +7 -0
- data/spec/support/models/subscription.rb +26 -0
- data/spec/support/models/tasks.rb +0 -18
- data/spec/support/models/team.rb +11 -0
- data/spec/support/models/transactions.rb +17 -0
- data/spec/support/models/tree.rb +2 -16
- data/spec/support/models/user.rb +14 -16
- data/spec/support/models/widget.rb +8 -14
- data/spec/support/search.rb +14 -0
- data/spec/support/test_server.rb +22 -12
- data/spec/support/test_server.yml.example +14 -2
- metadata +223 -59
- data/lib/rails/generators/ripple/test/templates/test_server.rb +0 -46
- data/spec/support/models/driver.rb +0 -5
- data/spec/support/models/engine.rb +0 -4
- data/spec/support/models/passenger.rb +0 -5
- data/spec/support/models/seat.rb +0 -4
- data/spec/support/models/wheel.rb +0 -5
metadata
CHANGED
@@ -1,69 +1,147 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ripple
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31098193
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- beta
|
11
|
+
version: 1.0.0.beta
|
6
12
|
platform: ruby
|
7
|
-
authors:
|
13
|
+
authors:
|
8
14
|
- Sean Cribbs
|
9
15
|
autorequire:
|
10
16
|
bindir: bin
|
11
17
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
18
|
+
|
19
|
+
date: 2011-11-08 00:00:00 -03:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
15
23
|
name: rspec
|
16
|
-
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
26
|
none: false
|
18
|
-
requirements:
|
27
|
+
requirements:
|
19
28
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 23
|
31
|
+
segments:
|
32
|
+
- 2
|
33
|
+
- 6
|
34
|
+
- 0
|
35
|
+
version: 2.6.0
|
22
36
|
type: :development
|
37
|
+
version_requirements: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: rake
|
23
40
|
prerelease: false
|
24
|
-
|
25
|
-
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 49
|
47
|
+
segments:
|
48
|
+
- 0
|
49
|
+
- 8
|
50
|
+
- 7
|
51
|
+
version: 0.8.7
|
52
|
+
type: :development
|
53
|
+
version_requirements: *id002
|
54
|
+
- !ruby/object:Gem::Dependency
|
26
55
|
name: riak-client
|
27
|
-
|
56
|
+
prerelease: false
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
28
58
|
none: false
|
29
|
-
requirements:
|
59
|
+
requirements:
|
30
60
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 31098193
|
63
|
+
segments:
|
64
|
+
- 1
|
65
|
+
- 0
|
66
|
+
- 0
|
67
|
+
- beta
|
68
|
+
version: 1.0.0.beta
|
33
69
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
70
|
+
version_requirements: *id003
|
71
|
+
- !ruby/object:Gem::Dependency
|
37
72
|
name: activesupport
|
38
|
-
|
73
|
+
prerelease: false
|
74
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
39
75
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
hash: 7
|
80
|
+
segments:
|
81
|
+
- 3
|
82
|
+
- 0
|
83
|
+
- 0
|
43
84
|
version: 3.0.0
|
85
|
+
- - <
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 15
|
88
|
+
segments:
|
89
|
+
- 3
|
90
|
+
- 2
|
91
|
+
- 0
|
92
|
+
version: 3.2.0
|
44
93
|
type: :runtime
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
94
|
+
version_requirements: *id004
|
95
|
+
- !ruby/object:Gem::Dependency
|
48
96
|
name: activemodel
|
49
|
-
|
97
|
+
prerelease: false
|
98
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
50
99
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
hash: 7
|
104
|
+
segments:
|
105
|
+
- 3
|
106
|
+
- 0
|
107
|
+
- 0
|
54
108
|
version: 3.0.0
|
109
|
+
- - <
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
hash: 15
|
112
|
+
segments:
|
113
|
+
- 3
|
114
|
+
- 2
|
115
|
+
- 0
|
116
|
+
version: 3.2.0
|
55
117
|
type: :runtime
|
118
|
+
version_requirements: *id005
|
119
|
+
- !ruby/object:Gem::Dependency
|
120
|
+
name: tzinfo
|
56
121
|
prerelease: false
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
122
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
hash: 3
|
128
|
+
segments:
|
129
|
+
- 0
|
130
|
+
version: "0"
|
131
|
+
type: :runtime
|
132
|
+
version_requirements: *id006
|
133
|
+
description: ripple is an object-mapper library for Riak, the distributed database by Basho. It uses ActiveModel to provide an experience that integrates well with Rails 3 applications.
|
134
|
+
email:
|
135
|
+
- sean@basho.com
|
62
136
|
executables: []
|
137
|
+
|
63
138
|
extensions: []
|
139
|
+
|
64
140
|
extra_rdoc_files: []
|
65
|
-
|
141
|
+
|
142
|
+
files:
|
66
143
|
- Gemfile
|
144
|
+
- Guardfile
|
67
145
|
- lib/rails/generators/ripple/configuration/configuration_generator.rb
|
68
146
|
- lib/rails/generators/ripple/configuration/templates/ripple.yml
|
69
147
|
- lib/rails/generators/ripple/js/js_generator.rb
|
@@ -74,7 +152,6 @@ files:
|
|
74
152
|
- lib/rails/generators/ripple/model/templates/model.rb
|
75
153
|
- lib/rails/generators/ripple/observer/observer_generator.rb
|
76
154
|
- lib/rails/generators/ripple/observer/templates/observer.rb
|
77
|
-
- lib/rails/generators/ripple/test/templates/test_server.rb
|
78
155
|
- lib/rails/generators/ripple/test/test_generator.rb
|
79
156
|
- lib/rails/generators/ripple_generator.rb
|
80
157
|
- lib/ripple/associations/embedded.rb
|
@@ -83,9 +160,13 @@ files:
|
|
83
160
|
- lib/ripple/associations/many.rb
|
84
161
|
- lib/ripple/associations/many_embedded_proxy.rb
|
85
162
|
- lib/ripple/associations/many_linked_proxy.rb
|
163
|
+
- lib/ripple/associations/many_reference_proxy.rb
|
164
|
+
- lib/ripple/associations/many_stored_key_proxy.rb
|
86
165
|
- lib/ripple/associations/one.rb
|
87
166
|
- lib/ripple/associations/one_embedded_proxy.rb
|
167
|
+
- lib/ripple/associations/one_key_proxy.rb
|
88
168
|
- lib/ripple/associations/one_linked_proxy.rb
|
169
|
+
- lib/ripple/associations/one_stored_key_proxy.rb
|
89
170
|
- lib/ripple/associations/proxy.rb
|
90
171
|
- lib/ripple/associations.rb
|
91
172
|
- lib/ripple/attribute_methods/dirty.rb
|
@@ -94,14 +175,22 @@ files:
|
|
94
175
|
- lib/ripple/attribute_methods/write.rb
|
95
176
|
- lib/ripple/attribute_methods.rb
|
96
177
|
- lib/ripple/callbacks.rb
|
178
|
+
- lib/ripple/conflict/#document_hooks.rb#
|
179
|
+
- lib/ripple/conflict/basic_resolver.rb
|
180
|
+
- lib/ripple/conflict/document_hooks.rb
|
181
|
+
- lib/ripple/conflict/resolver.rb
|
182
|
+
- lib/ripple/conflict/test_helper.rb
|
97
183
|
- lib/ripple/conversion.rb
|
98
184
|
- lib/ripple/core_ext/casting.rb
|
185
|
+
- lib/ripple/core_ext/object.rb
|
99
186
|
- lib/ripple/core_ext.rb
|
100
187
|
- lib/ripple/document/bucket_access.rb
|
101
188
|
- lib/ripple/document/finders.rb
|
102
189
|
- lib/ripple/document/key.rb
|
190
|
+
- lib/ripple/document/link.rb
|
103
191
|
- lib/ripple/document/persistence.rb
|
104
192
|
- lib/ripple/document.rb
|
193
|
+
- lib/ripple/embedded_document/around_callbacks.rb
|
105
194
|
- lib/ripple/embedded_document/finders.rb
|
106
195
|
- lib/ripple/embedded_document/persistence.rb
|
107
196
|
- lib/ripple/embedded_document.rb
|
@@ -113,30 +202,41 @@ files:
|
|
113
202
|
- lib/ripple/properties.rb
|
114
203
|
- lib/ripple/property_type_mismatch.rb
|
115
204
|
- lib/ripple/railtie.rb
|
205
|
+
- lib/ripple/railties/ripple.rake
|
116
206
|
- lib/ripple/serialization.rb
|
207
|
+
- lib/ripple/test_server.rb
|
117
208
|
- lib/ripple/timestamps.rb
|
118
209
|
- lib/ripple/translation.rb
|
119
210
|
- lib/ripple/validations/associated_validator.rb
|
120
211
|
- lib/ripple/validations.rb
|
212
|
+
- lib/ripple/version.rb
|
121
213
|
- lib/ripple.rb
|
122
214
|
- Rakefile
|
123
215
|
- ripple.gemspec
|
124
216
|
- spec/fixtures/config.yml
|
125
217
|
- spec/integration/ripple/associations_spec.rb
|
218
|
+
- spec/integration/ripple/conflict_resolution_spec.rb
|
126
219
|
- spec/integration/ripple/nested_attributes_spec.rb
|
127
220
|
- spec/integration/ripple/persistence_spec.rb
|
221
|
+
- spec/integration/ripple/search_associations_spec.rb
|
128
222
|
- spec/ripple/associations/many_embedded_proxy_spec.rb
|
129
223
|
- spec/ripple/associations/many_linked_proxy_spec.rb
|
224
|
+
- spec/ripple/associations/many_reference_proxy_spec.rb
|
225
|
+
- spec/ripple/associations/many_stored_key_proxy_spec.rb
|
130
226
|
- spec/ripple/associations/one_embedded_proxy_spec.rb
|
227
|
+
- spec/ripple/associations/one_key_proxy_spec.rb
|
131
228
|
- spec/ripple/associations/one_linked_proxy_spec.rb
|
229
|
+
- spec/ripple/associations/one_stored_key_proxy_spec.rb
|
132
230
|
- spec/ripple/associations/proxy_spec.rb
|
133
231
|
- spec/ripple/associations_spec.rb
|
134
232
|
- spec/ripple/attribute_methods/dirty_spec.rb
|
135
233
|
- spec/ripple/attribute_methods_spec.rb
|
136
234
|
- spec/ripple/bucket_access_spec.rb
|
137
235
|
- spec/ripple/callbacks_spec.rb
|
236
|
+
- spec/ripple/conflict/resolver_spec.rb
|
138
237
|
- spec/ripple/conversion_spec.rb
|
139
238
|
- spec/ripple/core_ext_spec.rb
|
239
|
+
- spec/ripple/document/link_spec.rb
|
140
240
|
- spec/ripple/document_spec.rb
|
141
241
|
- spec/ripple/embedded_document/finders_spec.rb
|
142
242
|
- spec/ripple/embedded_document/persistence_spec.rb
|
@@ -155,6 +255,7 @@ files:
|
|
155
255
|
- spec/spec_helper.rb
|
156
256
|
- spec/support/associations/proxies.rb
|
157
257
|
- spec/support/associations.rb
|
258
|
+
- spec/support/integration_setup.rb
|
158
259
|
- spec/support/mocks.rb
|
159
260
|
- spec/support/models/address.rb
|
160
261
|
- spec/support/models/box.rb
|
@@ -163,68 +264,93 @@ files:
|
|
163
264
|
- spec/support/models/clock.rb
|
164
265
|
- spec/support/models/clock_observer.rb
|
165
266
|
- spec/support/models/company.rb
|
267
|
+
- spec/support/models/credit_card.rb
|
166
268
|
- spec/support/models/customer.rb
|
167
|
-
- spec/support/models/driver.rb
|
168
269
|
- spec/support/models/email.rb
|
169
|
-
- spec/support/models/engine.rb
|
170
270
|
- spec/support/models/family.rb
|
171
271
|
- spec/support/models/favorite.rb
|
172
272
|
- spec/support/models/invoice.rb
|
173
273
|
- spec/support/models/late_invoice.rb
|
274
|
+
- spec/support/models/nested.rb
|
275
|
+
- spec/support/models/ninja.rb
|
174
276
|
- spec/support/models/note.rb
|
175
277
|
- spec/support/models/page.rb
|
176
278
|
- spec/support/models/paid_invoice.rb
|
177
|
-
- spec/support/models/
|
178
|
-
- spec/support/models/
|
279
|
+
- spec/support/models/post.rb
|
280
|
+
- spec/support/models/profile.rb
|
281
|
+
- spec/support/models/subscription.rb
|
179
282
|
- spec/support/models/tasks.rb
|
283
|
+
- spec/support/models/team.rb
|
284
|
+
- spec/support/models/transactions.rb
|
180
285
|
- spec/support/models/tree.rb
|
181
286
|
- spec/support/models/user.rb
|
182
|
-
- spec/support/models/wheel.rb
|
183
287
|
- spec/support/models/widget.rb
|
184
288
|
- spec/support/models.rb
|
289
|
+
- spec/support/search.rb
|
185
290
|
- spec/support/test_server.rb
|
186
291
|
- spec/support/test_server.yml.example
|
292
|
+
- .gitignore
|
293
|
+
has_rdoc: true
|
187
294
|
homepage: http://seancribbs.github.com/ripple
|
188
295
|
licenses: []
|
296
|
+
|
189
297
|
post_install_message:
|
190
298
|
rdoc_options: []
|
191
|
-
|
299
|
+
|
300
|
+
require_paths:
|
192
301
|
- lib
|
193
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
302
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
194
303
|
none: false
|
195
|
-
requirements:
|
196
|
-
- -
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
|
199
|
-
|
304
|
+
requirements:
|
305
|
+
- - ">="
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
hash: 3
|
308
|
+
segments:
|
309
|
+
- 0
|
310
|
+
version: "0"
|
311
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
312
|
none: false
|
201
|
-
requirements:
|
202
|
-
- -
|
203
|
-
- !ruby/object:Gem::Version
|
204
|
-
|
313
|
+
requirements:
|
314
|
+
- - ">"
|
315
|
+
- !ruby/object:Gem::Version
|
316
|
+
hash: 25
|
317
|
+
segments:
|
318
|
+
- 1
|
319
|
+
- 3
|
320
|
+
- 1
|
321
|
+
version: 1.3.1
|
205
322
|
requirements: []
|
323
|
+
|
206
324
|
rubyforge_project:
|
207
|
-
rubygems_version: 1.
|
325
|
+
rubygems_version: 1.6.2
|
208
326
|
signing_key:
|
209
327
|
specification_version: 3
|
210
|
-
summary: ripple is an object-mapper library for Riak, the distributed database by
|
211
|
-
|
212
|
-
|
328
|
+
summary: ripple is an object-mapper library for Riak, the distributed database by Basho.
|
329
|
+
test_files:
|
330
|
+
- spec/fixtures/config.yml
|
213
331
|
- spec/integration/ripple/associations_spec.rb
|
332
|
+
- spec/integration/ripple/conflict_resolution_spec.rb
|
214
333
|
- spec/integration/ripple/nested_attributes_spec.rb
|
215
334
|
- spec/integration/ripple/persistence_spec.rb
|
335
|
+
- spec/integration/ripple/search_associations_spec.rb
|
216
336
|
- spec/ripple/associations/many_embedded_proxy_spec.rb
|
217
337
|
- spec/ripple/associations/many_linked_proxy_spec.rb
|
338
|
+
- spec/ripple/associations/many_reference_proxy_spec.rb
|
339
|
+
- spec/ripple/associations/many_stored_key_proxy_spec.rb
|
218
340
|
- spec/ripple/associations/one_embedded_proxy_spec.rb
|
341
|
+
- spec/ripple/associations/one_key_proxy_spec.rb
|
219
342
|
- spec/ripple/associations/one_linked_proxy_spec.rb
|
343
|
+
- spec/ripple/associations/one_stored_key_proxy_spec.rb
|
220
344
|
- spec/ripple/associations/proxy_spec.rb
|
221
345
|
- spec/ripple/associations_spec.rb
|
222
346
|
- spec/ripple/attribute_methods/dirty_spec.rb
|
223
347
|
- spec/ripple/attribute_methods_spec.rb
|
224
348
|
- spec/ripple/bucket_access_spec.rb
|
225
349
|
- spec/ripple/callbacks_spec.rb
|
350
|
+
- spec/ripple/conflict/resolver_spec.rb
|
226
351
|
- spec/ripple/conversion_spec.rb
|
227
352
|
- spec/ripple/core_ext_spec.rb
|
353
|
+
- spec/ripple/document/link_spec.rb
|
228
354
|
- spec/ripple/document_spec.rb
|
229
355
|
- spec/ripple/embedded_document/finders_spec.rb
|
230
356
|
- spec/ripple/embedded_document/persistence_spec.rb
|
@@ -240,3 +366,41 @@ test_files:
|
|
240
366
|
- spec/ripple/timestamps_spec.rb
|
241
367
|
- spec/ripple/validations/associated_validator_spec.rb
|
242
368
|
- spec/ripple/validations_spec.rb
|
369
|
+
- spec/spec_helper.rb
|
370
|
+
- spec/support/associations/proxies.rb
|
371
|
+
- spec/support/associations.rb
|
372
|
+
- spec/support/integration_setup.rb
|
373
|
+
- spec/support/mocks.rb
|
374
|
+
- spec/support/models/address.rb
|
375
|
+
- spec/support/models/box.rb
|
376
|
+
- spec/support/models/car.rb
|
377
|
+
- spec/support/models/cardboard_box.rb
|
378
|
+
- spec/support/models/clock.rb
|
379
|
+
- spec/support/models/clock_observer.rb
|
380
|
+
- spec/support/models/company.rb
|
381
|
+
- spec/support/models/credit_card.rb
|
382
|
+
- spec/support/models/customer.rb
|
383
|
+
- spec/support/models/email.rb
|
384
|
+
- spec/support/models/family.rb
|
385
|
+
- spec/support/models/favorite.rb
|
386
|
+
- spec/support/models/invoice.rb
|
387
|
+
- spec/support/models/late_invoice.rb
|
388
|
+
- spec/support/models/nested.rb
|
389
|
+
- spec/support/models/ninja.rb
|
390
|
+
- spec/support/models/note.rb
|
391
|
+
- spec/support/models/page.rb
|
392
|
+
- spec/support/models/paid_invoice.rb
|
393
|
+
- spec/support/models/post.rb
|
394
|
+
- spec/support/models/profile.rb
|
395
|
+
- spec/support/models/subscription.rb
|
396
|
+
- spec/support/models/tasks.rb
|
397
|
+
- spec/support/models/team.rb
|
398
|
+
- spec/support/models/transactions.rb
|
399
|
+
- spec/support/models/tree.rb
|
400
|
+
- spec/support/models/user.rb
|
401
|
+
- spec/support/models/widget.rb
|
402
|
+
- spec/support/models.rb
|
403
|
+
- spec/support/search.rb
|
404
|
+
- spec/support/test_server.rb
|
405
|
+
- spec/support/test_server.yml.example
|
406
|
+
- .gitignore
|
@@ -1,46 +0,0 @@
|
|
1
|
-
require 'riak/test_server'
|
2
|
-
|
3
|
-
module Ripple
|
4
|
-
module TestServer
|
5
|
-
extend self
|
6
|
-
|
7
|
-
# Tweak this to change how your test server is configured
|
8
|
-
def test_server_config
|
9
|
-
{
|
10
|
-
:app_config => {
|
11
|
-
:riak_kv => {
|
12
|
-
:js_source_dir => Ripple.config.delete(:js_source_dir),
|
13
|
-
:map_cache_size => 0, # 0.14
|
14
|
-
:vnode_cache_entries => 0 # 0.13
|
15
|
-
},
|
16
|
-
:riak_core => { :web_port => Ripple.config[:http_port] || 8098 }
|
17
|
-
},
|
18
|
-
:bin_dir => Ripple.config.delete(:bin_dir),
|
19
|
-
:temp_dir => Rails.root + "tmp/riak_test_server"
|
20
|
-
}
|
21
|
-
end
|
22
|
-
|
23
|
-
# Prepares the subprocess Riak node for the test suite
|
24
|
-
def setup
|
25
|
-
unless @test_server
|
26
|
-
begin
|
27
|
-
_server = @test_server = Riak::TestServer.new(test_server_config)
|
28
|
-
@test_server.prepare!
|
29
|
-
@test_server.start
|
30
|
-
at_exit { _server.cleanup }
|
31
|
-
rescue => e
|
32
|
-
warn "Can't run tests with Riak::TestServer. Specify the location of your Riak installation in the config/ripple.yml #{Rails.env} environment."
|
33
|
-
warn e.inspect
|
34
|
-
@test_server = nil
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
# Clear the data after each test run
|
40
|
-
def clear
|
41
|
-
@test_server.recycle if @test_server
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
Ripple::TestServer.setup
|