activemodel 3.0.6 → 3.0.7.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. data/CHANGELOG +5 -0
  2. data/lib/active_model.rbc +781 -0
  3. data/lib/active_model/attribute_methods.rbc +4425 -0
  4. data/lib/active_model/callbacks.rbc +1164 -0
  5. data/lib/active_model/conversion.rbc +416 -0
  6. data/lib/active_model/deprecated_error_methods.rbc +899 -0
  7. data/lib/active_model/dirty.rbc +1538 -0
  8. data/lib/active_model/errors.rbc +3944 -0
  9. data/lib/active_model/mass_assignment_security.rbc +1407 -0
  10. data/lib/active_model/mass_assignment_security/permission_set.rbc +956 -0
  11. data/lib/active_model/mass_assignment_security/sanitizer.rbc +663 -0
  12. data/lib/active_model/naming.rbc +1547 -0
  13. data/lib/active_model/observing.rbc +2496 -0
  14. data/lib/active_model/railtie.rbc +69 -0
  15. data/lib/active_model/serialization.rbc +763 -0
  16. data/lib/active_model/serializers/json.rbc +802 -0
  17. data/lib/active_model/serializers/xml.rbc +3540 -0
  18. data/lib/active_model/translation.rbc +988 -0
  19. data/lib/active_model/validations.rbc +2398 -0
  20. data/lib/active_model/validations/acceptance.rbc +955 -0
  21. data/lib/active_model/validations/callbacks.rbc +1441 -0
  22. data/lib/active_model/validations/confirmation.rbc +757 -0
  23. data/lib/active_model/validations/exclusion.rbc +739 -0
  24. data/lib/active_model/validations/format.rbc +972 -0
  25. data/lib/active_model/validations/inclusion.rbc +997 -0
  26. data/lib/active_model/validations/length.rbc +1814 -0
  27. data/lib/active_model/validations/numericality.rbc +2163 -0
  28. data/lib/active_model/validations/presence.rbc +537 -0
  29. data/lib/active_model/validations/validates.rbc +1128 -0
  30. data/lib/active_model/validations/with.rbc +1058 -0
  31. data/lib/active_model/validator.rbc +1507 -0
  32. data/lib/active_model/version.rb +2 -2
  33. data/lib/active_model/version.rbc +295 -0
  34. metadata +50 -13
