paperclip 2.3.8 → 2.3.9

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of paperclip might be problematic. Click here for more details.

Files changed (59) hide show
  1. data/{README.rdoc → README.md} +104 -54
  2. data/lib/paperclip.rb +2 -0
  3. data/lib/paperclip/attachment.rb +67 -38
  4. data/lib/paperclip/command_line.rb +7 -1
  5. data/lib/paperclip/interpolations.rb +17 -1
  6. data/lib/paperclip/storage.rb +1 -0
  7. data/lib/paperclip/storage/fog.rb +98 -0
  8. data/lib/paperclip/storage/s3.rb +5 -5
  9. data/lib/paperclip/version.rb +1 -1
  10. data/test/attachment_test.rb +117 -0
  11. data/test/command_line_test.rb +5 -0
  12. data/test/fixtures/uppercase.PNG +0 -0
  13. data/test/fog_test.rb +107 -0
  14. data/test/helper.rb +1 -1
  15. data/test/integration_test.rb +88 -0
  16. data/test/interpolations_test.rb +17 -1
  17. data/test/paperclip_test.rb +30 -0
  18. data/test/storage_test.rb +23 -0
  19. metadata +47 -80
  20. data/lib/paperclip.rbc +0 -5202
  21. data/lib/paperclip/attachment.rbc +0 -6393
  22. data/lib/paperclip/callback_compatability.rbc +0 -1649
  23. data/lib/paperclip/command_line.rbc +0 -1952
  24. data/lib/paperclip/geometry.rbc +0 -2141
  25. data/lib/paperclip/glue.rbc +0 -685
  26. data/lib/paperclip/interpolations.rbc +0 -2205
  27. data/lib/paperclip/iostream.rbc +0 -905
  28. data/lib/paperclip/matchers.rbc +0 -267
  29. data/lib/paperclip/matchers/have_attached_file_matcher.rbc +0 -1258
  30. data/lib/paperclip/matchers/validate_attachment_content_type_matcher.rbc +0 -1660
  31. data/lib/paperclip/matchers/validate_attachment_presence_matcher.rbc +0 -1304
  32. data/lib/paperclip/matchers/validate_attachment_size_matcher.rbc +0 -2160
  33. data/lib/paperclip/processor.rbc +0 -911
  34. data/lib/paperclip/railtie.rbc +0 -680
  35. data/lib/paperclip/storage.rbc +0 -69
  36. data/lib/paperclip/storage/filesystem.rbc +0 -1402
  37. data/lib/paperclip/storage/s3.rbc +0 -3489
  38. data/lib/paperclip/style.rbc +0 -1571
  39. data/lib/paperclip/thumbnail.rbc +0 -1648
  40. data/lib/paperclip/upfile.rbc +0 -1619
  41. data/lib/paperclip/version.rbc +0 -176
  42. data/shoulda_macros/paperclip.rbc +0 -2415
  43. data/test/attachment_test.rbc +0 -22952
  44. data/test/command_line_test.rbc +0 -4307
  45. data/test/geometry_test.rbc +0 -5181
  46. data/test/helper.rbc +0 -3971
  47. data/test/integration_test.rbc +0 -13137
  48. data/test/interpolations_test.rbc +0 -3432
  49. data/test/iostream_test.rbc +0 -1889
  50. data/test/matchers/have_attached_file_matcher_test.rbc +0 -622
  51. data/test/matchers/validate_attachment_content_type_matcher_test.rbc +0 -1174
  52. data/test/matchers/validate_attachment_presence_matcher_test.rbc +0 -622
  53. data/test/matchers/validate_attachment_size_matcher_test.rbc +0 -1658
  54. data/test/paperclip_test.rbc +0 -7407
  55. data/test/processor_test.rbc +0 -314
  56. data/test/storage_test.rbc +0 -10294
  57. data/test/style_test.rbc +0 -3752
  58. data/test/thumbnail_test.rbc +0 -6803
  59. data/test/upfile_test.rbc +0 -1635
