paperclip 2.3.5 → 2.3.6

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 (64) hide show
  1. data/Rakefile +6 -2
  2. data/lib/paperclip.rbc +5129 -12
  3. data/lib/paperclip/attachment.rb +9 -3
  4. data/lib/paperclip/attachment.rbc +5550 -872
  5. data/lib/paperclip/callback_compatability.rbc +1649 -0
  6. data/lib/paperclip/command_line.rbc +1952 -0
  7. data/lib/paperclip/geometry.rbc +2141 -0
  8. data/lib/paperclip/glue.rbc +685 -0
  9. data/lib/paperclip/interpolations.rb +2 -1
  10. data/lib/paperclip/interpolations.rbc +2205 -0
  11. data/lib/paperclip/iostream.rbc +905 -0
  12. data/lib/paperclip/matchers.rbc +267 -0
  13. data/lib/paperclip/matchers/have_attached_file_matcher.rbc +1258 -0
  14. data/lib/paperclip/matchers/validate_attachment_content_type_matcher.rbc +1660 -0
  15. data/lib/paperclip/matchers/validate_attachment_presence_matcher.rbc +1304 -0
  16. data/lib/paperclip/matchers/validate_attachment_size_matcher.rbc +2160 -0
  17. data/lib/paperclip/{configuration.rbc → processor.rbc} +471 -569
  18. data/lib/paperclip/railtie.rbc +680 -0
  19. data/lib/paperclip/storage.rbc +69 -0
  20. data/lib/paperclip/storage/filesystem.rbc +1402 -0
  21. data/lib/paperclip/storage/s3.rb +1 -0
  22. data/lib/paperclip/storage/s3.rbc +3489 -0
  23. data/lib/paperclip/style.rbc +1571 -0
  24. data/lib/paperclip/thumbnail.rbc +1648 -0
  25. data/lib/paperclip/upfile.rb +0 -7
  26. data/lib/paperclip/upfile.rbc +1619 -0
  27. data/lib/paperclip/version.rb +1 -1
  28. data/lib/paperclip/version.rbc +176 -0
  29. data/shoulda_macros/paperclip.rbc +2415 -0
  30. data/test/attachment_test.rb +8 -8
  31. data/test/attachment_test.rbc +22952 -0
  32. data/test/command_line_test.rb +1 -1
  33. data/test/command_line_test.rbc +4307 -0
  34. data/test/geometry_test.rb +1 -1
  35. data/test/geometry_test.rbc +5181 -0
  36. data/test/helper.rb +1 -13
  37. data/test/helper.rbc +3971 -0
  38. data/test/integration_test.rb +1 -1
  39. data/test/integration_test.rbc +13137 -0
  40. data/test/interpolations_test.rb +1 -1
  41. data/test/interpolations_test.rbc +3432 -0
  42. data/test/iostream_test.rb +1 -1
  43. data/test/iostream_test.rbc +1889 -0
  44. data/test/matchers/have_attached_file_matcher_test.rb +1 -1
  45. data/test/matchers/have_attached_file_matcher_test.rbc +622 -0
  46. data/test/matchers/validate_attachment_content_type_matcher_test.rb +1 -1
  47. data/test/matchers/validate_attachment_content_type_matcher_test.rbc +1174 -0
  48. data/test/matchers/validate_attachment_presence_matcher_test.rb +1 -1
  49. data/test/matchers/validate_attachment_presence_matcher_test.rbc +622 -0
  50. data/test/matchers/validate_attachment_size_matcher_test.rb +1 -1
  51. data/test/matchers/validate_attachment_size_matcher_test.rbc +1658 -0
  52. data/test/paperclip_test.rb +1 -1
  53. data/test/paperclip_test.rbc +7407 -0
  54. data/test/processor_test.rb +1 -1
  55. data/test/processor_test.rbc +314 -0
  56. data/test/storage_test.rb +1 -1
  57. data/test/storage_test.rbc +10294 -0
  58. data/test/style_test.rb +1 -1
  59. data/test/style_test.rbc +3752 -0
  60. data/test/thumbnail_test.rb +1 -1
  61. data/test/thumbnail_test.rbc +6803 -0
  62. data/test/upfile_test.rb +1 -18
  63. data/test/upfile_test.rbc +1635 -0
  64. metadata +77 -26