@@ -0,0 +1,972 @@
1
+ !RBIX
2
+ 12079494195756429234
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ n
50
+ p
51
+ 5
52
+ x
53
+ 11
54
+ ActiveModel
55
+ x
56
+ 11
57
+ open_module
58
+ x
59
+ 15
60
+ __module_init__
61
+ M
62
+ 1
63
+ n
64
+ n
65
+ x
66
+ 11
67
+ ActiveModel
68
+ i
69
+ 28
70
+ 5
71
+ 66
72
+ 99
73
+ 7
74
+ 0
75
+ 65
76
+ 49
77
+ 1
78
+ 2
79
+ 13
80
+ 99
81
+ 12
82
+ 7
83
+ 2
84
+ 12
85
+ 7
86
+ 3
87
+ 12
88
+ 65
89
+ 12
90
+ 49
91
+ 4
92
+ 4
93
+ 15
94
+ 49
95
+ 2
96
+ 0
97
+ 11
98
+ I
99
+ 6
100
+ I
101
+ 0
102
+ I
103
+ 0
104
+ I
105
+ 0
106
+ n
107
+ p
108
+ 5
109
+ x
110
+ 11
111
+ Validations
112
+ x
113
+ 11
114
+ open_module
115
+ x
116
+ 15
117
+ __module_init__
118
+ M
119
+ 1
120
+ n
121
+ n
122
+ x
123
+ 11
124
+ Validations
125
+ i
126
+ 57
127
+ 5
128
+ 66
129
+ 99
130
+ 7
131
+ 0
132
+ 45
133
+ 1
134
+ 2
135
+ 65
136
+ 49
137
+ 3
138
+ 3
139
+ 13
140
+ 99
141
+ 12
142
+ 7
143
+ 4
144
+ 12
145
+ 7
146
+ 5
147
+ 12
148
+ 65
149
+ 12
150
+ 49
151
+ 6
152
+ 4
153
+ 15
154
+ 49
155
+ 4
156
+ 0
157
+ 15
158
+ 99
159
+ 7
160
+ 7
161
+ 65
162
+ 49
163
+ 8
164
+ 2
165
+ 13
166
+ 99
167
+ 12
168
+ 7
169
+ 9
170
+ 12
171
+ 7
172
+ 10
173
+ 12
174
+ 65
175
+ 12
176
+ 49
177
+ 6
178
+ 4
179
+ 15
180
+ 49
181
+ 9
182
+ 0
183
+ 11
184
+ I
185
+ 6
186
+ I
187
+ 0
188
+ I
189
+ 0
190
+ I
191
+ 0
192
+ n
193
+ p
194
+ 11
195
+ x
196
+ 15
197
+ FormatValidator
198
+ x
199
+ 13
200
+ EachValidator
201
+ n
202
+ x
203
+ 10
204
+ open_class
205
+ x
206
+ 14
207
+ __class_init__
208
+ M
209
+ 1
210
+ n
211
+ n
212
+ x
213
+ 15
214
+ FormatValidator
215
+ i
216
+ 30
217
+ 5
218
+ 66
219
+ 99
220
+ 7
221
+ 0
222
+ 7
223
+ 1
224
+ 65
225
+ 67
226
+ 49
227
+ 2
228
+ 0
229
+ 49
230
+ 3
231
+ 4
232
+ 15
233
+ 99
234
+ 7
235
+ 4
236
+ 7
237
+ 5
238
+ 65
239
+ 67
240
+ 49
241
+ 2
242
+ 0
243
+ 49
244
+ 3
245
+ 4
246
+ 11
247
+ I
248
+ 5
249
+ I
250
+ 0
251
+ I
252
+ 0
253
+ I
254
+ 0
255
+ n
256
+ p
257
+ 6
258
+ x
259
+ 13
260
+ validate_each
261
+ M
262
+ 1
263
+ n
264
+ n
265
+ x
266
+ 13
267
+ validate_each
268
+ i
269
+ 150
270
+ 5
271
+ 48
272
+ 0
273
+ 7
274
+ 1
275
+ 49
276
+ 2
277
+ 1
278
+ 13
279
+ 9
280
+ 34
281
+ 15
282
+ 20
283
+ 2
284
+ 49
285
+ 3
286
+ 0
287
+ 5
288
+ 48
289
+ 0
290
+ 7
291
+ 1
292
+ 49
293
+ 2
294
+ 1
295
+ 49
296
+ 4
297
+ 1
298
+ 10
299
+ 33
300
+ 2
301
+ 8
302
+ 34
303
+ 3
304
+ 9
305
+ 77
306
+ 20
307
+ 0
308
+ 49
309
+ 5
310
+ 0
311
+ 20
312
+ 1
313
+ 7
314
+ 6
315
+ 5
316
+ 48
317
+ 0
318
+ 7
319
+ 1
320
+ 49
321
+ 7
322
+ 1
323
+ 44
324
+ 43
325
+ 8
326
+ 79
327
+ 49
328
+ 9
329
+ 1
330
+ 13
331
+ 7
332
+ 10
333
+ 20
334
+ 2
335
+ 49
336
+ 11
337
+ 2
338
+ 15
339
+ 49
340
+ 12
341
+ 1
342
+ 49
343
+ 13
344
+ 3
345
+ 8
346
+ 149
347
+ 5
348
+ 48
349
+ 0
350
+ 7
351
+ 14
352
+ 49
353
+ 2
354
+ 1
355
+ 13
356
+ 9
357
+ 105
358
+ 15
359
+ 20
360
+ 2
361
+ 49
362
+ 3
363
+ 0
364
+ 5
365
+ 48
366
+ 0
367
+ 7
368
+ 14
369
+ 49
370
+ 2
371
+ 1
372
+ 49
373
+ 4
374
+ 1
375
+ 9
376
+ 148
377
+ 20
378
+ 0
379
+ 49
380
+ 5
381
+ 0
382
+ 20
383
+ 1
384
+ 7
385
+ 6
386
+ 5
387
+ 48
388
+ 0
389
+ 7
390
+ 14
391
+ 49
392
+ 7
393
+ 1
394
+ 44
395
+ 43
396
+ 8
397
+ 79
398
+ 49
399
+ 9
400
+ 1
401
+ 13
402
+ 7
403
+ 10
404
+ 20
405
+ 2
406
+ 49
407
+ 11
408
+ 2
409
+ 15
410
+ 49
411
+ 12
412
+ 1
413
+ 49
414
+ 13
415
+ 3
416
+ 8
417
+ 149
418
+ 1
419
+ 11
420
+ I
421
+ b
422
+ I
423
+ 3
424
+ I
425
+ 3
426
+ I
427
+ 3
428
+ n
429
+ p
430
+ 15
431
+ x
432
+ 7
433
+ options
434
+ x
435
+ 4
436
+ with
437
+ x
438
+ 2
439
+ []
440
+ x
441
+ 4
442
+ to_s
443
+ x
444
+ 2
445
+ =~
446
+ x
447
+ 6
448
+ errors
449
+ x
450
+ 7
451
+ invalid
452
+ x
453
+ 6
454
+ except
455
+ x
456
+ 4
457
+ Hash
458
+ x
459
+ 16
460
+ new_from_literal
461
+ x
462
+ 5
463
+ value
464
+ x
465
+ 3
466
+ []=
467
+ x
468
+ 6
469
+ merge!
470
+ x
471
+ 3
472
+ add
473
+ x
474
+ 7
475
+ without
476
+ p
477
+ 13
478
+ I
479
+ -1
480
+ I
481
+ 6
482
+ I
483
+ 0
484
+ I
485
+ 7
486
+ I
487
+ 24
488
+ I
489
+ 8
490
+ I
491
+ 4d
492
+ I
493
+ 9
494
+ I
495
+ 6b
496
+ I
497
+ a
498
+ I
499
+ 94
500
+ I
501
+ 9
502
+ I
503
+ 96
504
+ x
505
+ 87
506
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/format.rb
507
+ p
508
+ 3
509
+ x
510
+ 6
511
+ record
512
+ x
513
+ 9
514
+ attribute
515
+ x
516
+ 5
517
+ value
518
+ x
519
+ 17
520
+ method_visibility
521
+ x
522
+ 15
523
+ add_defn_method
524
+ x
525
+ 15
526
+ check_validity!
527
+ M
528
+ 1
529
+ n
530
+ n
531
+ x
532
+ 15
533
+ check_validity!
534
+ i
535
+ 134
536
+ 5
537
+ 48
538
+ 0
539
+ 7
540
+ 1
541
+ 49
542
+ 2
543
+ 1
544
+ 5
545
+ 48
546
+ 0
547
+ 7
548
+ 3
549
+ 49
550
+ 2
551
+ 1
552
+ 49
553
+ 4
554
+ 1
555
+ 9
556
+ 24
557
+ 1
558
+ 8
559
+ 35
560
+ 5
561
+ 45
562
+ 5
563
+ 6
564
+ 7
565
+ 7
566
+ 64
567
+ 47
568
+ 49
569
+ 8
570
+ 2
571
+ 15
572
+ 5
573
+ 48
574
+ 0
575
+ 7
576
+ 1
577
+ 49
578
+ 9
579
+ 1
580
+ 13
581
+ 9
582
+ 68
583
+ 15
584
+ 5
585
+ 48
586
+ 0
587
+ 7
588
+ 1
589
+ 49
590
+ 9
591
+ 1
592
+ 45
593
+ 10
594
+ 11
595
+ 49
596
+ 12
597
+ 1
598
+ 10
599
+ 67
600
+ 2
601
+ 8
602
+ 68
603
+ 3
604
+ 9
605
+ 83
606
+ 5
607
+ 45
608
+ 5
609
+ 13
610
+ 7
611
+ 14
612
+ 64
613
+ 47
614
+ 49
615
+ 8
616
+ 2
617
+ 8
618
+ 84
619
+ 1
620
+ 15
621
+ 5
622
+ 48
623
+ 0
624
+ 7
625
+ 3
626
+ 49
627
+ 9
628
+ 1
629
+ 13
630
+ 9
631
+ 117
632
+ 15
633
+ 5
634
+ 48
635
+ 0
636
+ 7
637
+ 3
638
+ 49
639
+ 9
640
+ 1
641
+ 45
642
+ 10
643
+ 15
644
+ 49
645
+ 12
646
+ 1
647
+ 10
648
+ 116
649
+ 2
650
+ 8
651
+ 117
652
+ 3
653
+ 9
654
+ 132
655
+ 5
656
+ 45
657
+ 5
658
+ 16
659
+ 7
660
+ 17
661
+ 64
662
+ 47
663
+ 49
664
+ 8
665
+ 2
666
+ 8
667
+ 133
668
+ 1
669
+ 11
670
+ I
671
+ 3
672
+ I
673
+ 0
674
+ I
675
+ 0
676
+ I
677
+ 0
678
+ n
679
+ p
680
+ 18
681
+ x
682
+ 7
683
+ options
684
+ x
685
+ 4
686
+ with
687
+ x
688
+ 8
689
+ include?
690
+ x
691
+ 7
692
+ without
693
+ x
694
+ 1
695
+ ^
696
+ x
697
+ 13
698
+ ArgumentError
699
+ n
700
+ s
701
+ 56
702
+ Either :with or :without must be supplied (but not both)
703
+ x
704
+ 5
705
+ raise
706
+ x
707
+ 2
708
+ []
709
+ x
710
+ 6
711
+ Regexp
712
+ n
713
+ x
714
+ 5
715
+ is_a?
716
+ n
717
+ s
718
+ 83
719
+ A regular expression must be supplied as the :with option of the configuration hash
720
+ n
721
+ n
722
+ s
723
+ 86
724
+ A regular expression must be supplied as the :without option of the configuration hash
725
+ p
726
+ 19
727
+ I
728
+ -1
729
+ I
730
+ e
731
+ I
732
+ 0
733
+ I
734
+ f
735
+ I
736
+ 18
737
+ I
738
+ 10
739
+ I
740
+ 24
741
+ I
742
+ 13
743
+ I
744
+ 46
745
+ I
746
+ 14
747
+ I
748
+ 53
749
+ I
750
+ 13
751
+ I
752
+ 55
753
+ I
754
+ 17
755
+ I
756
+ 77
757
+ I
758
+ 18
759
+ I
760
+ 84
761
+ I
762
+ 17
763
+ I
764
+ 86
765
+ x
766
+ 87
767
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/format.rb
768
+ p
769
+ 0
770
+ p
771
+ 5
772
+ I
773
+ 2
774
+ I
775
+ 6
776
+ I
777
+ 10
778
+ I
779
+ e
780
+ I
781
+ 1e
782
+ x
783
+ 87
784
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/format.rb
785
+ p
786
+ 0
787
+ x
788
+ 13
789
+ attach_method
790
+ x
791
+ 13
792
+ HelperMethods
793
+ x
794
+ 11
795
+ open_module
796
+ x
797
+ 15
798
+ __module_init__
799
+ M
800
+ 1
801
+ n
802
+ n
803
+ x
804
+ 13
805
+ HelperMethods
806
+ i
807
+ 16
808
+ 5
809
+ 66
810
+ 99
811
+ 7
812
+ 0
813
+ 7
814
+ 1
815
+ 65
816
+ 67
817
+ 49
818
+ 2
819
+ 0
820
+ 49
821
+ 3
822
+ 4
823
+ 11
824
+ I
825
+ 5
826
+ I
827
+ 0
828
+ I
829
+ 0
830
+ I
831
+ 0
832
+ n
833
+ p
834
+ 4
835
+ x
836
+ 19
837
+ validates_format_of
838
+ M
839
+ 1
840
+ n
841
+ n
842
+ x
843
+ 19
844
+ validates_format_of
845
+ i
846
+ 16
847
+ 5
848
+ 45
849
+ 0
850
+ 1
851
+ 5
852
+ 20
853
+ 0
854
+ 47
855
+ 49
856
+ 2
857
+ 1
858
+ 47
859
+ 49
860
+ 3
861
+ 2
862
+ 11
863
+ I
864
+ 5
865
+ I
866
+ 1
867
+ I
868
+ 0
869
+ I
870
+ 0
871
+ I
872
+ 0
873
+ p
874
+ 4
875
+ x
876
+ 15
877
+ FormatValidator
878
+ n
879
+ x
880
+ 17
881
+ _merge_attributes
882
+ x
883
+ 14
884
+ validates_with
885
+ p
886
+ 5
887
+ I
888
+ -1
889
+ I
890
+ 3d
891
+ I
892
+ 0
893
+ I
894
+ 3e
895
+ I
896
+ 10
897
+ x
898
+ 87
899
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/format.rb
900
+ p
901
+ 1
902
+ x
903
+ 10
904
+ attr_names
905
+ x
906
+ 17
907
+ method_visibility
908
+ x
909
+ 15
910
+ add_defn_method
911
+ p
912
+ 3
913
+ I
914
+ 2
915
+ I
916
+ 3d
917
+ I
918
+ 10
919
+ x
920
+ 87
921
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/format.rb
922
+ p
923
+ 0
924
+ p
925
+ 5
926
+ I
927
+ 2
928
+ I
929
+ 5
930
+ I
931
+ 1f
932
+ I
933
+ 1d
934
+ I
935
+ 39
936
+ x
937
+ 87
938
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/format.rb
939
+ p
940
+ 0
941
+ x
942
+ 13
943
+ attach_method
944
+ p
945
+ 3
946
+ I
947
+ 2
948
+ I
949
+ 4
950
+ I
951
+ 1c
952
+ x
953
+ 87
954
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/format.rb
955
+ p
956
+ 0
957
+ x
958
+ 13
959
+ attach_method
960
+ p
961
+ 3
962
+ I
963
+ 0
964
+ I
965
+ 1
966
+ I
967
+ 1c
968
+ x
969
+ 87
970
+ /Users/santiago/WyeWorks/Projs/rails/activemodel/lib/active_model/validations/format.rb
971
+ p
972
+ 0