@@ -1,1304 +0,0 @@
1
- !RBIX
2
- 0
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
- 9
54
- Paperclip
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
- 9
67
- Paperclip
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
- 7
111
- Shoulda
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
- 7
124
- Shoulda
125
- i
126
- 28
127
- 5
128
- 66
129
- 99
130
- 7
131
- 0
132
- 65
133
- 49
134
- 1
135
- 2
136
- 13
137
- 99
138
- 12
139
- 7
140
- 2
141
- 12
142
- 7
143
- 3
144
- 12
145
- 65
146
- 12
147
- 49
148
- 4
149
- 4
150
- 15
151
- 49
152
- 2
153
- 0
154
- 11
155
- I
156
- 6
157
- I
158
- 0
159
- I
160
- 0
161
- I
162
- 0
163
- n
164
- p
165
- 5
166
- x
167
- 8
168
- Matchers
169
- x
170
- 11
171
- open_module
172
- x
173
- 15
174
- __module_init__
175
- M
176
- 1
177
- n
178
- n
179
- x
180
- 8
181
- Matchers
182
- i
183
- 43
184
- 5
185
- 66
186
- 99
187
- 7
188
- 0
189
- 7
190
- 1
191
- 65
192
- 67
193
- 49
194
- 2
195
- 0
196
- 49
197
- 3
198
- 4
199
- 15
200
- 99
201
- 7
202
- 4
203
- 1
204
- 65
205
- 49
206
- 5
207
- 3
208
- 13
209
- 99
210
- 12
211
- 7
212
- 6
213
- 12
214
- 7
215
- 7
216
- 12
217
- 65
218
- 12
219
- 49
220
- 8
221
- 4
222
- 15
223
- 49
224
- 6
225
- 0
226
- 11
227
- I
228
- 6
229
- I
230
- 0
231
- I
232
- 0
233
- I
234
- 0
235
- n
236
- p
237
- 9
238
- x
239
- 28
240
- validate_attachment_presence
241
- M
242
- 1
243
- n
244
- n
245
- x
246
- 28
247
- validate_attachment_presence
248
- i
249
- 29
250
- 45
251
- 0
252
- 1
253
- 13
254
- 71
255
- 2
256
- 47
257
- 9
258
- 23
259
- 47
260
- 49
261
- 3
262
- 0
263
- 13
264
- 20
265
- 0
266
- 47
267
- 49
268
- 4
269
- 1
270
- 15
271
- 8
272
- 28
273
- 20
274
- 0
275
- 49
276
- 2
277
- 1
278
- 11
279
- I
280
- 4
281
- I
282
- 1
283
- I
284
- 1
285
- I
286
- 1
287
- n
288
- p
289
- 5
290
- x
291
- 33
292
- ValidateAttachmentPresenceMatcher
293
- n
294
- x
295
- 3
296
- new
297
- x
298
- 8
299
- allocate
300
- x
301
- 10
302
- initialize
303
- p
304
- 5
305
- I
306
- 0
307
- I
308
- a
309
- I
310
- 0
311
- I
312
- b
313
- I
314
- 1d
315
- x
316
- 98
317
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
318
- p
319
- 1
320
- x
321
- 4
322
- name
323
- x
324
- 17
325
- method_visibility
326
- x
327
- 15
328
- add_defn_method
329
- x
330
- 33
331
- ValidateAttachmentPresenceMatcher
332
- x
333
- 10
334
- open_class
335
- x
336
- 14
337
- __class_init__
338
- M
339
- 1
340
- n
341
- n
342
- x
343
- 33
344
- ValidateAttachmentPresenceMatcher
345
- i
346
- 104
347
- 5
348
- 66
349
- 99
350
- 7
351
- 0
352
- 7
353
- 1
354
- 65
355
- 67
356
- 49
357
- 2
358
- 0
359
- 49
360
- 3
361
- 4
362
- 15
363
- 99
364
- 7
365
- 4
366
- 7
367
- 5
368
- 65
369
- 67
370
- 49
371
- 2
372
- 0
373
- 49
374
- 3
375
- 4
376
- 15
377
- 99
378
- 7
379
- 6
380
- 7
381
- 7
382
- 65
383
- 67
384
- 49
385
- 2
386
- 0
387
- 49
388
- 3
389
- 4
390
- 15
391
- 99
392
- 7
393
- 8
394
- 7
395
- 9
396
- 65
397
- 67
398
- 49
399
- 2
400
- 0
401
- 49
402
- 3
403
- 4
404
- 15
405
- 99
406
- 7
407
- 10
408
- 7
409
- 11
410
- 65
411
- 67
412
- 49
413
- 2
414
- 0
415
- 49
416
- 3
417
- 4
418
- 15
419
- 5
420
- 48
421
- 12
422
- 15
423
- 99
424
- 7
425
- 13
426
- 7
427
- 14
428
- 65
429
- 67
430
- 49
431
- 2
432
- 0
433
- 49
434
- 3
435
- 4
436
- 15
437
- 99
438
- 7
439
- 15
440
- 7
441
- 16
442
- 65
443
- 67
444
- 49
445
- 2
446
- 0
447
- 49
448
- 3
449
- 4
450
- 11
451
- I
452
- 5
453
- I
454
- 0
455
- I
456
- 0
457
- I
458
- 0
459
- n
460
- p
461
- 17
462
- x
463
- 10
464
- initialize
465
- M
466
- 1
467
- n
468
- n
469
- x
470
- 10
471
- initialize
472
- i
473
- 5
474
- 20
475
- 0
476
- 38
477
- 0
478
- 11
479
- I
480
- 2
481
- I
482
- 1
483
- I
484
- 1
485
- I
486
- 1
487
- n
488
- p
489
- 1
490
- x
491
- 16
492
- @attachment_name
493
- p
494
- 5
495
- I
496
- 0
497
- I
498
- f
499
- I
500
- 0
501
- I
502
- 10
503
- I
504
- 5
505
- x
506
- 98
507
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
508
- p
509
- 1
510
- x
511
- 15
512
- attachment_name
513
- x
514
- 17
515
- method_visibility
516
- x
517
- 15
518
- add_defn_method
519
- x
520
- 8
521
- matches?
522
- M
523
- 1
524
- n
525
- n
526
- x
527
- 8
528
- matches?
529
- i
530
- 40
531
- 20
532
- 0
533
- 38
534
- 0
535
- 15
536
- 45
537
- 1
538
- 2
539
- 39
540
- 0
541
- 86
542
- 3
543
- 9
544
- 17
545
- 1
546
- 8
547
- 24
548
- 39
549
- 0
550
- 49
551
- 4
552
- 0
553
- 38
554
- 0
555
- 15
556
- 5
557
- 47
558
- 49
559
- 5
560
- 0
561
- 13
562
- 9
563
- 39
564
- 15
565
- 5
566
- 47
567
- 49
568
- 6
569
- 0
570
- 11
571
- I
572
- 3
573
- I
574
- 1
575
- I
576
- 1
577
- I
578
- 1
579
- n
580
- p
581
- 7
582
- x
583
- 8
584
- @subject
585
- x
586
- 5
587
- Class
588
- n
589
- x
590
- 3
591
- ===
592
- x
593
- 5
594
- class
595
- x
596
- 21
597
- error_when_not_valid?
598
- x
599
- 20
600
- no_error_when_valid?
601
- p
602
- 9
603
- I
604
- 0
605
- I
606
- 13
607
- I
608
- 0
609
- I
610
- 14
611
- I
612
- 5
613
- I
614
- 15
615
- I
616
- 19
617
- I
618
- 16
619
- I
620
- 28
621
- x
622
- 98
623
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
624
- p
625
- 1
626
- x
627
- 7
628
- subject
629
- x
630
- 15
631
- failure_message
632
- M
633
- 1
634
- n
635
- n
636
- x
637
- 15
638
- failure_message
639
- i
640
- 13
641
- 7
642
- 0
643
- 39
644
- 1
645
- 47
646
- 49
647
- 2
648
- 0
649
- 7
650
- 3
651
- 63
652
- 3
653
- 11
654
- I
655
- 3
656
- I
657
- 0
658
- I
659
- 0
660
- I
661
- 0
662
- n
663
- p
664
- 4
665
- s
666
- 11
667
- Attachment
668
- x
669
- 16
670
- @attachment_name
671
- x
672
- 4
673
- to_s
674
- s
675
- 19
676
- should be required
677
- p
678
- 5
679
- I
680
- 0
681
- I
682
- 19
683
- I
684
- 0
685
- I
686
- 1a
687
- I
688
- d
689
- x
690
- 98
691
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
692
- p
693
- 0
694
- x
695
- 24
696
- negative_failure_message
697
- M
698
- 1
699
- n
700
- n
701
- x
702
- 24
703
- negative_failure_message
704
- i
705
- 13
706
- 7
707
- 0
708
- 39
709
- 1
710
- 47
711
- 49
712
- 2
713
- 0
714
- 7
715
- 3
716
- 63
717
- 3
718
- 11
719
- I
720
- 3
721
- I
722
- 0
723
- I
724
- 0
725
- I
726
- 0
727
- n
728
- p
729
- 4
730
- s
731
- 11
732
- Attachment
733
- x
734
- 16
735
- @attachment_name
736
- x
737
- 4
738
- to_s
739
- s
740
- 23
741
- should not be required
742
- p
743
- 5
744
- I
745
- 0
746
- I
747
- 1d
748
- I
749
- 0
750
- I
751
- 1e
752
- I
753
- d
754
- x
755
- 98
756
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
757
- p
758
- 0
759
- x
760
- 11
761
- description
762
- M
763
- 1
764
- n
765
- n
766
- x
767
- 11
768
- description
769
- i
770
- 11
771
- 7
772
- 0
773
- 39
774
- 1
775
- 47
776
- 49
777
- 2
778
- 0
779
- 63
780
- 2
781
- 11
782
- I
783
- 2
784
- I
785
- 0
786
- I
787
- 0
788
- I
789
- 0
790
- n
791
- p
792
- 3
793
- s
794
- 31
795
- require presence of attachment
796
- x
797
- 16
798
- @attachment_name
799
- x
800
- 4
801
- to_s
802
- p
803
- 5
804
- I
805
- 0
806
- I
807
- 21
808
- I
809
- 0
810
- I
811
- 22
812
- I
813
- b
814
- x
815
- 98
816
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
817
- p
818
- 0
819
- x
820
- 9
821
- protected
822
- x
823
- 21
824
- error_when_not_valid?
825
- M
826
- 1
827
- n
828
- n
829
- x
830
- 21
831
- error_when_not_valid?
832
- i
833
- 73
834
- 39
835
- 0
836
- 13
837
- 71
838
- 1
839
- 47
840
- 9
841
- 20
842
- 47
843
- 49
844
- 2
845
- 0
846
- 13
847
- 47
848
- 49
849
- 3
850
- 0
851
- 15
852
- 8
853
- 23
854
- 49
855
- 1
856
- 0
857
- 19
858
- 0
859
- 39
860
- 4
861
- 49
862
- 5
863
- 1
864
- 1
865
- 49
866
- 6
867
- 1
868
- 15
869
- 20
870
- 0
871
- 49
872
- 7
873
- 0
874
- 15
875
- 20
876
- 0
877
- 49
878
- 8
879
- 0
880
- 39
881
- 4
882
- 47
883
- 49
884
- 9
885
- 0
886
- 7
887
- 10
888
- 63
889
- 2
890
- 47
891
- 49
892
- 11
893
- 0
894
- 49
895
- 12
896
- 1
897
- 49
898
- 13
899
- 0
900
- 10
901
- 71
902
- 2
903
- 8
904
- 72
905
- 3
906
- 11
907
- I
908
- 4
909
- I
910
- 1
911
- I
912
- 0
913
- I
914
- 0
915
- n
916
- p
917
- 14
918
- x
919
- 8
920
- @subject
921
- x
922
- 3
923
- new
924
- x
925
- 8
926
- allocate
927
- x
928
- 10
929
- initialize
930
- x
931
- 16
932
- @attachment_name
933
- x
934
- 4
935
- send
936
- x
937
- 6
938
- assign
939
- x
940
- 6
941
- valid?
942
- x
943
- 6
944
- errors
945
- x
946
- 4
947
- to_s
948
- s
949
- 10
950
- _file_name
951
- x
952
- 6
953
- to_sym
954
- x
955
- 2
956
- []
957
- x
958
- 6
959
- blank?
960
- p
961
- 9
962
- I
963
- 0
964
- I
965
- 27
966
- I
967
- 0
968
- I
969
- 28
970
- I
971
- 23
972
- I
973
- 29
974
- I
975
- 29
976
- I
977
- 2a
978
- I
979
- 49
980
- x
981
- 98
982
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
983
- p
984
- 1
985
- x
986
- 7
987
- subject
988
- x
989
- 20
990
- no_error_when_valid?
991
- M
992
- 1
993
- n
994
- n
995
- x
996
- 20
997
- no_error_when_valid?
998
- i
999
- 101
1000
- 45
1001
- 0
1002
- 1
1003
- 13
1004
- 71
1005
- 2
1006
- 47
1007
- 9
1008
- 24
1009
- 47
1010
- 49
1011
- 3
1012
- 0
1013
- 13
1014
- 7
1015
- 4
1016
- 64
1017
- 47
1018
- 49
1019
- 5
1020
- 1
1021
- 15
1022
- 8
1023
- 30
1024
- 7
1025
- 4
1026
- 64
1027
- 49
1028
- 2
1029
- 1
1030
- 38
1031
- 6
1032
- 15
1033
- 39
1034
- 7
1035
- 13
1036
- 71
1037
- 2
1038
- 47
1039
- 9
1040
- 53
1041
- 47
1042
- 49
1043
- 3
1044
- 0
1045
- 13
1046
- 47
1047
- 49
1048
- 5
1049
- 0
1050
- 15
1051
- 8
1052
- 56
1053
- 49
1054
- 2
1055
- 0
1056
- 19
1057
- 0
1058
- 39
1059
- 8
1060
- 49
1061
- 9
1062
- 1
1063
- 39
1064
- 6
1065
- 49
1066
- 10
1067
- 1
1068
- 15
1069
- 20
1070
- 0
1071
- 49
1072
- 11
1073
- 0
1074
- 15
1075
- 20
1076
- 0
1077
- 49
1078
- 12
1079
- 0
1080
- 39
1081
- 8
1082
- 47
1083
- 49
1084
- 13
1085
- 0
1086
- 7
1087
- 14
1088
- 63
1089
- 2
1090
- 47
1091
- 49
1092
- 15
1093
- 0
1094
- 49
1095
- 16
1096
- 1
1097
- 49
1098
- 17
1099
- 0
1100
- 11
1101
- I
1102
- 4
1103
- I
1104
- 1
1105
- I
1106
- 0
1107
- I
1108
- 0
1109
- n
1110
- p
1111
- 18
1112
- x
1113
- 8
1114
- StringIO
1115
- n
1116
- x
1117
- 3
1118
- new
1119
- x
1120
- 8
1121
- allocate
1122
- s
1123
- 1
1124
- .
1125
- x
1126
- 10
1127
- initialize
1128
- x
1129
- 5
1130
- @file
1131
- x
1132
- 8
1133
- @subject
1134
- x
1135
- 16
1136
- @attachment_name
1137
- x
1138
- 4
1139
- send
1140
- x
1141
- 6
1142
- assign
1143
- x
1144
- 6
1145
- valid?
1146
- x
1147
- 6
1148
- errors
1149
- x
1150
- 4
1151
- to_s
1152
- s
1153
- 10
1154
- _file_name
1155
- x
1156
- 6
1157
- to_sym
1158
- x
1159
- 2
1160
- []
1161
- x
1162
- 6
1163
- blank?
1164
- p
1165
- 11
1166
- I
1167
- 0
1168
- I
1169
- 2d
1170
- I
1171
- 0
1172
- I
1173
- 2e
1174
- I
1175
- 21
1176
- I
1177
- 2f
1178
- I
1179
- 45
1180
- I
1181
- 30
1182
- I
1183
- 4b
1184
- I
1185
- 31
1186
- I
1187
- 65
1188
- x
1189
- 98
1190
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
1191
- p
1192
- 1
1193
- x
1194
- 7
1195
- subject
1196
- p
1197
- 17
1198
- I
1199
- 2
1200
- I
1201
- f
1202
- I
1203
- 10
1204
- I
1205
- 13
1206
- I
1207
- 1e
1208
- I
1209
- 19
1210
- I
1211
- 2c
1212
- I
1213
- 1d
1214
- I
1215
- 3a
1216
- I
1217
- 21
1218
- I
1219
- 48
1220
- I
1221
- 25
1222
- I
1223
- 4c
1224
- I
1225
- 27
1226
- I
1227
- 5a
1228
- I
1229
- 2d
1230
- I
1231
- 68
1232
- x
1233
- 98
1234
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
1235
- p
1236
- 0
1237
- x
1238
- 13
1239
- attach_method
1240
- p
1241
- 5
1242
- I
1243
- 2
1244
- I
1245
- a
1246
- I
1247
- 10
1248
- I
1249
- e
1250
- I
1251
- 2b
1252
- x
1253
- 98
1254
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
1255
- p
1256
- 0
1257
- x
1258
- 13
1259
- attach_method
1260
- p
1261
- 3
1262
- I
1263
- 2
1264
- I
1265
- 3
1266
- I
1267
- 1c
1268
- x
1269
- 98
1270
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
1271
- p
1272
- 0
1273
- x
1274
- 13
1275
- attach_method
1276
- p
1277
- 3
1278
- I
1279
- 2
1280
- I
1281
- 2
1282
- I
1283
- 1c
1284
- x
1285
- 98
1286
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
1287
- p
1288
- 0
1289
- x
1290
- 13
1291
- attach_method
1292
- p
1293
- 3
1294
- I
1295
- 0
1296
- I
1297
- 1
1298
- I
1299
- 1c
1300
- x
1301
- 98
1302
- /Users/jyurek/Development/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb
1303
- p
1304
- 0