card 1.16.12 → 1.16.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/card.gemspec +1 -1
  4. data/db/migrate_core_cards/20130823192433_add_style_cards.rb +39 -24
  5. data/db/migrate_core_cards/20140629222005_add_email_cards.rb +6 -11
  6. data/db/migrate_core_cards/20151120180631_add_token_expiration.rb +7 -0
  7. data/db/seed/new/card_actions.yml +396 -388
  8. data/db/seed/new/card_acts.yml +1 -595
  9. data/db/seed/new/card_changes.yml +8154 -23619
  10. data/db/seed/new/card_references.yml +1009 -988
  11. data/db/seed/new/cards.yml +1445 -1423
  12. data/db/seed/test/fixtures/card_actions.yml +1375 -1399
  13. data/db/seed/test/fixtures/card_acts.yml +445 -1063
  14. data/db/seed/test/fixtures/card_changes.yml +11440 -26881
  15. data/db/seed/test/fixtures/card_references.yml +1523 -1502
  16. data/db/seed/test/fixtures/cards.yml +2736 -2715
  17. data/db/seed/test/seed.rb +7 -10
  18. data/db/version_core_cards.txt +1 -1
  19. data/lib/card/auth.rb +65 -19
  20. data/lib/card/cache.rb +18 -18
  21. data/lib/card/env.rb +10 -10
  22. data/lib/card/format.rb +41 -30
  23. data/lib/card/location.rb +3 -5
  24. data/lib/card/subcards.rb +0 -3
  25. data/lib/card/success.rb +14 -11
  26. data/mod/01_core/set/all/subcards.rb +4 -2
  27. data/mod/01_core/set/all/trash.rb +4 -1
  28. data/mod/02_basic_types/set/type/pointer.rb +5 -2
  29. data/mod/05_email/set/all/notify.rb +85 -73
  30. data/mod/05_email/spec/set/all/notify_spec.rb +74 -55
  31. data/mod/05_standard/set/all/comment.rb +18 -12
  32. data/mod/05_standard/set/all/error.rb +5 -1
  33. data/mod/05_standard/set/right/account.rb +50 -73
  34. data/mod/05_standard/set/right/token.rb +49 -2
  35. data/mod/05_standard/set/self/signin.rb +14 -12
  36. data/mod/05_standard/set/type/signup.rb +17 -21
  37. data/mod/05_standard/spec/set/all/account_spec.rb +1 -1
  38. data/mod/05_standard/spec/set/right/account_spec.rb +76 -52
  39. data/mod/05_standard/spec/set/right/password_spec.rb +10 -11
  40. data/mod/05_standard/spec/set/right/token_spec.rb +19 -1
  41. data/mod/05_standard/spec/set/type/signup_spec.rb +3 -4
  42. data/spec/lib/card/auth_spec.rb +46 -5
  43. metadata +5 -4
@@ -3,599 +3,5 @@ card_acts_001:
3
3
  id: 1
4
4
  card_id: 1
5
5
  actor_id: 1
