couch_visible 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -0
- data/features/configuration.feature +57 -0
- data/features/hide.feature +29 -0
- data/features/memories_integration.feature +9 -0
- data/features/show.feature +29 -0
- data/features/step_definitions/configuration_steps.rb +57 -0
- data/features/step_definitions/configuration_steps.rbc +1500 -0
- data/features/step_definitions/hide_steps.rb +58 -0
- data/features/step_definitions/hide_steps.rbc +1907 -0
- data/features/step_definitions/memories_integration_steps.rb +13 -0
- data/features/step_definitions/memories_integration_steps.rbc +447 -0
- data/features/step_definitions/show_steps.rb +36 -0
- data/features/step_definitions/show_steps.rbc +1152 -0
- data/features/support/env.rb +24 -0
- data/features/support/env.rbc +518 -0
- data/lib/couch_visible/config.rb +25 -0
- data/lib/couch_visible/config.rbc +553 -0
- data/lib/couch_visible/couch_visible.rb +78 -0
- data/lib/couch_visible/couch_visible.rbc +1587 -0
- data/lib/couch_visible.rb +2 -0
- data/lib/couch_visible.rbc +69 -0
- data/readme.markdown +118 -0
- metadata +42 -8
@@ -0,0 +1,13 @@
|
|
1
|
+
Given /^I have a model that includes Memories$/ do
|
2
|
+
class VersionedModel < CouchRest::Model::Base
|
3
|
+
include Memories
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
When /^I mix CouchVisible into that model$/ do
|
8
|
+
VersionedModel.send :include, CouchVisible
|
9
|
+
end
|
10
|
+
|
11
|
+
Then /^the "([^"]*)" property should not be versioned$/ do |property|
|
12
|
+
VersionedModel.forget_properties.include?(property).should be(true)
|
13
|
+
end
|
@@ -0,0 +1,447 @@
|
|
1
|
+
!RBIX
|
2
|
+
17831730954501249321
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
80
|
13
|
+
5
|
14
|
+
7
|
15
|
+
0
|
16
|
+
13
|
17
|
+
70
|
18
|
+
9
|
19
|
+
19
|
20
|
+
15
|
21
|
+
44
|
22
|
+
43
|
23
|
+
1
|
24
|
+
7
|
25
|
+
2
|
26
|
+
78
|
27
|
+
49
|
28
|
+
3
|
29
|
+
2
|
30
|
+
6
|
31
|
+
0
|
32
|
+
56
|
33
|
+
4
|
34
|
+
47
|
35
|
+
50
|
36
|
+
5
|
37
|
+
1
|
38
|
+
15
|
39
|
+
5
|
40
|
+
7
|
41
|
+
6
|
42
|
+
13
|
43
|
+
70
|
44
|
+
9
|
45
|
+
45
|
46
|
+
15
|
47
|
+
44
|
48
|
+
43
|
49
|
+
1
|
50
|
+
7
|
51
|
+
7
|
52
|
+
78
|
53
|
+
49
|
54
|
+
3
|
55
|
+
2
|
56
|
+
6
|
57
|
+
6
|
58
|
+
56
|
59
|
+
8
|
60
|
+
47
|
61
|
+
50
|
62
|
+
9
|
63
|
+
1
|
64
|
+
15
|
65
|
+
5
|
66
|
+
7
|
67
|
+
10
|
68
|
+
13
|
69
|
+
70
|
70
|
+
9
|
71
|
+
71
|
72
|
+
15
|
73
|
+
44
|
74
|
+
43
|
75
|
+
1
|
76
|
+
7
|
77
|
+
11
|
78
|
+
78
|
79
|
+
49
|
80
|
+
3
|
81
|
+
2
|
82
|
+
6
|
83
|
+
10
|
84
|
+
56
|
85
|
+
12
|
86
|
+
47
|
87
|
+
50
|
88
|
+
13
|
89
|
+
1
|
90
|
+
15
|
91
|
+
2
|
92
|
+
11
|
93
|
+
I
|
94
|
+
4
|
95
|
+
I
|
96
|
+
0
|
97
|
+
I
|
98
|
+
0
|
99
|
+
I
|
100
|
+
0
|
101
|
+
n
|
102
|
+
p
|
103
|
+
14
|
104
|
+
n
|
105
|
+
x
|
106
|
+
6
|
107
|
+
Regexp
|
108
|
+
s
|
109
|
+
39
|
110
|
+
^I have a model that includes Memories$
|
111
|
+
x
|
112
|
+
3
|
113
|
+
new
|
114
|
+
M
|
115
|
+
1
|
116
|
+
p
|
117
|
+
2
|
118
|
+
x
|
119
|
+
9
|
120
|
+
for_block
|
121
|
+
t
|
122
|
+
n
|
123
|
+
x
|
124
|
+
9
|
125
|
+
__block__
|
126
|
+
i
|
127
|
+
33
|
128
|
+
99
|
129
|
+
7
|
130
|
+
0
|
131
|
+
45
|
132
|
+
1
|
133
|
+
2
|
134
|
+
43
|
135
|
+
3
|
136
|
+
43
|
137
|
+
4
|
138
|
+
65
|
139
|
+
49
|
140
|
+
5
|
141
|
+
3
|
142
|
+
13
|
143
|
+
99
|
144
|
+
12
|
145
|
+
7
|
146
|
+
6
|
147
|
+
12
|
148
|
+
7
|
149
|
+
7
|
150
|
+
12
|
151
|
+
65
|
152
|
+
12
|
153
|
+
49
|
154
|
+
8
|
155
|
+
4
|
156
|
+
15
|
157
|
+
49
|
158
|
+
6
|
159
|
+
0
|
160
|
+
11
|
161
|
+
I
|
162
|
+
7
|
163
|
+
I
|
164
|
+
0
|
165
|
+
I
|
166
|
+
0
|
167
|
+
I
|
168
|
+
0
|
169
|
+
I
|
170
|
+
-2
|
171
|
+
p
|
172
|
+
9
|
173
|
+
x
|
174
|
+
14
|
175
|
+
VersionedModel
|
176
|
+
x
|
177
|
+
9
|
178
|
+
CouchRest
|
179
|
+
n
|
180
|
+
x
|
181
|
+
5
|
182
|
+
Model
|
183
|
+
x
|
184
|
+
4
|
185
|
+
Base
|
186
|
+
x
|
187
|
+
10
|
188
|
+
open_class
|
189
|
+
x
|
190
|
+
14
|
191
|
+
__class_init__
|
192
|
+
M
|
193
|
+
1
|
194
|
+
n
|
195
|
+
n
|
196
|
+
x
|
197
|
+
14
|
198
|
+
VersionedModel
|
199
|
+
i
|
200
|
+
11
|
201
|
+
5
|
202
|
+
66
|
203
|
+
5
|
204
|
+
45
|
205
|
+
0
|
206
|
+
1
|
207
|
+
47
|
208
|
+
49
|
209
|
+
2
|
210
|
+
1
|
211
|
+
11
|
212
|
+
I
|
213
|
+
2
|
214
|
+
I
|
215
|
+
0
|
216
|
+
I
|
217
|
+
0
|
218
|
+
I
|
219
|
+
0
|
220
|
+
n
|
221
|
+
p
|
222
|
+
3
|
223
|
+
x
|
224
|
+
8
|
225
|
+
Memories
|
226
|
+
n
|
227
|
+
x
|
228
|
+
7
|
229
|
+
include
|
230
|
+
p
|
231
|
+
3
|
232
|
+
I
|
233
|
+
2
|
234
|
+
I
|
235
|
+
3
|
236
|
+
I
|
237
|
+
b
|
238
|
+
x
|
239
|
+
96
|
240
|
+
/Users/mparker/work/github/couch_visible/features/step_definitions/memories_integration_steps.rb
|
241
|
+
p
|
242
|
+
0
|
243
|
+
x
|
244
|
+
13
|
245
|
+
attach_method
|
246
|
+
p
|
247
|
+
3
|
248
|
+
I
|
249
|
+
0
|
250
|
+
I
|
251
|
+
2
|
252
|
+
I
|
253
|
+
21
|
254
|
+
x
|
255
|
+
96
|
256
|
+
/Users/mparker/work/github/couch_visible/features/step_definitions/memories_integration_steps.rb
|
257
|
+
p
|
258
|
+
0
|
259
|
+
x
|
260
|
+
5
|
261
|
+
Given
|
262
|
+
n
|
263
|
+
s
|
264
|
+
36
|
265
|
+
^I mix CouchVisible into that model$
|
266
|
+
M
|
267
|
+
1
|
268
|
+
p
|
269
|
+
2
|
270
|
+
x
|
271
|
+
9
|
272
|
+
for_block
|
273
|
+
t
|
274
|
+
n
|
275
|
+
x
|
276
|
+
9
|
277
|
+
__block__
|
278
|
+
i
|
279
|
+
12
|
280
|
+
45
|
281
|
+
0
|
282
|
+
1
|
283
|
+
7
|
284
|
+
2
|
285
|
+
45
|
286
|
+
3
|
287
|
+
4
|
288
|
+
49
|
289
|
+
5
|
290
|
+
2
|
291
|
+
11
|
292
|
+
I
|
293
|
+
4
|
294
|
+
I
|
295
|
+
0
|
296
|
+
I
|
297
|
+
0
|
298
|
+
I
|
299
|
+
0
|
300
|
+
I
|
301
|
+
-2
|
302
|
+
p
|
303
|
+
6
|
304
|
+
x
|
305
|
+
14
|
306
|
+
VersionedModel
|
307
|
+
n
|
308
|
+
x
|
309
|
+
7
|
310
|
+
include
|
311
|
+
x
|
312
|
+
12
|
313
|
+
CouchVisible
|
314
|
+
n
|
315
|
+
x
|
316
|
+
4
|
317
|
+
send
|
318
|
+
p
|
319
|
+
3
|
320
|
+
I
|
321
|
+
0
|
322
|
+
I
|
323
|
+
8
|
324
|
+
I
|
325
|
+
c
|
326
|
+
x
|
327
|
+
96
|
328
|
+
/Users/mparker/work/github/couch_visible/features/step_definitions/memories_integration_steps.rb
|
329
|
+
p
|
330
|
+
0
|
331
|
+
x
|
332
|
+
4
|
333
|
+
When
|
334
|
+
n
|
335
|
+
s
|
336
|
+
48
|
337
|
+
^the "([^"]*)" property should not be versioned$
|
338
|
+
M
|
339
|
+
1
|
340
|
+
p
|
341
|
+
2
|
342
|
+
x
|
343
|
+
9
|
344
|
+
for_block
|
345
|
+
t
|
346
|
+
n
|
347
|
+
x
|
348
|
+
9
|
349
|
+
__block__
|
350
|
+
i
|
351
|
+
25
|
352
|
+
57
|
353
|
+
19
|
354
|
+
0
|
355
|
+
15
|
356
|
+
45
|
357
|
+
0
|
358
|
+
1
|
359
|
+
49
|
360
|
+
2
|
361
|
+
0
|
362
|
+
20
|
363
|
+
0
|
364
|
+
49
|
365
|
+
3
|
366
|
+
1
|
367
|
+
5
|
368
|
+
2
|
369
|
+
47
|
370
|
+
49
|
371
|
+
4
|
372
|
+
1
|
373
|
+
49
|
374
|
+
5
|
375
|
+
1
|
376
|
+
11
|
377
|
+
I
|
378
|
+
5
|
379
|
+
I
|
380
|
+
1
|
381
|
+
I
|
382
|
+
1
|
383
|
+
I
|
384
|
+
1
|
385
|
+
n
|
386
|
+
p
|
387
|
+
6
|
388
|
+
x
|
389
|
+
14
|
390
|
+
VersionedModel
|
391
|
+
n
|
392
|
+
x
|
393
|
+
17
|
394
|
+
forget_properties
|
395
|
+
x
|
396
|
+
8
|
397
|
+
include?
|
398
|
+
x
|
399
|
+
2
|
400
|
+
be
|
401
|
+
x
|
402
|
+
6
|
403
|
+
should
|
404
|
+
p
|
405
|
+
5
|
406
|
+
I
|
407
|
+
0
|
408
|
+
I
|
409
|
+
b
|
410
|
+
I
|
411
|
+
4
|
412
|
+
I
|
413
|
+
c
|
414
|
+
I
|
415
|
+
19
|
416
|
+
x
|
417
|
+
96
|
418
|
+
/Users/mparker/work/github/couch_visible/features/step_definitions/memories_integration_steps.rb
|
419
|
+
p
|
420
|
+
1
|
421
|
+
x
|
422
|
+
8
|
423
|
+
property
|
424
|
+
x
|
425
|
+
4
|
426
|
+
Then
|
427
|
+
p
|
428
|
+
7
|
429
|
+
I
|
430
|
+
0
|
431
|
+
I
|
432
|
+
1
|
433
|
+
I
|
434
|
+
1a
|
435
|
+
I
|
436
|
+
7
|
437
|
+
I
|
438
|
+
34
|
439
|
+
I
|
440
|
+
b
|
441
|
+
I
|
442
|
+
50
|
443
|
+
x
|
444
|
+
96
|
445
|
+
/Users/mparker/work/github/couch_visible/features/step_definitions/memories_integration_steps.rb
|
446
|
+
p
|
447
|
+
0
|