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,1174 +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
- 44
13
- 5
14
- 7
15
- 0
16
- 64
17
- 47
18
- 49
19
- 1
20
- 1
21
- 15
22
- 99
23
- 7
24
- 2
25
- 45
26
- 3
27
- 4
28
- 43
29
- 5
30
- 43
31
- 6
32
- 65
33
- 49
34
- 7
35
- 3
36
- 13
37
- 99
38
- 12
39
- 7
40
- 8
41
- 12
42
- 7
43
- 9
44
- 12
45
- 65
46
- 12
47
- 49
48
- 10
49
- 4
50
- 15
51
- 49
52
- 8
53
- 0
54
- 15
55
- 2
56
- 11
57
- I
58
- 6
59
- I
60
- 0
61
- I
62
- 0
63
- I
64
- 0
65
- n
66
- p
67
- 11
68
- s
69
- 13
70
- ./test/helper
71
- x
72
- 7
73
- require
74
- x
75
- 40
76
- ValidateAttachmentContentTypeMatcherTest
77
- x
78
- 4
79
- Test
80
- n
81
- x
82
- 4
83
- Unit
84
- x
85
- 8
86
- TestCase
87
- x
88
- 10
89
- open_class
90
- x
91
- 14
92
- __class_init__
93
- M
94
- 1
95
- n
96
- n
97
- x
98
- 40
99
- ValidateAttachmentContentTypeMatcherTest
100
- i
101
- 13
102
- 5
103
- 66
104
- 5
105
- 7
106
- 0
107
- 64
108
- 56
109
- 1
110
- 47
111
- 50
112
- 2
113
- 1
114
- 11
115
- I
116
- 3
117
- I
118
- 0
119
- I
120
- 0
121
- I
122
- 0
123
- n
124
- p
125
- 3
126
- s
127
- 32
128
- validate_attachment_content_type
129
- M
130
- 1
131
- p
132
- 2
133
- x
134
- 9
135
- for_block
136
- t
137
- n
138
- x
139
- 40
140
- ValidateAttachmentContentTypeMatcherTest
141
- i
142
- 52
143
- 5
144
- 56
145
- 0
146
- 47
147
- 50
148
- 1
149
- 0
150
- 15
151
- 5
152
- 7
153
- 2
154
- 64
155
- 56
156
- 3
157
- 47
158
- 50
159
- 4
160
- 1
161
- 15
162
- 5
163
- 7
164
- 5
165
- 64
166
- 56
167
- 6
168
- 47
169
- 50
170
- 4
171
- 1
172
- 15
173
- 5
174
- 7
175
- 7
176
- 64
177
- 56
178
- 8
179
- 47
180
- 50
181
- 4
182
- 1
183
- 15
184
- 5
185
- 7
186
- 9
187
- 64
188
- 56
189
- 10
190
- 47
191
- 50
192
- 4
193
- 1
194
- 11
195
- I
196
- 4
197
- I
198
- 0
199
- I
200
- 0
201
- I
202
- 0
203
- I
204
- -2
205
- p
206
- 11
207
- M
208
- 1
209
- p
210
- 2
211
- x
212
- 9
213
- for_block
214
- t
215
- n
216
- x
217
- 40
218
- ValidateAttachmentContentTypeMatcherTest
219
- i
220
- 64
221
- 5
222
- 7
223
- 0
224
- 64
225
- 56
226
- 1
227
- 47
228
- 50
229
- 2
230
- 1
231
- 15
232
- 5
233
- 7
234
- 3
235
- 64
236
- 47
237
- 49
238
- 4
239
- 1
240
- 38
241
- 5
242
- 15
243
- 39
244
- 5
245
- 7
246
- 6
247
- 49
248
- 7
249
- 1
250
- 15
251
- 5
252
- 49
253
- 8
254
- 0
255
- 7
256
- 6
257
- 49
258
- 9
259
- 1
260
- 7
261
- 10
262
- 64
263
- 7
264
- 11
265
- 64
266
- 35
267
- 2
268
- 49
269
- 12
270
- 1
271
- 7
272
- 13
273
- 64
274
- 7
275
- 14
276
- 64
277
- 35
278
- 2
279
- 49
280
- 15
281
- 1
282
- 38
283
- 16
284
- 11
285
- I
286
- 4
287
- I
288
- 0
289
- I
290
- 0
291
- I
292
- 0
293
- I
294
- -2
295
- p
296
- 17
297
- s
298
- 7
299
- dummies
300
- M
301
- 1
302
- p
303
- 2
304
- x
305
- 9
306
- for_block
307
- t
308
- n
309
- x
310
- 40
311
- ValidateAttachmentContentTypeMatcherTest
312
- i
313
- 28
314
- 57
315
- 19
316
- 0
317
- 15
318
- 20
319
- 0
320
- 7
321
- 0
322
- 49
323
- 1
324
- 1
325
- 15
326
- 20
327
- 0
328
- 7
329
- 2
330
- 49
331
- 1
332
- 1
333
- 15
334
- 20
335
- 0
336
- 7
337
- 3
338
- 49
339
- 1
340
- 1
341
- 11
342
- I
343
- 4
344
- I
345
- 1
346
- I
347
- 1
348
- I
349
- 1
350
- n
351
- p
352
- 4
353
- x
354
- 5
355
- title
356
- x
357
- 6
358
- string
359
- x
360
- 16
361
- avatar_file_name
362
- x
363
- 19
364
- avatar_content_type
365
- p
366
- 9
367
- I
368
- 0
369
- I
370
- 6
371
- I
372
- 4
373
- I
374
- 7
375
- I
376
- c
377
- I
378
- 8
379
- I
380
- 14
381
- I
382
- 9
383
- I
384
- 1c
385
- x
386
- 98
387
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
388
- p
389
- 1
390
- x
391
- 1
392
- d
393
- x
394
- 11
395
- reset_table
396
- s
397
- 5
398
- Dummy
399
- x
400
- 11
401
- reset_class
402
- x
403
- 12
404
- @dummy_class
405
- x
406
- 6
407
- avatar
408
- x
409
- 17
410
- has_attached_file
411
- x
412
- 5
413
- class
414
- x
415
- 32
416
- validate_attachment_content_type
417
- s
418
- 9
419
- image/png
420
- s
421
- 10
422
- image/jpeg
423
- x
424
- 8
425
- allowing
426
- s
427
- 9
428
- audio/mp3
429
- s
430
- 24
431
- application/octet-stream
432
- x
433
- 9
434
- rejecting
435
- x
436
- 8
437
- @matcher
438
- p
439
- 19
440
- I
441
- 0
442
- I
443
- 5
444
- I
445
- 0
446
- I
447
- 6
448
- I
449
- b
450
- I
451
- b
452
- I
453
- 16
454
- I
455
- c
456
- I
457
- 1e
458
- I
459
- d
460
- I
461
- 27
462
- I
463
- e
464
- I
465
- 2f
466
- I
467
- d
468
- I
469
- 32
470
- I
471
- f
472
- I
473
- 3a
474
- I
475
- d
476
- I
477
- 40
478
- x
479
- 98
480
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
481
- p
482
- 0
483
- x
484
- 5
485
- setup
486
- s
487
- 32
488
- given a class with no validation
489
- M
490
- 1
491
- p
492
- 2
493
- x
494
- 9
495
- for_block
496
- t
497
- n
498
- x
499
- 40
500
- ValidateAttachmentContentTypeMatcherTest
501
- i
502
- 4
503
- 5
504
- 48
505
- 0
506
- 11
507
- I
508
- 2
509
- I
510
- 0
511
- I
512
- 0
513
- I
514
- 0
515
- I
516
- -2
517
- p
518
- 1
519
- x
520
- 25
521
- should_reject_dummy_class
522
- p
523
- 5
524
- I
525
- 0
526
- I
527
- 12
528
- I
529
- 0
530
- I
531
- 13
532
- I
533
- 4
534
- x
535
- 98
536
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
537
- p
538
- 0
539
- x
540
- 7
541
- context
542
- s
543
- 50
544
- given a class with a validation that doesn't match
545
- M
546
- 1
547
- p
548
- 2
549
- x
550
- 9
551
- for_block
552
- t
553
- n
554
- x
555
- 40
556
- ValidateAttachmentContentTypeMatcherTest
557
- i
558
- 12
559
- 5
560
- 56
561
- 0
562
- 47
563
- 50
564
- 1
565
- 0
566
- 15
567
- 5
568
- 48
569
- 2
570
- 11
571
- I
572
- 3
573
- I
574
- 0
575
- I
576
- 0
577
- I
578
- 0
579
- I
580
- -2
581
- p
582
- 3
583
- M
584
- 1
585
- p
586
- 2
587
- x
588
- 9
589
- for_block
590
- t
591
- n
592
- x
593
- 40
594
- ValidateAttachmentContentTypeMatcherTest
595
- i
596
- 40
597
- 39
598
- 0
599
- 7
600
- 1
601
- 44
602
- 43
603
- 2
604
- 79
605
- 49
606
- 3
607
- 1
608
- 13
609
- 7
610
- 4
611
- 7
612
- 5
613
- 13
614
- 70
615
- 9
616
- 32
617
- 15
618
- 44
619
- 43
620
- 6
621
- 7
622
- 7
623
- 78
624
- 49
625
- 8
626
- 2
627
- 6
628
- 5
629
- 49
630
- 9
631
- 2
632
- 15
633
- 49
634
- 10
635
- 2
636
- 11
637
- I
638
- 9
639
- I
640
- 0
641
- I
642
- 0
643
- I
644
- 0
645
- I
646
- -2
647
- p
648
- 11
649
- x
650
- 12
651
- @dummy_class
652
- x
653
- 6
654
- avatar
655
- x
656
- 4
657
- Hash
658
- x
659
- 16
660
- new_from_literal
661
- x
662
- 12
663
- content_type
664
- n
665
- x
666
- 6
667
- Regexp
668
- s
669
- 8
670
- audio/.*
671
- x
672
- 3
673
- new
674
- x
675
- 3
676
- []=
677
- x
678
- 33
679
- validates_attachment_content_type
680
- p
681
- 5
682
- I
683
- 0
684
- I
685
- 17
686
- I
687
- 0
688
- I
689
- 18
690
- I
691
- 28
692
- x
693
- 98
694
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
695
- p
696
- 0
697
- x
698
- 5
699
- setup
700
- x
701
- 25
702
- should_reject_dummy_class
703
- p
704
- 7
705
- I
706
- 0
707
- I
708
- 16
709
- I
710
- 0
711
- I
712
- 17
713
- I
714
- 8
715
- I
716
- 1b
717
- I
718
- c
719
- x
720
- 98
721
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
722
- p
723
- 0
724
- s
725
- 40
726
- given a class with a matching validation
727
- M
728
- 1
729
- p
730
- 2
731
- x
732
- 9
733
- for_block
734
- t
735
- n
736
- x
737
- 40
738
- ValidateAttachmentContentTypeMatcherTest
739
- i
740
- 12
741
- 5
742
- 56
743
- 0
744
- 47
745
- 50
746
- 1
747
- 0
748
- 15
749
- 5
750
- 48
751
- 2
752
- 11
753
- I
754
- 3
755
- I
756
- 0
757
- I
758
- 0
759
- I
760
- 0
761
- I
762
- -2
763
- p
764
- 3
765
- M
766
- 1
767
- p
768
- 2
769
- x
770
- 9
771
- for_block
772
- t
773
- n
774
- x
775
- 40
776
- ValidateAttachmentContentTypeMatcherTest
777
- i
778
- 40
779
- 39
780
- 0
781
- 7
782
- 1
783
- 44
784
- 43
785
- 2
786
- 79
787
- 49
788
- 3
789
- 1
790
- 13
791
- 7
792
- 4
793
- 7
794
- 5
795
- 13
796
- 70
797
- 9
798
- 32
799
- 15
800
- 44
801
- 43
802
- 6
803
- 7
804
- 7
805
- 78
806
- 49
807
- 8
808
- 2
809
- 6
810
- 5
811
- 49
812
- 9
813
- 2
814
- 15
815
- 49
816
- 10
817
- 2
818
- 11
819
- I
820
- 9
821
- I
822
- 0
823
- I
824
- 0
825
- I
826
- 0
827
- I
828
- -2
829
- p
830
- 11
831
- x
832
- 12
833
- @dummy_class
834
- x
835
- 6
836
- avatar
837
- x
838
- 4
839
- Hash
840
- x
841
- 16
842
- new_from_literal
843
- x
844
- 12
845
- content_type
846
- n
847
- x
848
- 6
849
- Regexp
850
- s
851
- 8
852
- image/.*
853
- x
854
- 3
855
- new
856
- x
857
- 3
858
- []=
859
- x
860
- 33
861
- validates_attachment_content_type
862
- p
863
- 5
864
- I
865
- 0
866
- I
867
- 1f
868
- I
869
- 0
870
- I
871
- 20
872
- I
873
- 28
874
- x
875
- 98
876
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
877
- p
878
- 0
879
- x
880
- 5
881
- setup
882
- x
883
- 25
884
- should_accept_dummy_class
885
- p
886
- 7
887
- I
888
- 0
889
- I
890
- 1e
891
- I
892
- 0
893
- I
894
- 1f
895
- I
896
- 8
897
- I
898
- 23
899
- I
900
- c
901
- x
902
- 98
903
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
904
- p
905
- 0
906
- s
907
- 55
908
- given a class with other validations but matching types
909
- M
910
- 1
911
- p
912
- 2
913
- x
914
- 9
915
- for_block
916
- t
917
- n
918
- x
919
- 40
920
- ValidateAttachmentContentTypeMatcherTest
921
- i
922
- 12
923
- 5
924
- 56
925
- 0
926
- 47
927
- 50
928
- 1
929
- 0
930
- 15
931
- 5
932
- 48
933
- 2
934
- 11
935
- I
936
- 3
937
- I
938
- 0
939
- I
940
- 0
941
- I
942
- 0
943
- I
944
- -2
945
- p
946
- 3
947
- M
948
- 1
949
- p
950
- 2
951
- x
952
- 9
953
- for_block
954
- t
955
- n
956
- x
957
- 40
958
- ValidateAttachmentContentTypeMatcherTest
959
- i
960
- 48
961
- 39
962
- 0
963
- 7
964
- 1
965
- 49
966
- 2
967
- 1
968
- 15
969
- 39
970
- 0
971
- 7
972
- 3
973
- 44
974
- 43
975
- 4
976
- 79
977
- 49
978
- 5
979
- 1
980
- 13
981
- 7
982
- 6
983
- 7
984
- 7
985
- 13
986
- 70
987
- 9
988
- 40
989
- 15
990
- 44
991
- 43
992
- 8
993
- 7
994
- 9
995
- 78
996
- 49
997
- 10
998
- 2
999
- 6
1000
- 7
1001
- 49
1002
- 11
1003
- 2
1004
- 15
1005
- 49
1006
- 12
1007
- 2
1008
- 11
1009
- I
1010
- 9
1011
- I
1012
- 0
1013
- I
1014
- 0
1015
- I
1016
- 0
1017
- I
1018
- -2
1019
- p
1020
- 13
1021
- x
1022
- 12
1023
- @dummy_class
1024
- x
1025
- 5
1026
- title
1027
- x
1028
- 21
1029
- validates_presence_of
1030
- x
1031
- 6
1032
- avatar
1033
- x
1034
- 4
1035
- Hash
1036
- x
1037
- 16
1038
- new_from_literal
1039
- x
1040
- 12
1041
- content_type
1042
- n
1043
- x
1044
- 6
1045
- Regexp
1046
- s
1047
- 8
1048
- image/.*
1049
- x
1050
- 3
1051
- new
1052
- x
1053
- 3
1054
- []=
1055
- x
1056
- 33
1057
- validates_attachment_content_type
1058
- p
1059
- 7
1060
- I
1061
- 0
1062
- I
1063
- 27
1064
- I
1065
- 0
1066
- I
1067
- 28
1068
- I
1069
- 8
1070
- I
1071
- 29
1072
- I
1073
- 30
1074
- x
1075
- 98
1076
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
1077
- p
1078
- 0
1079
- x
1080
- 5
1081
- setup
1082
- x
1083
- 25
1084
- should_accept_dummy_class
1085
- p
1086
- 7
1087
- I
1088
- 0
1089
- I
1090
- 26
1091
- I
1092
- 0
1093
- I
1094
- 27
1095
- I
1096
- 8
1097
- I
1098
- 2c
1099
- I
1100
- c
1101
- x
1102
- 98
1103
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
1104
- p
1105
- 0
1106
- p
1107
- 13
1108
- I
1109
- 0
1110
- I
1111
- 4
1112
- I
1113
- 0
1114
- I
1115
- 5
1116
- I
1117
- 8
1118
- I
1119
- 12
1120
- I
1121
- 13
1122
- I
1123
- 16
1124
- I
1125
- 1e
1126
- I
1127
- 1e
1128
- I
1129
- 29
1130
- I
1131
- 26
1132
- I
1133
- 34
1134
- x
1135
- 98
1136
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
1137
- p
1138
- 0
1139
- x
1140
- 7
1141
- context
1142
- p
1143
- 3
1144
- I
1145
- 2
1146
- I
1147
- 4
1148
- I
1149
- d
1150
- x
1151
- 98
1152
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
1153
- p
1154
- 0
1155
- x
1156
- 13
1157
- attach_method
1158
- p
1159
- 5
1160
- I
1161
- 0
1162
- I
1163
- 1
1164
- I
1165
- 9
1166
- I
1167
- 3
1168
- I
1169
- 2c
1170
- x
1171
- 98
1172
- /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb
1173
- p
1174
- 0