6
- acted_at: 2015-10-13 14:03:27.000000000 Z
7
- ip_address:
8
- card_acts_002:
9
- id: 2
10
- card_id: 149
11
- actor_id: 1
12
- acted_at: 2015-10-13 14:03:27.000000000 Z
13
- ip_address:
14
- card_acts_003:
15
- id: 3
16
- card_id: 150
17
- actor_id: 1
18
- acted_at: 2015-10-13 14:03:27.000000000 Z
19
- ip_address:
20
- card_acts_004:
21
- id: 4
22
- card_id: 156
23
- actor_id: 1
24
- acted_at: 2015-10-13 14:03:27.000000000 Z
25
- ip_address:
26
- card_acts_005:
27
- id: 5
28
- card_id: 986
29
- actor_id: 1
30
- acted_at: 2015-10-13 14:03:27.000000000 Z
31
- ip_address:
32
- card_acts_006:
33
- id: 6
34
- card_id: 791
35
- actor_id: 1
36
- acted_at: 2015-10-13 14:03:27.000000000 Z
37
- ip_address:
38
- card_acts_007:
39
- id: 7
40
- card_id: 154
41
- actor_id: 1
42
- acted_at: 2015-10-13 14:03:27.000000000 Z
43
- ip_address:
44
- card_acts_008:
45
- id: 8
46
- card_id: 159
47
- actor_id: 1
48
- acted_at: 2015-10-13 14:03:27.000000000 Z
49
- ip_address:
50
- card_acts_009:
51
- id: 9
52
- card_id: 161
53
- actor_id: 1
54
- acted_at: 2015-10-13 14:03:27.000000000 Z
55
- ip_address:
56
- card_acts_010:
57
- id: 10
58
- card_id: 224
59
- actor_id: 1
60
- acted_at: 2015-10-13 14:03:27.000000000 Z
61
- ip_address:
62
- card_acts_011:
63
- id: 11
64
- card_id: 360
65
- actor_id: 1
66
- acted_at: 2015-10-13 14:03:27.000000000 Z
67
- ip_address:
68
- card_acts_012:
69
- id: 12
70
- card_id: 362
71
- actor_id: 1
72
- acted_at: 2015-10-13 14:03:27.000000000 Z
73
- ip_address:
74
- card_acts_013:
75
- id: 13
76
- card_id: 404
77
- actor_id: 1
78
- acted_at: 2015-10-13 14:03:27.000000000 Z
79
- ip_address:
80
- card_acts_014:
81
- id: 14
82
- card_id: 1088
83
- actor_id: 1
84
- acted_at: 2015-10-13 14:03:27.000000000 Z
85
- ip_address:
86
- card_acts_015:
87
- id: 15
88
- card_id: 1525
89
- actor_id: 1
90
- acted_at: 2015-10-13 14:03:27.000000000 Z
91
- ip_address:
92
- card_acts_016:
93
- id: 16
94
- card_id: 1064
95
- actor_id: 1
96
- acted_at: 2015-10-13 14:03:27.000000000 Z
97
- ip_address:
98
- card_acts_017:
99
- id: 17
100
- card_id: 1066
101
- actor_id: 1
102
- acted_at: 2015-10-13 14:03:27.000000000 Z
103
- ip_address:
104
- card_acts_018:
105
- id: 18
106
- card_id: 1412
107
- actor_id: 1
108
- acted_at: 2015-10-13 14:03:27.000000000 Z
109
- ip_address:
110
- card_acts_019:
111
- id: 19
112
- card_id: 1506
113
- actor_id: 1
114
- acted_at: 2015-10-13 14:03:27.000000000 Z
115
- ip_address:
116
- card_acts_020:
117
- id: 20
118
- card_id: 1404
119
- actor_id: 1
120
- acted_at: 2015-10-13 14:03:27.000000000 Z
121
- ip_address:
122
- card_acts_021:
123
- id: 21
124
- card_id: 1408
125
- actor_id: 1
126
- acted_at: 2015-10-13 14:03:27.000000000 Z
127
- ip_address:
128
- card_acts_022:
129
- id: 22
130
- card_id: 1499
131
- actor_id: 1
132
- acted_at: 2015-10-13 14:03:27.000000000 Z
133
- ip_address:
134
- card_acts_023:
135
- id: 23
136
- card_id: 1501
137
- actor_id: 1
138
- acted_at: 2015-10-13 14:03:27.000000000 Z
139
- ip_address:
140
- card_acts_024:
141
- id: 24
142
- card_id: 1503
143
- actor_id: 1
144
- acted_at: 2015-10-13 14:03:27.000000000 Z
145
- ip_address:
146
- card_acts_025:
147
- id: 25
148
- card_id: 1505
149
- actor_id: 1
150
- acted_at: 2015-10-13 14:03:27.000000000 Z
151
- ip_address:
152
- card_acts_026:
153
- id: 26
154
- card_id: 1396
155
- actor_id: 1
156
- acted_at: 2015-10-13 14:03:27.000000000 Z
157
- ip_address:
158
- card_acts_027:
159
- id: 27
160
- card_id: 1400
161
- actor_id: 1
162
- acted_at: 2015-10-13 14:03:27.000000000 Z
163
- ip_address:
164
- card_acts_028:
165
- id: 28
166
- card_id: 1491
167
- actor_id: 1
168
- acted_at: 2015-10-13 14:03:27.000000000 Z
169
- ip_address:
170
- card_acts_029:
171
- id: 29
172
- card_id: 1493
173
- actor_id: 1
174
- acted_at: 2015-10-13 14:03:27.000000000 Z
175
- ip_address:
176
- card_acts_030:
177
- id: 30
178
- card_id: 1495
179
- actor_id: 1
180
- acted_at: 2015-10-13 14:03:27.000000000 Z
181
- ip_address:
182
- card_acts_031:
183
- id: 31
184
- card_id: 1497
185
- actor_id: 1
186
- acted_at: 2015-10-13 14:03:27.000000000 Z
187
- ip_address:
188
- card_acts_032:
189
- id: 32
190
- card_id: 1392
191
- actor_id: 1
192
- acted_at: 2015-10-13 14:03:27.000000000 Z
193
- ip_address:
194
- card_acts_033:
195
- id: 33
196
- card_id: 1483
197
- actor_id: 1
198
- acted_at: 2015-10-13 14:03:27.000000000 Z
199
- ip_address:
200
- card_acts_034:
201
- id: 34
202
- card_id: 1485
203
- actor_id: 1
204
- acted_at: 2015-10-13 14:03:27.000000000 Z
205
- ip_address:
206
- card_acts_035:
207
- id: 35
208
- card_id: 1487
209
- actor_id: 1
210
- acted_at: 2015-10-13 14:03:27.000000000 Z
211
- ip_address:
212
- card_acts_036:
213
- id: 36
214
- card_id: 1489
215
- actor_id: 1
216
- acted_at: 2015-10-13 14:03:27.000000000 Z
217
- ip_address:
218
- card_acts_037:
219
- id: 37
220
- card_id: 1380
221
- actor_id: 1
222
- acted_at: 2015-10-13 14:03:27.000000000 Z
223
- ip_address:
224
- card_acts_038:
225
- id: 38
226
- card_id: 1384
227
- actor_id: 1
228
- acted_at: 2015-10-13 14:03:27.000000000 Z
229
- ip_address:
230
- card_acts_039:
231
- id: 39
232
- card_id: 1473
233
- actor_id: 1
234
- acted_at: 2015-10-13 14:03:27.000000000 Z
235
- ip_address:
236
- card_acts_040:
237
- id: 40
238
- card_id: 1388
239
- actor_id: 1
240
- acted_at: 2015-10-13 14:03:27.000000000 Z
241
- ip_address:
242
- card_acts_041:
243
- id: 41
244
- card_id: 1475
245
- actor_id: 1
246
- acted_at: 2015-10-13 14:03:27.000000000 Z
247
- ip_address:
248
- card_acts_042:
249
- id: 42
250
- card_id: 1477
251
- actor_id: 1
252
- acted_at: 2015-10-13 14:03:27.000000000 Z
253
- ip_address:
254
- card_acts_043:
255
- id: 43
256
- card_id: 1479
257
- actor_id: 1
258
- acted_at: 2015-10-13 14:03:27.000000000 Z
259
- ip_address:
260
- card_acts_044:
261
- id: 44
262
- card_id: 1481
263
- actor_id: 1
264
- acted_at: 2015-10-13 14:03:27.000000000 Z
265
- ip_address:
266
- card_acts_045:
267
- id: 45
268
- card_id: 1467
269
- actor_id: 1
270
- acted_at: 2015-10-13 14:03:27.000000000 Z
271
- ip_address:
272
- card_acts_046:
273
- id: 46
274
- card_id: 1469
275
- actor_id: 1
276
- acted_at: 2015-10-13 14:03:27.000000000 Z
277
- ip_address:
278
- card_acts_047:
279
- id: 47
280
- card_id: 1471
281
- actor_id: 1
282
- acted_at: 2015-10-13 14:03:27.000000000 Z
283
- ip_address:
284
- card_acts_048:
285
- id: 48
286
- card_id: 1372
287
- actor_id: 1
288
- acted_at: 2015-10-13 14:03:27.000000000 Z
289
- ip_address:
290
- card_acts_049:
291
- id: 49
292
- card_id: 1463
293
- actor_id: 1
294
- acted_at: 2015-10-13 14:03:27.000000000 Z
295
- ip_address:
296
- card_acts_050:
297
- id: 50
298
- card_id: 1376
299
- actor_id: 1
300
- acted_at: 2015-10-13 14:03:27.000000000 Z
301
- ip_address:
302
- card_acts_051:
303
- id: 51
304
- card_id: 1465
305
- actor_id: 1
306
- acted_at: 2015-10-13 14:03:27.000000000 Z
307
- ip_address:
308
- card_acts_052:
309
- id: 52
310
- card_id: 1360
311
- actor_id: 1
312
- acted_at: 2015-10-13 14:03:27.000000000 Z
313
- ip_address:
314
- card_acts_053:
315
- id: 53
316
- card_id: 1364
317
- actor_id: 1
318
- acted_at: 2015-10-13 14:03:27.000000000 Z
319
- ip_address:
320
- card_acts_054:
321
- id: 54
322
- card_id: 1455
323
- actor_id: 1
324
- acted_at: 2015-10-13 14:03:27.000000000 Z
325
- ip_address:
326
- card_acts_055:
327
- id: 55
328
- card_id: 1368
329
- actor_id: 1
330
- acted_at: 2015-10-13 14:03:27.000000000 Z
331
- ip_address:
332
- card_acts_056:
333
- id: 56
334
- card_id: 1457
335
- actor_id: 1
336
- acted_at: 2015-10-13 14:03:27.000000000 Z
337
- ip_address:
338
- card_acts_057:
339
- id: 57
340
- card_id: 1459
341
- actor_id: 1
342
- acted_at: 2015-10-13 14:03:27.000000000 Z
343
- ip_address:
344
- card_acts_058:
345
- id: 58
346
- card_id: 1461
347
- actor_id: 1
348
- acted_at: 2015-10-13 14:03:27.000000000 Z
349
- ip_address:
350
- card_acts_059:
351
- id: 59
352
- card_id: 1352
353
- actor_id: 1
354
- acted_at: 2015-10-13 14:03:27.000000000 Z
355
- ip_address:
356
- card_acts_060:
357
- id: 60
358
- card_id: 1442
359
- actor_id: 1
360
- acted_at: 2015-10-13 14:03:27.000000000 Z
361
- ip_address:
362
- card_acts_061:
363
- id: 61
364
- card_id: 1356
365
- actor_id: 1
366
- acted_at: 2015-10-13 14:03:27.000000000 Z
367
- ip_address:
368
- card_acts_062:
369
- id: 62
370
- card_id: 1445
371
- actor_id: 1
372
- acted_at: 2015-10-13 14:03:27.000000000 Z
373
- ip_address:
374
- card_acts_063:
375
- id: 63
376
- card_id: 1447
377
- actor_id: 1
378
- acted_at: 2015-10-13 14:03:27.000000000 Z
379
- ip_address:
380
- card_acts_064:
381
- id: 64
382
- card_id: 1449
383
- actor_id: 1
384
- acted_at: 2015-10-13 14:03:27.000000000 Z
385
- ip_address:
386
- card_acts_065:
387
- id: 65
388
- card_id: 1451
389
- actor_id: 1
390
- acted_at: 2015-10-13 14:03:27.000000000 Z
391
- ip_address:
392
- card_acts_066:
393
- id: 66
394
- card_id: 1453
395
- actor_id: 1
396
- acted_at: 2015-10-13 14:03:27.000000000 Z
397
- ip_address:
398
- card_acts_067:
399
- id: 67
400
- card_id: 1278
401
- actor_id: 1
402
- acted_at: 2015-10-13 14:03:27.000000000 Z
403
- ip_address:
404
- card_acts_068:
405
- id: 68
406
- card_id: 1280
407
- actor_id: 1
408
- acted_at: 2015-10-13 14:03:27.000000000 Z
409
- ip_address:
410
- card_acts_069:
411
- id: 69
412
- card_id: 1298
413
- actor_id: 1
414
- acted_at: 2015-10-13 14:03:27.000000000 Z
415
- ip_address:
416
- card_acts_070:
417
- id: 70
418
- card_id: 1433
419
- actor_id: 1
420
- acted_at: 2015-10-13 14:03:27.000000000 Z
421
- ip_address:
422
- card_acts_071:
423
- id: 71
424
- card_id: 1437
425
- actor_id: 1
426
- acted_at: 2015-10-13 14:03:27.000000000 Z
427
- ip_address:
428
- card_acts_072:
429
- id: 72
430
- card_id: 1440
431
- actor_id: 1
432
- acted_at: 2015-10-13 14:03:27.000000000 Z
433
- ip_address:
434
- card_acts_073:
435
- id: 73
436
- card_id: 1348
437
- actor_id: 1
438
- acted_at: 2015-10-13 14:03:27.000000000 Z
439
- ip_address:
440
- card_acts_074:
441
- id: 74
442
- card_id: 1282
443
- actor_id: 1
444
- acted_at: 2015-10-13 14:03:27.000000000 Z
445
- ip_address:
446
- card_acts_075:
447
- id: 75
448
- card_id: 1283
449
- actor_id: 1
450
- acted_at: 2015-10-13 14:03:27.000000000 Z
451
- ip_address:
452
- card_acts_076:
453
- id: 76
454
- card_id: 1398
455
- actor_id: 1
456
- acted_at: 2015-10-13 14:03:27.000000000 Z
457
- ip_address:
458
- card_acts_077:
459
- id: 77
460
- card_id: 1402
461
- actor_id: 1
462
- acted_at: 2015-10-13 14:03:27.000000000 Z
463
- ip_address:
464
- card_acts_078:
465
- id: 78
466
- card_id: 1406
467
- actor_id: 1
468
- acted_at: 2015-10-13 14:03:27.000000000 Z
469
- ip_address:
470
- card_acts_079:
471
- id: 79
472
- card_id: 1410
473
- actor_id: 1
474
- acted_at: 2015-10-13 14:03:27.000000000 Z
475
- ip_address:
476
- card_acts_080:
477
- id: 80
478
- card_id: 1394
479
- actor_id: 1
480
- acted_at: 2015-10-13 14:03:27.000000000 Z
481
- ip_address:
482
- card_acts_081:
483
- id: 81
484
- card_id: 1390
485
- actor_id: 1
486
- acted_at: 2015-10-13 14:03:27.000000000 Z
487
- ip_address:
488
- card_acts_082:
489
- id: 82
490
- card_id: 1386
491
- actor_id: 1
492
- acted_at: 2015-10-13 14:03:27.000000000 Z
493
- ip_address:
494
- card_acts_083:
495
- id: 83
496
- card_id: 1382
497
- actor_id: 1
498
- acted_at: 2015-10-13 14:03:27.000000000 Z
499
- ip_address:
500
- card_acts_084:
501
- id: 84
502
- card_id: 1378
503
- actor_id: 1
504
- acted_at: 2015-10-13 14:03:27.000000000 Z
505
- ip_address:
506
- card_acts_085:
507
- id: 85
508
- card_id: 1374
509
- actor_id: 1
510
- acted_at: 2015-10-13 14:03:27.000000000 Z
511
- ip_address:
512
- card_acts_086:
513
- id: 86
514
- card_id: 1370
515
- actor_id: 1
516
- acted_at: 2015-10-13 14:03:27.000000000 Z
517
- ip_address:
518
- card_acts_087:
519
- id: 87
520
- card_id: 1366
521
- actor_id: 1
522
- acted_at: 2015-10-13 14:03:27.000000000 Z
523
- ip_address:
524
- card_acts_088:
525
- id: 88
526
- card_id: 1362
527
- actor_id: 1
528
- acted_at: 2015-10-13 14:03:27.000000000 Z
529
- ip_address:
530
- card_acts_089:
531
- id: 89
532
- card_id: 1358
533
- actor_id: 1
534
- acted_at: 2015-10-13 14:03:27.000000000 Z
535
- ip_address:
536
- card_acts_090:
537
- id: 90
538
- card_id: 1354
539
- actor_id: 1
540
- acted_at: 2015-10-13 14:03:27.000000000 Z
541
- ip_address:
542
- card_acts_091:
543
- id: 91
544
- card_id: 1350
545
- actor_id: 1
546
- acted_at: 2015-10-13 14:03:27.000000000 Z
547
- ip_address:
548
- card_acts_092:
549
- id: 92
550
- card_id: 1302
551
- actor_id: 1
552
- acted_at: 2015-10-13 14:03:27.000000000 Z
553
- ip_address:
554
- card_acts_093:
555
- id: 93
556
- card_id: 1300
557
- actor_id: 1
558
- acted_at: 2015-10-13 14:03:27.000000000 Z
559
- ip_address:
560
- card_acts_094:
561
- id: 94
562
- card_id: 1296
563
- actor_id: 1
564
- acted_at: 2015-10-13 14:03:27.000000000 Z
565
- ip_address:
566
- card_acts_095:
567
- id: 95
568
- card_id: 1294
569
- actor_id: 1
570
- acted_at: 2015-10-13 14:03:27.000000000 Z
571
- ip_address:
572
- card_acts_096:
573
- id: 96
574
- card_id: 1289
575
- actor_id: 1
576
- acted_at: 2015-10-13 14:03:27.000000000 Z
577
- ip_address:
578
- card_acts_097:
579
- id: 97
580
- card_id: 1285
581
- actor_id: 1
582
- acted_at: 2015-10-13 14:03:27.000000000 Z
583
- ip_address:
584
- card_acts_098:
585
- id: 98
586
- card_id: 1281
587
- actor_id: 1
588
- acted_at: 2015-10-13 14:03:27.000000000 Z
589
- ip_address:
590
- card_acts_099:
591
- id: 99
592
- card_id: 1258
593
- actor_id: 1
594
- acted_at: 2015-10-13 14:03:27.000000000 Z
595
- ip_address:
596
- card_acts_100:
597
- id: 100
598
- card_id: 1068
599
- actor_id: 1
600
- acted_at: 2015-10-13 14:03:27.000000000 Z
6
+ acted_at: 2015-11-20 18:58:41.000000000 Z
601
7
  ip_address: