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 ValidateAttachmentPresenceMatcherTest < Test::Unit::TestCase
4
4
  context "validate_attachment_presence" do
@@ -0,0 +1,622 @@
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
+ 37
76
+ ValidateAttachmentPresenceMatcherTest
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
+ 37
99
+ ValidateAttachmentPresenceMatcherTest
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
+ 28
128
+ validate_attachment_presence
129
+ M
130
+ 1
131
+ p
132
+ 2
133
+ x
134
+ 9
135
+ for_block
136
+ t
137
+ n
138
+ x
139
+ 37
140
+ ValidateAttachmentPresenceMatcherTest
141
+ i
142
+ 30
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
+ 11
173
+ I
174
+ 4
175
+ I
176
+ 0
177
+ I
178
+ 0
179
+ I
180
+ 0
181
+ I
182
+ -2
183
+ p
184
+ 7
185
+ M
186
+ 1
187
+ p
188
+ 2
189
+ x
190
+ 9
191
+ for_block
192
+ t
193
+ n
194
+ x
195
+ 37
196
+ ValidateAttachmentPresenceMatcherTest
197
+ i
198
+ 42
199
+ 5
200
+ 7
201
+ 0
202
+ 64
203
+ 56
204
+ 1
205
+ 47
206
+ 50
207
+ 2
208
+ 1
209
+ 15
210
+ 5
211
+ 7
212
+ 3
213
+ 64
214
+ 47
215
+ 49
216
+ 4
217
+ 1
218
+ 38
219
+ 5
220
+ 15
221
+ 39
222
+ 5
223
+ 7
224
+ 6
225
+ 49
226
+ 7
227
+ 1
228
+ 15
229
+ 5
230
+ 49
231
+ 8
232
+ 0
233
+ 7
234
+ 6
235
+ 49
236
+ 9
237
+ 1
238
+ 38
239
+ 10
240
+ 11
241
+ I
242
+ 4
243
+ I
244
+ 0
245
+ I
246
+ 0
247
+ I
248
+ 0
249
+ I
250
+ -2
251
+ p
252
+ 11
253
+ s
254
+ 7
255
+ dummies
256
+ M
257
+ 1
258
+ p
259
+ 2
260
+ x
261
+ 9
262
+ for_block
263
+ t
264
+ n
265
+ x
266
+ 37
267
+ ValidateAttachmentPresenceMatcherTest
268
+ i
269
+ 12
270
+ 57
271
+ 19
272
+ 0
273
+ 15
274
+ 20
275
+ 0
276
+ 7
277
+ 0
278
+ 49
279
+ 1
280
+ 1
281
+ 11
282
+ I
283
+ 4
284
+ I
285
+ 1
286
+ I
287
+ 1
288
+ I
289
+ 1
290
+ n
291
+ p
292
+ 2
293
+ x
294
+ 16
295
+ avatar_file_name
296
+ x
297
+ 6
298
+ string
299
+ p
300
+ 5
301
+ I
302
+ 0
303
+ I
304
+ 6
305
+ I
306
+ 4
307
+ I
308
+ 7
309
+ I
310
+ c
311
+ x
312
+ 94
313
+ /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
314
+ p
315
+ 1
316
+ x
317
+ 1
318
+ d
319
+ x
320
+ 11
321
+ reset_table
322
+ s
323
+ 5
324
+ Dummy
325
+ x
326
+ 11
327
+ reset_class
328
+ x
329
+ 12
330
+ @dummy_class
331
+ x
332
+ 6
333
+ avatar
334
+ x
335
+ 17
336
+ has_attached_file
337
+ x
338
+ 5
339
+ class
340
+ x
341
+ 28
342
+ validate_attachment_presence
343
+ x
344
+ 8
345
+ @matcher
346
+ p
347
+ 11
348
+ I
349
+ 0
350
+ I
351
+ 5
352
+ I
353
+ 0
354
+ I
355
+ 6
356
+ I
357
+ b
358
+ I
359
+ 9
360
+ I
361
+ 16
362
+ I
363
+ a
364
+ I
365
+ 1e
366
+ I
367
+ b
368
+ I
369
+ 2a
370
+ x
371
+ 94
372
+ /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
373
+ p
374
+ 0
375
+ x
376
+ 5
377
+ setup
378
+ s
379
+ 32
380
+ given a class with no validation
381
+ M
382
+ 1
383
+ p
384
+ 2
385
+ x
386
+ 9
387
+ for_block
388
+ t
389
+ n
390
+ x
391
+ 37
392
+ ValidateAttachmentPresenceMatcherTest
393
+ i
394
+ 4
395
+ 5
396
+ 48
397
+ 0
398
+ 11
399
+ I
400
+ 2
401
+ I
402
+ 0
403
+ I
404
+ 0
405
+ I
406
+ 0
407
+ I
408
+ -2
409
+ p
410
+ 1
411
+ x
412
+ 25
413
+ should_reject_dummy_class
414
+ p
415
+ 5
416
+ I
417
+ 0
418
+ I
419
+ e
420
+ I
421
+ 0
422
+ I
423
+ f
424
+ I
425
+ 4
426
+ x
427
+ 94
428
+ /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
429
+ p
430
+ 0
431
+ x
432
+ 7
433
+ context
434
+ s
435
+ 40
436
+ given a class with a matching validation
437
+ M
438
+ 1
439
+ p
440
+ 2
441
+ x
442
+ 9
443
+ for_block
444
+ t
445
+ n
446
+ x
447
+ 37
448
+ ValidateAttachmentPresenceMatcherTest
449
+ i
450
+ 12
451
+ 5
452
+ 56
453
+ 0
454
+ 47
455
+ 50
456
+ 1
457
+ 0
458
+ 15
459
+ 5
460
+ 48
461
+ 2
462
+ 11
463
+ I
464
+ 3
465
+ I
466
+ 0
467
+ I
468
+ 0
469
+ I
470
+ 0
471
+ I
472
+ -2
473
+ p
474
+ 3
475
+ M
476
+ 1
477
+ p
478
+ 2
479
+ x
480
+ 9
481
+ for_block
482
+ t
483
+ n
484
+ x
485
+ 37
486
+ ValidateAttachmentPresenceMatcherTest
487
+ i
488
+ 8
489
+ 39
490
+ 0
491
+ 7
492
+ 1
493
+ 49
494
+ 2
495
+ 1
496
+ 11
497
+ I
498
+ 3
499
+ I
500
+ 0
501
+ I
502
+ 0
503
+ I
504
+ 0
505
+ I
506
+ -2
507
+ p
508
+ 3
509
+ x
510
+ 12
511
+ @dummy_class
512
+ x
513
+ 6
514
+ avatar
515
+ x
516
+ 29
517
+ validates_attachment_presence
518
+ p
519
+ 5
520
+ I
521
+ 0
522
+ I
523
+ 13
524
+ I
525
+ 0
526
+ I
527
+ 14
528
+ I
529
+ 8
530
+ x
531
+ 94
532
+ /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
533
+ p
534
+ 0
535
+ x
536
+ 5
537
+ setup
538
+ x
539
+ 25
540
+ should_accept_dummy_class
541
+ p
542
+ 7
543
+ I
544
+ 0
545
+ I
546
+ 12
547
+ I
548
+ 0
549
+ I
550
+ 13
551
+ I
552
+ 8
553
+ I
554
+ 17
555
+ I
556
+ c
557
+ x
558
+ 94
559
+ /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
560
+ p
561
+ 0
562
+ p
563
+ 9
564
+ I
565
+ 0
566
+ I
567
+ 4
568
+ I
569
+ 0
570
+ I
571
+ 5
572
+ I
573
+ 8
574
+ I
575
+ e
576
+ I
577
+ 13
578
+ I
579
+ 12
580
+ I
581
+ 1e
582
+ x
583
+ 94
584
+ /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
585
+ p
586
+ 0
587
+ x
588
+ 7
589
+ context
590
+ p
591
+ 3
592
+ I
593
+ 2
594
+ I
595
+ 4
596
+ I
597
+ d
598
+ x
599
+ 94
600
+ /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
601
+ p
602
+ 0
603
+ x
604
+ 13
605
+ attach_method
606
+ p
607
+ 5
608
+ I
609
+ 0
610
+ I
611
+ 1
612
+ I
613
+ 9
614
+ I
615
+ 3
616
+ I
617
+ 2c
618
+ x
619
+ 94
620
+ /Users/jyurek/Development/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb
621
+ p
622
+ 0