@@ -0,0 +1,905 @@
1
+ !RBIX
2
+ 0
3
+ x
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 87
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
+ 26
40
+ 93
41
+ 0
42
+ 15
43
+ 29
44
+ 41
45
+ 0
46
+ 7
47
+ 5
48
+ 98
49
+ 6
50
+ 1
51
+ 30
52
+ 8
53
+ 47
54
+ 25
55
+ 92
56
+ 0
57
+ 27
58
+ 8
59
+ 52
60
+ 15
61
+ 7
62
+ 7
63
+ 8
64
+ 53
65
+ 1
66
+ 9
67
+ 83
68
+ 99
69
+ 7
70
+ 5
71
+ 1
72
+ 65
73
+ 49
74
+ 8
75
+ 3
76
+ 13
77
+ 99
78
+ 12
79
+ 7
80
+ 9
81
+ 12
82
+ 7
83
+ 10
84
+ 12
85
+ 65
86
+ 12
87
+ 49
88
+ 4
89
+ 4
90
+ 15
91
+ 49
92
+ 9
93
+ 0
94
+ 8
95
+ 84
96
+ 1
97
+ 15
98
+ 2
99
+ 11
100
+ I
101
+ 7
102
+ I
103
+ 0
104
+ I
105
+ 0
106
+ I
107
+ 0
108
+ n
109
+ p
110
+ 11
111
+ x
112
+ 8
113
+ IOStream
114
+ x
115
+ 11
116
+ open_module
117
+ x
118
+ 15
119
+ __module_init__
120
+ M
121
+ 1
122
+ n
123
+ n
124
+ x
125
+ 8
126
+ IOStream
127
+ i
128
+ 30
129
+ 5
130
+ 66
131
+ 99
132
+ 7
133
+ 0
134
+ 7
135
+ 1
136
+ 65
137
+ 67
138
+ 49
139
+ 2
140
+ 0
141
+ 49
142
+ 3
143
+ 4
144
+ 15
145
+ 99
146
+ 7
147
+ 4
148
+ 7
149
+ 5
150
+ 65
151
+ 67
152
+ 49
153
+ 2
154
+ 0
155
+ 49
156
+ 3
157
+ 4
158
+ 11
159
+ I
160
+ 5
161
+ I
162
+ 0
163
+ I
164
+ 0
165
+ I
166
+ 0
167
+ n
168
+ p
169
+ 6
170
+ x
171
+ 11
172
+ to_tempfile
173
+ M
174
+ 1
175
+ n
176
+ n
177
+ x
178
+ 11
179
+ to_tempfile
180
+ i
181
+ 128
182
+ 20
183
+ 0
184
+ 7
185
+ 0
186
+ 49
187
+ 1
188
+ 1
189
+ 9
190
+ 17
191
+ 20
192
+ 0
193
+ 49
194
+ 0
195
+ 0
196
+ 11
197
+ 8
198
+ 18
199
+ 1
200
+ 15
201
+ 20
202
+ 0
203
+ 7
204
+ 2
205
+ 49
206
+ 1
207
+ 1
208
+ 9
209
+ 35
210
+ 20
211
+ 0
212
+ 49
213
+ 2
214
+ 0
215
+ 8
216
+ 54
217
+ 20
218
+ 0
219
+ 7
220
+ 3
221
+ 49
222
+ 1
223
+ 1
224
+ 9
225
+ 51
226
+ 20
227
+ 0
228
+ 49
229
+ 3
230
+ 0
231
+ 8
232
+ 54
233
+ 7
234
+ 4
235
+ 64
236
+ 19
237
+ 1
238
+ 15
239
+ 45
240
+ 5
241
+ 6
242
+ 43
243
+ 7
244
+ 13
245
+ 71
246
+ 8
247
+ 47
248
+ 9
249
+ 93
250
+ 47
251
+ 49
252
+ 9
253
+ 0
254
+ 13
255
+ 7
256
+ 4
257
+ 64
258
+ 45
259
+ 10
260
+ 11
261
+ 20
262
+ 1
263
+ 49
264
+ 12
265
+ 1
266
+ 35
267
+ 2
268
+ 47
269
+ 49
270
+ 13
271
+ 1
272
+ 15
273
+ 8
274
+ 109
275
+ 7
276
+ 4
277
+ 64
278
+ 45
279
+ 10
280
+ 14
281
+ 20
282
+ 1
283
+ 49
284
+ 12
285
+ 1
286
+ 35
287
+ 2
288
+ 49
289
+ 8
290
+ 1
291
+ 19
292
+ 2
293
+ 15
294
+ 20
295
+ 2
296
+ 49
297
+ 15
298
+ 0
299
+ 15
300
+ 5
301
+ 20
302
+ 0
303
+ 20
304
+ 2
305
+ 47
306
+ 49
307
+ 16
308
+ 2
309
+ 11
310
+ I
311
+ 8
312
+ I
313
+ 3
314
+ I
315
+ 1
316
+ I
317
+ 1
318
+ n
319
+ p
320
+ 17
321
+ x
322
+ 11
323
+ to_tempfile
324
+ x
325
+ 11
326
+ respond_to?
327
+ x
328
+ 17
329
+ original_filename
330
+ x
331
+ 4
332
+ path
333
+ s
334
+ 6
335
+ stream
336
+ x
337
+ 9
338
+ Paperclip
339
+ n
340
+ x
341
+ 8
342
+ Tempfile
343
+ x
344
+ 3
345
+ new
346
+ x
347
+ 8
348
+ allocate
349
+ x
350
+ 4
351
+ File
352
+ n
353
+ x
354
+ 7
355
+ extname
356
+ x
357
+ 10
358
+ initialize
359
+ n
360
+ x
361
+ 7
362
+ binmode
363
+ x
364
+ 9
365
+ stream_to
366
+ p
367
+ 13
368
+ I
369
+ 0
370
+ I
371
+ 5
372
+ I
373
+ 0
374
+ I
375
+ 6
376
+ I
377
+ 13
378
+ I
379
+ 7
380
+ I
381
+ 39
382
+ I
383
+ 8
384
+ I
385
+ 70
386
+ I
387
+ 9
388
+ I
389
+ 76
390
+ I
391
+ a
392
+ I
393
+ 80
394
+ x
395
+ 61
396
+ /Users/jyurek/Development/paperclip/lib/paperclip/iostream.rb
397
+ p
398
+ 3
399
+ x
400
+ 6
401
+ object
402
+ x
403
+ 4
404
+ name
405
+ x
406
+ 8
407
+ tempfile
408
+ x
409
+ 17
410
+ method_visibility
411
+ x
412
+ 15
413
+ add_defn_method
414
+ x
415
+ 9
416
+ stream_to
417
+ M
418
+ 1
419
+ n
420
+ n
421
+ x
422
+ 9
423
+ stream_to
424
+ i
425
+ 138
426
+ 23
427
+ 2
428
+ 10
429
+ 9
430
+ 7
431
+ 0
432
+ 19
433
+ 2
434
+ 15
435
+ 20
436
+ 1
437
+ 13
438
+ 45
439
+ 1
440
+ 2
441
+ 12
442
+ 49
443
+ 3
444
+ 1
445
+ 9
446
+ 58
447
+ 15
448
+ 45
449
+ 4
450
+ 5
451
+ 13
452
+ 71
453
+ 6
454
+ 47
455
+ 9
456
+ 48
457
+ 47
458
+ 49
459
+ 7
460
+ 0
461
+ 13
462
+ 20
463
+ 1
464
+ 7
465
+ 8
466
+ 64
467
+ 47
468
+ 49
469
+ 9
470
+ 2
471
+ 15
472
+ 8
473
+ 56
474
+ 20
475
+ 1
476
+ 7
477
+ 8
478
+ 64
479
+ 49
480
+ 6
481
+ 2
482
+ 8
483
+ 90
484
+ 13
485
+ 45
486
+ 10
487
+ 11
488
+ 12
489
+ 49
490
+ 3
491
+ 1
492
+ 9
493
+ 73
494
+ 15
495
+ 20
496
+ 1
497
+ 8
498
+ 90
499
+ 13
500
+ 45
501
+ 12
502
+ 13
503
+ 12
504
+ 49
505
+ 3
506
+ 1
507
+ 9
508
+ 88
509
+ 15
510
+ 20
511
+ 1
512
+ 8
513
+ 90
514
+ 15
515
+ 1
516
+ 19
517
+ 3
518
+ 15
519
+ 7
520
+ 14
521
+ 64
522
+ 19
523
+ 4
524
+ 15
525
+ 20
526
+ 0
527
+ 49
528
+ 15
529
+ 0
530
+ 15
531
+ 20
532
+ 0
533
+ 20
534
+ 2
535
+ 20
536
+ 4
537
+ 49
538
+ 16
539
+ 2
540
+ 9
541
+ 127
542
+ 20
543
+ 3
544
+ 20
545
+ 4
546
+ 49
547
+ 17
548
+ 1
549
+ 15
550
+ 68
551
+ 8
552
+ 105
553
+ 1
554
+ 15
555
+ 20
556
+ 3
557
+ 49
558
+ 15
559
+ 0
560
+ 15
561
+ 20
562
+ 3
563
+ 11
564
+ I
565
+ 9
566
+ I
567
+ 5
568
+ I
569
+ 2
570
+ I
571
+ 3
572
+ n
573
+ p
574
+ 18
575
+ I
576
+ 2000
577
+ x
578
+ 6
579
+ String
580
+ n
581
+ x
582
+ 3
583
+ ===
584
+ x
585
+ 4
586
+ File
587
+ n
588
+ x
589
+ 3
590
+ new
591
+ x
592
+ 8
593
+ allocate
594
+ s
595
+ 3
596
+ wb+
597
+ x
598
+ 10
599
+ initialize
600
+ x
601
+ 2
602
+ IO
603
+ n
604
+ x
605
+ 8
606
+ Tempfile
607
+ n
608
+ s
609
+ 0
610
+
611
+ x
612
+ 6
613
+ rewind
614
+ x
615
+ 4
616
+ read
617
+ x
618
+ 5
619
+ write
620
+ p
621
+ 25
622
+ I
623
+ 0
624
+ I
625
+ 10
626
+ I
627
+ 9
628
+ I
629
+ 11
630
+ I
631
+ c
632
+ I
633
+ 12
634
+ I
635
+ 3b
636
+ I
637
+ 13
638
+ I
639
+ 4a
640
+ I
641
+ 14
642
+ I
643
+ 59
644
+ I
645
+ 11
646
+ I
647
+ 5d
648
+ I
649
+ 16
650
+ I
651
+ 63
652
+ I
653
+ 17
654
+ I
655
+ 69
656
+ I
657
+ 18
658
+ I
659
+ 74
660
+ I
661
+ 19
662
+ I
663
+ 81
664
+ I
665
+ 1b
666
+ I
667
+ 87
668
+ I
669
+ 1c
670
+ I
671
+ 8a
672
+ x
673
+ 61
674
+ /Users/jyurek/Development/paperclip/lib/paperclip/iostream.rb
675
+ p
676
+ 5
677
+ x
678
+ 6
679
+ object
680
+ x
681
+ 12
682
+ path_or_file
683
+ x
684
+ 12
685
+ in_blocks_of
686
+ x
687
+ 5
688
+ dstio
689
+ x
690
+ 6
691
+ buffer
692
+ p
693
+ 5
694
+ I
695
+ 2
696
+ I
697
+ 5
698
+ I
699
+ 10
700
+ I
701
+ 10
702
+ I
703
+ 1e
704
+ x
705
+ 61
706
+ /Users/jyurek/Development/paperclip/lib/paperclip/iostream.rb
707
+ p
708
+ 0
709
+ x
710
+ 13
711
+ attach_method
712
+ x
713
+ 8
714
+ Tempfile
715
+ x
716
+ 16
717
+ vm_const_defined
718
+ s
719
+ 8
720
+ constant
721
+ x
722
+ 10
723
+ open_class
724
+ x
725
+ 14
726
+ __class_init__
727
+ M
728
+ 1
729
+ n
730
+ n
731
+ x
732
+ 8
733
+ Tempfile
734
+ i
735
+ 16
736
+ 5
737
+ 66
738
+ 99
739
+ 7
740
+ 0
741
+ 7
742
+ 1
743
+ 65
744
+ 67
745
+ 49
746
+ 2
747
+ 0
748
+ 49
749
+ 3
750
+ 4
751
+ 11
752
+ I
753
+ 5
754
+ I
755
+ 0
756
+ I
757
+ 0
758
+ I
759
+ 0
760
+ n
761
+ p
762
+ 4
763
+ x
764
+ 4
765
+ size
766
+ M
767
+ 1
768
+ n
769
+ n
770
+ x
771
+ 4
772
+ size
773
+ i
774
+ 28
775
+ 39
776
+ 0
777
+ 9
778
+ 26
779
+ 39
780
+ 0
781
+ 49
782
+ 1
783
+ 0
784
+ 15
785
+ 39
786
+ 0
787
+ 49
788
+ 2
789
+ 0
790
+ 15
791
+ 39
792
+ 0
793
+ 49
794
+ 3
795
+ 0
796
+ 49
797
+ 4
798
+ 0
799
+ 8
800
+ 27
801
+ 78
802
+ 11
803
+ I
804
+ 1
805
+ I
806
+ 0
807
+ I
808
+ 0
809
+ I
810
+ 0
811
+ n
812
+ p
813
+ 5
814
+ x
815
+ 8
816
+ @tmpfile
817
+ x
818
+ 5
819
+ fsync
820
+ x
821
+ 5
822
+ flush
823
+ x
824
+ 4
825
+ stat
826
+ x
827
+ 4
828
+ size
829
+ p
830
+ 13
831
+ I
832
+ 0
833
+ I
834
+ 23
835
+ I
836
+ 0
837
+ I
838
+ 24
839
+ I
840
+ 4
841
+ I
842
+ 25
843
+ I
844
+ a
845
+ I
846
+ 26
847
+ I
848
+ 10
849
+ I
850
+ 27
851
+ I
852
+ 1a
853
+ I
854
+ 29
855
+ I
856
+ 1c
857
+ x
858
+ 61
859
+ /Users/jyurek/Development/paperclip/lib/paperclip/iostream.rb
860
+ p
861
+ 0
862
+ x
863
+ 17
864
+ method_visibility
865
+ x
866
+ 15
867
+ add_defn_method
868
+ p
869
+ 3
870
+ I
871
+ 2
872
+ I
873
+ 23
874
+ I
875
+ 10
876
+ x
877
+ 61
878
+ /Users/jyurek/Development/paperclip/lib/paperclip/iostream.rb
879
+ p
880
+ 0
881
+ p
882
+ 9
883
+ I
884
+ 0
885
+ I
886
+ 3
887
+ I
888
+ 1a
889
+ I
890
+ 21
891
+ I
892
+ 37
893
+ I
894
+ 22
895
+ I
896
+ 53
897
+ I
898
+ 21
899
+ I
900
+ 57
901
+ x
902
+ 61
903
+ /Users/jyurek/Development/paperclip/lib/paperclip/iostream.rb
904
+ p
905
+ 0