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
@@ -1,4 +1,4 @@
1
- require 'test/helper'
1
+ require './test/helper'
2
2
 
3
3
  class IOStreamTest < Test::Unit::TestCase
4
4
  include IOStream
@@ -0,0 +1,1889 @@
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
+ 12
76
+ IOStreamTest
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
+ 12
99
+ IOStreamTest
100
+ i
101
+ 22
102
+ 5
103
+ 66
104
+ 5
105
+ 45
106
+ 0
107
+ 1
108
+ 47
109
+ 49
110
+ 2
111
+ 1
112
+ 15
113
+ 5
114
+ 7
115
+ 3
116
+ 64
117
+ 56
118
+ 4
119
+ 47
120
+ 50
121
+ 5
122
+ 1
123
+ 11
124
+ I
125
+ 3
126
+ I
127
+ 0
128
+ I
129
+ 0
130
+ I
131
+ 0
132
+ n
133
+ p
134
+ 6
135
+ x
136
+ 8
137
+ IOStream
138
+ n
139
+ x
140
+ 7
141
+ include
142
+ s
143
+ 6
144
+ A file
145
+ M
146
+ 1
147
+ p
148
+ 2
149
+ x
150
+ 9
151
+ for_block
152
+ t
153
+ n
154
+ x
155
+ 12
156
+ IOStreamTest
157
+ i
158
+ 38
159
+ 5
160
+ 56
161
+ 0
162
+ 47
163
+ 50
164
+ 1
165
+ 0
166
+ 15
167
+ 5
168
+ 56
169
+ 2
170
+ 47
171
+ 50
172
+ 3
173
+ 0
174
+ 15
175
+ 5
176
+ 7
177
+ 4
178
+ 64
179
+ 56
180
+ 5
181
+ 47
182
+ 50
183
+ 6
184
+ 1
185
+ 15
186
+ 5
187
+ 7
188
+ 7
189
+ 64
190
+ 56
191
+ 8
192
+ 47
193
+ 50
194
+ 6
195
+ 1
196
+ 11
197
+ I
198
+ 4
199
+ I
200
+ 0
201
+ I
202
+ 0
203
+ I
204
+ 0
205
+ I
206
+ -2
207
+ p
208
+ 9
209
+ M
210
+ 1
211
+ p
212
+ 2
213
+ x
214
+ 9
215
+ for_block
216
+ t
217
+ n
218
+ x
219
+ 12
220
+ IOStreamTest
221
+ i
222
+ 77
223
+ 45
224
+ 0
225
+ 1
226
+ 13
227
+ 71
228
+ 2
229
+ 47
230
+ 9
231
+ 46
232
+ 47
233
+ 49
234
+ 3
235
+ 0
236
+ 13
237
+ 45
238
+ 0
239
+ 4
240
+ 45
241
+ 0
242
+ 5
243
+ 65
244
+ 49
245
+ 6
246
+ 0
247
+ 49
248
+ 7
249
+ 1
250
+ 7
251
+ 8
252
+ 64
253
+ 7
254
+ 9
255
+ 64
256
+ 49
257
+ 10
258
+ 3
259
+ 7
260
+ 11
261
+ 64
262
+ 47
263
+ 49
264
+ 12
265
+ 2
266
+ 15
267
+ 8
268
+ 74
269
+ 45
270
+ 0
271
+ 13
272
+ 45
273
+ 0
274
+ 14
275
+ 65
276
+ 49
277
+ 6
278
+ 0
279
+ 49
280
+ 7
281
+ 1
282
+ 7
283
+ 8
284
+ 64
285
+ 7
286
+ 9
287
+ 64
288
+ 49
289
+ 10
290
+ 3
291
+ 7
292
+ 11
293
+ 64
294
+ 49
295
+ 2
296
+ 2
297
+ 38
298
+ 15
299
+ 11
300
+ I
301
+ 7
302
+ I
303
+ 0
304
+ I
305
+ 0
306
+ I
307
+ 0
308
+ I
309
+ -2
310
+ p
311
+ 16
312
+ x
313
+ 4
314
+ File
315
+ n
316
+ x
317
+ 3
318
+ new
319
+ x
320
+ 8
321
+ allocate
322
+ n
323
+ n
324
+ x
325
+ 11
326
+ active_path
327
+ x
328
+ 7
329
+ dirname
330
+ s
331
+ 8
332
+ fixtures
333
+ s
334
+ 6
335
+ 5k.png
336
+ x
337
+ 4
338
+ join
339
+ s
340
+ 2
341
+ rb
342
+ x
343
+ 10
344
+ initialize
345
+ n
346
+ n
347
+ x
348
+ 5
349
+ @file
350
+ p
351
+ 5
352
+ I
353
+ 0
354
+ I
355
+ 6
356
+ I
357
+ 0
358
+ I
359
+ 7
360
+ I
361
+ 4d
362
+ x
363
+ 57
364
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
365
+ p
366
+ 0
367
+ x
368
+ 5
369
+ setup
370
+ M
371
+ 1
372
+ p
373
+ 2
374
+ x
375
+ 9
376
+ for_block
377
+ t
378
+ n
379
+ x
380
+ 12
381
+ IOStreamTest
382
+ i
383
+ 6
384
+ 39
385
+ 0
386
+ 49
387
+ 1
388
+ 0
389
+ 11
390
+ I
391
+ 2
392
+ I
393
+ 0
394
+ I
395
+ 0
396
+ I
397
+ 0
398
+ I
399
+ -2
400
+ p
401
+ 2
402
+ x
403
+ 5
404
+ @file
405
+ x
406
+ 5
407
+ close
408
+ p
409
+ 3
410
+ I
411
+ 0
412
+ I
413
+ a
414
+ I
415
+ 6
416
+ x
417
+ 57
418
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
419
+ p
420
+ 0
421
+ x
422
+ 8
423
+ teardown
424
+ s
425
+ 23
426
+ that is sent #stream_to
427
+ M
428
+ 1
429
+ p
430
+ 2
431
+ x
432
+ 9
433
+ for_block
434
+ t
435
+ n
436
+ x
437
+ 12
438
+ IOStreamTest
439
+ i
440
+ 22
441
+ 5
442
+ 7
443
+ 0
444
+ 64
445
+ 56
446
+ 1
447
+ 47
448
+ 50
449
+ 2
450
+ 1
451
+ 15
452
+ 5
453
+ 7
454
+ 3
455
+ 64
456
+ 56
457
+ 4
458
+ 47
459
+ 50
460
+ 2
461
+ 1
462
+ 11
463
+ I
464
+ 4
465
+ I
466
+ 0
467
+ I
468
+ 0
469
+ I
470
+ 0
471
+ I
472
+ -2
473
+ p
474
+ 5
475
+ s
476
+ 18
477
+ and given a String
478
+ M
479
+ 1
480
+ p
481
+ 2
482
+ x
483
+ 9
484
+ for_block
485
+ t
486
+ n
487
+ x
488
+ 12
489
+ IOStreamTest
490
+ i
491
+ 30
492
+ 5
493
+ 56
494
+ 0
495
+ 47
496
+ 50
497
+ 1
498
+ 0
499
+ 15
500
+ 5
501
+ 7
502
+ 2
503
+ 64
504
+ 56
505
+ 3
506
+ 47
507
+ 50
508
+ 4
509
+ 1
510
+ 15
511
+ 5
512
+ 7
513
+ 5
514
+ 64
515
+ 56
516
+ 6
517
+ 47
518
+ 50
519
+ 4
520
+ 1
521
+ 11
522
+ I
523
+ 4
524
+ I
525
+ 0
526
+ I
527
+ 0
528
+ I
529
+ 0
530
+ I
531
+ -2
532
+ p
533
+ 7
534
+ M
535
+ 1
536
+ p
537
+ 2
538
+ x
539
+ 9
540
+ for_block
541
+ t
542
+ n
543
+ x
544
+ 12
545
+ IOStreamTest
546
+ i
547
+ 49
548
+ 45
549
+ 0
550
+ 1
551
+ 45
552
+ 2
553
+ 3
554
+ 45
555
+ 4
556
+ 5
557
+ 7
558
+ 6
559
+ 64
560
+ 49
561
+ 7
562
+ 2
563
+ 49
564
+ 8
565
+ 1
566
+ 15
567
+ 5
568
+ 5
569
+ 39
570
+ 9
571
+ 45
572
+ 2
573
+ 10
574
+ 45
575
+ 4
576
+ 11
577
+ 7
578
+ 6
579
+ 64
580
+ 7
581
+ 12
582
+ 64
583
+ 49
584
+ 7
585
+ 3
586
+ 47
587
+ 49
588
+ 13
589
+ 2
590
+ 38
591
+ 14
592
+ 47
593
+ 49
594
+ 15
595
+ 1
596
+ 11
597
+ I
598
+ 8
599
+ I
600
+ 0
601
+ I
602
+ 0
603
+ I
604
+ 0
605
+ I
606
+ -2
607
+ p
608
+ 16
609
+ x
610
+ 9
611
+ FileUtils
612
+ n
613
+ x
614
+ 4
615
+ File
616
+ n
617
+ x
618
+ 4
619
+ ROOT
620
+ n
621
+ s
622
+ 3
623
+ tmp
624
+ x
625
+ 4
626
+ join
627
+ x
628
+ 7
629
+ mkdir_p
630
+ x
631
+ 5
632
+ @file
633
+ n
634
+ n
635
+ s
636
+ 20
637
+ iostream.string.test
638
+ x
639
+ 9
640
+ stream_to
641
+ x
642
+ 7
643
+ @result
644
+ x
645
+ 6
646
+ assert
647
+ p
648
+ 7
649
+ I
650
+ 0
651
+ I
652
+ f
653
+ I
654
+ 0
655
+ I
656
+ 10
657
+ I
658
+ 13
659
+ I
660
+ 11
661
+ I
662
+ 31
663
+ x
664
+ 57
665
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
666
+ p
667
+ 0
668
+ x
669
+ 5
670
+ setup
671
+ s
672
+ 13
673
+ return a File
674
+ M
675
+ 1
676
+ p
677
+ 2
678
+ x
679
+ 9
680
+ for_block
681
+ t
682
+ n
683
+ x
684
+ 12
685
+ IOStreamTest
686
+ i
687
+ 14
688
+ 5
689
+ 39
690
+ 0
691
+ 45
692
+ 1
693
+ 2
694
+ 49
695
+ 3
696
+ 1
697
+ 47
698
+ 49
699
+ 4
700
+ 1
701
+ 11
702
+ I
703
+ 4
704
+ I
705
+ 0
706
+ I
707
+ 0
708
+ I
709
+ 0
710
+ I
711
+ -2
712
+ p
713
+ 5
714
+ x
715
+ 7
716
+ @result
717
+ x
718
+ 4
719
+ File
720
+ n
721
+ x
722
+ 5
723
+ is_a?
724
+ x
725
+ 6
726
+ assert
727
+ p
728
+ 5
729
+ I
730
+ 0
731
+ I
732
+ 14
733
+ I
734
+ 0
735
+ I
736
+ 15
737
+ I
738
+ e
739
+ x
740
+ 57
741
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
742
+ p
743
+ 0
744
+ x
745
+ 6
746
+ should
747
+ s
748
+ 42
749
+ contain the same data as the original file
750
+ M
751
+ 1
752
+ p
753
+ 2
754
+ x
755
+ 9
756
+ for_block
757
+ t
758
+ n
759
+ x
760
+ 12
761
+ IOStreamTest
762
+ i
763
+ 28
764
+ 39
765
+ 0
766
+ 49
767
+ 1
768
+ 0
769
+ 15
770
+ 39
771
+ 2
772
+ 49
773
+ 1
774
+ 0
775
+ 15
776
+ 5
777
+ 39
778
+ 0
779
+ 49
780
+ 3
781
+ 0
782
+ 39
783
+ 2
784
+ 49
785
+ 3
786
+ 0
787
+ 47
788
+ 49
789
+ 4
790
+ 2
791
+ 11
792
+ I
793
+ 4
794
+ I
795
+ 0
796
+ I
797
+ 0
798
+ I
799
+ 0
800
+ I
801
+ -2
802
+ p
803
+ 5
804
+ x
805
+ 5
806
+ @file
807
+ x
808
+ 6
809
+ rewind
810
+ x
811
+ 7
812
+ @result
813
+ x
814
+ 4
815
+ read
816
+ x
817
+ 12
818
+ assert_equal
819
+ p
820
+ 7
821
+ I
822
+ 0
823
+ I
824
+ 18
825
+ I
826
+ 0
827
+ I
828
+ 19
829
+ I
830
+ c
831
+ I
832
+ 1a
833
+ I
834
+ 1c
835
+ x
836
+ 57
837
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
838
+ p
839
+ 0
840
+ p
841
+ 9
842
+ I
843
+ 0
844
+ I
845
+ e
846
+ I
847
+ 0
848
+ I
849
+ f
850
+ I
851
+ 8
852
+ I
853
+ 14
854
+ I
855
+ 13
856
+ I
857
+ 18
858
+ I
859
+ 1e
860
+ x
861
+ 57
862
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
863
+ p
864
+ 0
865
+ x
866
+ 7
867
+ context
868
+ s
869
+ 20
870
+ and given a Tempfile
871
+ M
872
+ 1
873
+ p
874
+ 2
875
+ x
876
+ 9
877
+ for_block
878
+ t
879
+ n
880
+ x
881
+ 12
882
+ IOStreamTest
883
+ i
884
+ 30
885
+ 5
886
+ 56
887
+ 0
888
+ 47
889
+ 50
890
+ 1
891
+ 0
892
+ 15
893
+ 5
894
+ 7
895
+ 2
896
+ 64
897
+ 56
898
+ 3
899
+ 47
900
+ 50
901
+ 4
902
+ 1
903
+ 15
904
+ 5
905
+ 7
906
+ 5
907
+ 64
908
+ 56
909
+ 6
910
+ 47
911
+ 50
912
+ 4
913
+ 1
914
+ 11
915
+ I
916
+ 4
917
+ I
918
+ 0
919
+ I
920
+ 0
921
+ I
922
+ 0
923
+ I
924
+ -2
925
+ p
926
+ 7
927
+ M
928
+ 1
929
+ p
930
+ 2
931
+ x
932
+ 9
933
+ for_block
934
+ t
935
+ n
936
+ x
937
+ 12
938
+ IOStreamTest
939
+ i
940
+ 56
941
+ 45
942
+ 0
943
+ 1
944
+ 13
945
+ 71
946
+ 2
947
+ 47
948
+ 9
949
+ 24
950
+ 47
951
+ 49
952
+ 3
953
+ 0
954
+ 13
955
+ 7
956
+ 4
957
+ 64
958
+ 47
959
+ 49
960
+ 5
961
+ 1
962
+ 15
963
+ 8
964
+ 30
965
+ 7
966
+ 4
967
+ 64
968
+ 49
969
+ 2
970
+ 1
971
+ 19
972
+ 0
973
+ 15
974
+ 20
975
+ 0
976
+ 49
977
+ 6
978
+ 0
979
+ 15
980
+ 5
981
+ 5
982
+ 39
983
+ 7
984
+ 20
985
+ 0
986
+ 47
987
+ 49
988
+ 8
989
+ 2
990
+ 38
991
+ 9
992
+ 47
993
+ 49
994
+ 10
995
+ 1
996
+ 11
997
+ I
998
+ 6
999
+ I
1000
+ 1
1001
+ I
1002
+ 0
1003
+ I
1004
+ 0
1005
+ I
1006
+ -2
1007
+ p
1008
+ 11
1009
+ x
1010
+ 8
1011
+ Tempfile
1012
+ n
1013
+ x
1014
+ 3
1015
+ new
1016
+ x
1017
+ 8
1018
+ allocate
1019
+ s
1020
+ 13
1021
+ iostream.test
1022
+ x
1023
+ 10
1024
+ initialize
1025
+ x
1026
+ 7
1027
+ binmode
1028
+ x
1029
+ 5
1030
+ @file
1031
+ x
1032
+ 9
1033
+ stream_to
1034
+ x
1035
+ 7
1036
+ @result
1037
+ x
1038
+ 6
1039
+ assert
1040
+ p
1041
+ 9
1042
+ I
1043
+ 0
1044
+ I
1045
+ 1f
1046
+ I
1047
+ 0
1048
+ I
1049
+ 20
1050
+ I
1051
+ 21
1052
+ I
1053
+ 21
1054
+ I
1055
+ 27
1056
+ I
1057
+ 22
1058
+ I
1059
+ 38
1060
+ x
1061
+ 57
1062
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1063
+ p
1064
+ 1
1065
+ x
1066
+ 8
1067
+ tempfile
1068
+ x
1069
+ 5
1070
+ setup
1071
+ s
1072
+ 17
1073
+ return a Tempfile
1074
+ M
1075
+ 1
1076
+ p
1077
+ 2
1078
+ x
1079
+ 9
1080
+ for_block
1081
+ t
1082
+ n
1083
+ x
1084
+ 12
1085
+ IOStreamTest
1086
+ i
1087
+ 14
1088
+ 5
1089
+ 39
1090
+ 0
1091
+ 45
1092
+ 1
1093
+ 2
1094
+ 49
1095
+ 3
1096
+ 1
1097
+ 47
1098
+ 49
1099
+ 4
1100
+ 1
1101
+ 11
1102
+ I
1103
+ 4
1104
+ I
1105
+ 0
1106
+ I
1107
+ 0
1108
+ I
1109
+ 0
1110
+ I
1111
+ -2
1112
+ p
1113
+ 5
1114
+ x
1115
+ 7
1116
+ @result
1117
+ x
1118
+ 8
1119
+ Tempfile
1120
+ n
1121
+ x
1122
+ 5
1123
+ is_a?
1124
+ x
1125
+ 6
1126
+ assert
1127
+ p
1128
+ 5
1129
+ I
1130
+ 0
1131
+ I
1132
+ 25
1133
+ I
1134
+ 0
1135
+ I
1136
+ 26
1137
+ I
1138
+ e
1139
+ x
1140
+ 57
1141
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1142
+ p
1143
+ 0
1144
+ x
1145
+ 6
1146
+ should
1147
+ s
1148
+ 42
1149
+ contain the same data as the original file
1150
+ M
1151
+ 1
1152
+ p
1153
+ 2
1154
+ x
1155
+ 9
1156
+ for_block
1157
+ t
1158
+ n
1159
+ x
1160
+ 12
1161
+ IOStreamTest
1162
+ i
1163
+ 28
1164
+ 39
1165
+ 0
1166
+ 49
1167
+ 1
1168
+ 0
1169
+ 15
1170
+ 39
1171
+ 2
1172
+ 49
1173
+ 1
1174
+ 0
1175
+ 15
1176
+ 5
1177
+ 39
1178
+ 0
1179
+ 49
1180
+ 3
1181
+ 0
1182
+ 39
1183
+ 2
1184
+ 49
1185
+ 3
1186
+ 0
1187
+ 47
1188
+ 49
1189
+ 4
1190
+ 2
1191
+ 11
1192
+ I
1193
+ 4
1194
+ I
1195
+ 0
1196
+ I
1197
+ 0
1198
+ I
1199
+ 0
1200
+ I
1201
+ -2
1202
+ p
1203
+ 5
1204
+ x
1205
+ 5
1206
+ @file
1207
+ x
1208
+ 6
1209
+ rewind
1210
+ x
1211
+ 7
1212
+ @result
1213
+ x
1214
+ 4
1215
+ read
1216
+ x
1217
+ 12
1218
+ assert_equal
1219
+ p
1220
+ 7
1221
+ I
1222
+ 0
1223
+ I
1224
+ 29
1225
+ I
1226
+ 0
1227
+ I
1228
+ 2a
1229
+ I
1230
+ c
1231
+ I
1232
+ 2b
1233
+ I
1234
+ 1c
1235
+ x
1236
+ 57
1237
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1238
+ p
1239
+ 0
1240
+ p
1241
+ 9
1242
+ I
1243
+ 0
1244
+ I
1245
+ 1e
1246
+ I
1247
+ 0
1248
+ I
1249
+ 1f
1250
+ I
1251
+ 8
1252
+ I
1253
+ 25
1254
+ I
1255
+ 13
1256
+ I
1257
+ 29
1258
+ I
1259
+ 1e
1260
+ x
1261
+ 57
1262
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1263
+ p
1264
+ 0
1265
+ p
1266
+ 7
1267
+ I
1268
+ 0
1269
+ I
1270
+ c
1271
+ I
1272
+ 0
1273
+ I
1274
+ e
1275
+ I
1276
+ b
1277
+ I
1278
+ 1e
1279
+ I
1280
+ 16
1281
+ x
1282
+ 57
1283
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1284
+ p
1285
+ 0
1286
+ x
1287
+ 7
1288
+ context
1289
+ s
1290
+ 30
1291
+ that is converted #to_tempfile
1292
+ M
1293
+ 1
1294
+ p
1295
+ 2
1296
+ x
1297
+ 9
1298
+ for_block
1299
+ t
1300
+ n
1301
+ x
1302
+ 12
1303
+ IOStreamTest
1304
+ i
1305
+ 41
1306
+ 5
1307
+ 56
1308
+ 0
1309
+ 47
1310
+ 50
1311
+ 1
1312
+ 0
1313
+ 15
1314
+ 5
1315
+ 7
1316
+ 2
1317
+ 64
1318
+ 56
1319
+ 3
1320
+ 47
1321
+ 50
1322
+ 4
1323
+ 1
1324
+ 15
1325
+ 5
1326
+ 7
1327
+ 5
1328
+ 64
1329
+ 56
1330
+ 6
1331
+ 47
1332
+ 50
1333
+ 4
1334
+ 1
1335
+ 15
1336
+ 5
1337
+ 7
1338
+ 7
1339
+ 64
1340
+ 56
1341
+ 8
1342
+ 47
1343
+ 50
1344
+ 4
1345
+ 1
1346
+ 11
1347
+ I
1348
+ 4
1349
+ I
1350
+ 0
1351
+ I
1352
+ 0
1353
+ I
1354
+ 0
1355
+ I
1356
+ -2
1357
+ p
1358
+ 9
1359
+ M
1360
+ 1
1361
+ p
1362
+ 2
1363
+ x
1364
+ 9
1365
+ for_block
1366
+ t
1367
+ n
1368
+ x
1369
+ 12
1370
+ IOStreamTest
1371
+ i
1372
+ 15
1373
+ 5
1374
+ 5
1375
+ 39
1376
+ 0
1377
+ 47
1378
+ 49
1379
+ 1
1380
+ 1
1381
+ 38
1382
+ 2
1383
+ 47
1384
+ 49
1385
+ 3
1386
+ 1
1387
+ 11
1388
+ I
1389
+ 4
1390
+ I
1391
+ 0
1392
+ I
1393
+ 0
1394
+ I
1395
+ 0
1396
+ I
1397
+ -2
1398
+ p
1399
+ 4
1400
+ x
1401
+ 5
1402
+ @file
1403
+ x
1404
+ 11
1405
+ to_tempfile
1406
+ x
1407
+ 9
1408
+ @tempfile
1409
+ x
1410
+ 6
1411
+ assert
1412
+ p
1413
+ 5
1414
+ I
1415
+ 0
1416
+ I
1417
+ 32
1418
+ I
1419
+ 0
1420
+ I
1421
+ 33
1422
+ I
1423
+ f
1424
+ x
1425
+ 57
1426
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1427
+ p
1428
+ 0
1429
+ x
1430
+ 5
1431
+ setup
1432
+ s
1433
+ 34
1434
+ convert it to a Paperclip Tempfile
1435
+ M
1436
+ 1
1437
+ p
1438
+ 2
1439
+ x
1440
+ 9
1441
+ for_block
1442
+ t
1443
+ n
1444
+ x
1445
+ 12
1446
+ IOStreamTest
1447
+ i
1448
+ 16
1449
+ 5
1450
+ 39
1451
+ 0
1452
+ 45
1453
+ 1
1454
+ 2
1455
+ 43
1456
+ 3
1457
+ 49
1458
+ 4
1459
+ 1
1460
+ 47
1461
+ 49
1462
+ 5
1463
+ 1
1464
+ 11
1465
+ I
1466
+ 4
1467
+ I
1468
+ 0
1469
+ I
1470
+ 0
1471
+ I
1472
+ 0
1473
+ I
1474
+ -2
1475
+ p
1476
+ 6
1477
+ x
1478
+ 9
1479
+ @tempfile
1480
+ x
1481
+ 9
1482
+ Paperclip
1483
+ n
1484
+ x
1485
+ 8
1486
+ Tempfile
1487
+ x
1488
+ 5
1489
+ is_a?
1490
+ x
1491
+ 6
1492
+ assert
1493
+ p
1494
+ 5
1495
+ I
1496
+ 0
1497
+ I
1498
+ 36
1499
+ I
1500
+ 0
1501
+ I
1502
+ 37
1503
+ I
1504
+ 10
1505
+ x
1506
+ 57
1507
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1508
+ p
1509
+ 0
1510
+ x
1511
+ 6
1512
+ should
1513
+ s
1514
+ 47
1515
+ have the name be based on the original_filename
1516
+ M
1517
+ 1
1518
+ p
1519
+ 2
1520
+ x
1521
+ 9
1522
+ for_block
1523
+ t
1524
+ n
1525
+ x
1526
+ 12
1527
+ IOStreamTest
1528
+ i
1529
+ 78
1530
+ 45
1531
+ 0
1532
+ 1
1533
+ 39
1534
+ 2
1535
+ 49
1536
+ 3
1537
+ 0
1538
+ 49
1539
+ 4
1540
+ 1
1541
+ 19
1542
+ 0
1543
+ 15
1544
+ 45
1545
+ 0
1546
+ 5
1547
+ 20
1548
+ 0
1549
+ 49
1550
+ 6
1551
+ 1
1552
+ 19
1553
+ 1
1554
+ 15
1555
+ 45
1556
+ 0
1557
+ 7
1558
+ 20
1559
+ 0
1560
+ 20
1561
+ 1
1562
+ 49
1563
+ 4
1564
+ 2
1565
+ 19
1566
+ 2
1567
+ 15
1568
+ 5
1569
+ 44
1570
+ 43
1571
+ 8
1572
+ 7
1573
+ 9
1574
+ 45
1575
+ 8
1576
+ 10
1577
+ 20
1578
+ 1
1579
+ 49
1580
+ 11
1581
+ 1
1582
+ 47
1583
+ 49
1584
+ 12
1585
+ 0
1586
+ 63
1587
+ 2
1588
+ 78
1589
+ 49
1590
+ 13
1591
+ 2
1592
+ 45
1593
+ 0
1594
+ 14
1595
+ 39
1596
+ 15
1597
+ 49
1598
+ 3
1599
+ 0
1600
+ 49
1601
+ 4
1602
+ 1
1603
+ 47
1604
+ 49
1605
+ 16
1606
+ 2
1607
+ 11
1608
+ I
1609
+ 9
1610
+ I
1611
+ 3
1612
+ I
1613
+ 0
1614
+ I
1615
+ 0
1616
+ I
1617
+ -2
1618
+ p
1619
+ 17
1620
+ x
1621
+ 4
1622
+ File
1623
+ n
1624
+ x
1625
+ 5
1626
+ @file
1627
+ x
1628
+ 4
1629
+ path
1630
+ x
1631
+ 8
1632
+ basename
1633
+ n
1634
+ x
1635
+ 7
1636
+ extname
1637
+ n
1638
+ x
1639
+ 6
1640
+ Regexp
1641
+ s
1642
+ 10
1643
+ ^stream.*?
1644
+ n
1645
+ x
1646
+ 5
1647
+ quote
1648
+ x
1649
+ 4
1650
+ to_s
1651
+ x
1652
+ 3
1653
+ new
1654
+ n
1655
+ x
1656
+ 9
1657
+ @tempfile
1658
+ x
1659
+ 12
1660
+ assert_match
1661
+ p
1662
+ 11
1663
+ I
1664
+ 0
1665
+ I
1666
+ 3a
1667
+ I
1668
+ 0
1669
+ I
1670
+ 3b
1671
+ I
1672
+ e
1673
+ I
1674
+ 3c
1675
+ I
1676
+ 19
1677
+ I
1678
+ 3d
1679
+ I
1680
+ 26
1681
+ I
1682
+ 3e
1683
+ I
1684
+ 4e
1685
+ x
1686
+ 57
1687
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1688
+ p
1689
+ 3
1690
+ x
1691
+ 4
1692
+ name
1693
+ x
1694
+ 9
1695
+ extension
1696
+ x
1697
+ 8
1698
+ basename
1699
+ s
1700
+ 51
1701
+ have the Tempfile contain the same data as the file
1702
+ M
1703
+ 1
1704
+ p
1705
+ 2
1706
+ x
1707
+ 9
1708
+ for_block
1709
+ t
1710
+ n
1711
+ x
1712
+ 12
1713
+ IOStreamTest
1714
+ i
1715
+ 28
1716
+ 39
1717
+ 0
1718
+ 49
1719
+ 1
1720
+ 0
1721
+ 15
1722
+ 39
1723
+ 2
1724
+ 49
1725
+ 1
1726
+ 0
1727
+ 15
1728
+ 5
1729
+ 39
1730
+ 0
1731
+ 49
1732
+ 3
1733
+ 0
1734
+ 39
1735
+ 2
1736
+ 49
1737
+ 3
1738
+ 0
1739
+ 47
1740
+ 49
1741
+ 4
1742
+ 2
1743
+ 11
1744
+ I
1745
+ 4
1746
+ I
1747
+ 0
1748
+ I
1749
+ 0
1750
+ I
1751
+ 0
1752
+ I
1753
+ -2
1754
+ p
1755
+ 5
1756
+ x
1757
+ 5
1758
+ @file
1759
+ x
1760
+ 6
1761
+ rewind
1762
+ x
1763
+ 9
1764
+ @tempfile
1765
+ x
1766
+ 4
1767
+ read
1768
+ x
1769
+ 12
1770
+ assert_equal
1771
+ p
1772
+ 7
1773
+ I
1774
+ 0
1775
+ I
1776
+ 41
1777
+ I
1778
+ 0
1779
+ I
1780
+ 42
1781
+ I
1782
+ c
1783
+ I
1784
+ 43
1785
+ I
1786
+ 1c
1787
+ x
1788
+ 57
1789
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1790
+ p
1791
+ 0
1792
+ p
1793
+ 11
1794
+ I
1795
+ 0
1796
+ I
1797
+ 31
1798
+ I
1799
+ 0
1800
+ I
1801
+ 32
1802
+ I
1803
+ 8
1804
+ I
1805
+ 36
1806
+ I
1807
+ 13
1808
+ I
1809
+ 3a
1810
+ I
1811
+ 1e
1812
+ I
1813
+ 41
1814
+ I
1815
+ 29
1816
+ x
1817
+ 57
1818
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1819
+ p
1820
+ 0
1821
+ p
1822
+ 11
1823
+ I
1824
+ 0
1825
+ I
1826
+ 5
1827
+ I
1828
+ 0
1829
+ I
1830
+ 6
1831
+ I
1832
+ 8
1833
+ I
1834
+ a
1835
+ I
1836
+ 10
1837
+ I
1838
+ c
1839
+ I
1840
+ 1b
1841
+ I
1842
+ 31
1843
+ I
1844
+ 26
1845
+ x
1846
+ 57
1847
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1848
+ p
1849
+ 0
1850
+ x
1851
+ 7
1852
+ context
1853
+ p
1854
+ 5
1855
+ I
1856
+ 2
1857
+ I
1858
+ 4
1859
+ I
1860
+ b
1861
+ I
1862
+ 5
1863
+ I
1864
+ 16
1865
+ x
1866
+ 57
1867
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1868
+ p
1869
+ 0
1870
+ x
1871
+ 13
1872
+ attach_method
1873
+ p
1874
+ 5
1875
+ I
1876
+ 0
1877
+ I
1878
+ 1
1879
+ I
1880
+ 9
1881
+ I
1882
+ 3
1883
+ I
1884
+ 2c
1885
+ x
1886
+ 57
1887
+ /Users/jyurek/Development/paperclip/test/iostream_test.rb
1888
+ p
1889
+ 0