dragonfly 1.1.2 → 1.2.1

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 785986a8487e1cb1e971e16b2eb88dc51794d490
4
- data.tar.gz: e76af75be5d2f6a224a042ab4f6b53dd8de93e5d
2
+ SHA256:
3
+ metadata.gz: 4de8c2fdfcbd31e9e81550bda591c3a72f33a33dad988a176bea232c38768029
4
+ data.tar.gz: c3ed8cf808992154674c1abc4902502a34281ae18c759de4e351610f29aed775
5
5
  SHA512:
6
- metadata.gz: 528e4445092921b2c590cf787c6a23aa1a0c3f912ae9bea19416f60672605693735d33d0c6f709334c68555b087afeb7b72bfd7666187c3745eecc9fb891d27f
7
- data.tar.gz: c814aa4308afd5bb698c3e2f61605ffe6650d244fe8fbe3d84b843cf266c4e5ad9ea062d0bf0195b0856f758b213331e1d5ee9f4f1349fcd9dcd63710dcf0e8d
6
+ metadata.gz: 69007250136c7d8aba75e0f32244a30fe7cc7aeb351a36a4515dc94ec53baff8084d950137e293623170b7310f41b6b1849375bc9d7ab062a017f595fca9d395
7
+ data.tar.gz: 5fe9075b447c6c9013542742282c1e529f3143fc288ece1afd05139ffb17f95da9fd2af982b11f7a989c8faf85c738915dc1de0b7f110c31d188107a2b87e3d6
@@ -6,7 +6,17 @@ rvm:
6
6
  - "2.2"
7
7
  - "2.3"
8
8
  - "2.4"
9
+ - "2.5"
10
+ - "2.6"
11
+ - "2.7"
9
12
  - "jruby"
10
- script: bundle exec rspec spec
13
+
14
+ env:
15
+ global:
16
+ - SKIP_FLAKY_TESTS: true
17
+
11
18
  before_install:
12
- - gem install bundler
19
+ - sudo apt-get update
20
+ - sudo apt-get install -y ghostscript
21
+
22
+ script: bundle exec rspec spec --backtrace
data/History.md CHANGED
@@ -1,139 +1,220 @@
1
- 1.1.2 (2017-05-06)
2
- ===================
3
- Fixes
4
- -----
1
+ # 1.2.1 (2020-07-24)
2
+
3
+ ## Features
4
+
5
+ - Allow having no logger (setting to `nil`) (kaimou1357)
6
+ Fixes
7
+
8
+ ---
9
+
10
+ - Fix URI.unescape deprecation warning (alberto-mota)
11
+
12
+ # 1.2.0 (2018-11-13)
13
+
14
+ Fixes
15
+
16
+ ---
17
+
18
+ - Replaced `quote` with `escape` for escaping shell commands - works with paths with apostrophes
19
+ Changes
20
+
21
+ ---
22
+
23
+ - Replaced Open3.popen3 with now recommended Open3.capture3 (tomasc)
24
+
25
+ # 1.1.5 (2018-03-23)
26
+
27
+ Fixes
28
+
29
+ ---
30
+
31
+ - Moved `destroy_dragonfly_attachments` into an `after_destroy` - issue #477 (eldotz)
32
+
33
+ # 1.1.4 (2017-12-31)
34
+
35
+ Fixes
36
+
37
+ ---
38
+
39
+ - Fixed data uris not working for long strings (reported dlibanori)
40
+ - Removed syntax warnings (swamp09)
41
+ - Correct ActiveRecord hook with `ActiveSupport.on_load` (efatsi)
42
+
43
+ # 1.1.3 (2017-06-02)
44
+
45
+ Fixes
46
+
47
+ ---
48
+
49
+ - Make sure imagemagick convert processor updates mime_type correctly when format is changed
50
+
51
+ # 1.1.2 (2017-05-06)
52
+
53
+ Fixes
54
+
55
+ ---
56
+
5
57
  - Allow relative redirect urls in `fetch_url` (zorec)
6
58
  - Fixed Forwardable deprecation warnings (neodude)
7
59
  - Fixed incorrect detection of empty directories in ruby 2.4 (yuszuv)
8
60
  - Store content type in meta if it's available so we don't lose information (Lukas Svoboda)
9
61
 
10
- 1.1.1 (2016-10-26)
11
- ===================
12
- Features
13
- --------
62
+ # 1.1.1 (2016-10-26)
63
+
64
+ Features
65
+
66
+ ---
67
+
14
68
  - Added delegate option for imagemagick (Will Fisher)
15
69
 
16
- Fixes
17
- -----
70
+ ## Fixes
71
+
18
72
  - Use `Base64.urlsafe_encode64` (Jan Raasch)
19
73
  Note that this changes b64 encodings from '/' to `'_'` and '+' to '-' in URLs, which will change a very
20
74
  small number of generated URLs (but shouldn't be enough to cause big recaching problems)
21
75
  URLs are encoded now according to the URL safe base64 specification in RFC 4648.
22
76
  Old URLs are still recognized so won't break.
23
77
 
78
+ # 1.1.0 (2016-10-24)
79
+
80
+ ## Fixes
24
81
 
25
- 1.1.0 (2016-10-24)
26
- ===================
27
- Fixes
28
- -----
29
82
  - Fetch a URL with basic auth if it's present in the URI (Ben Pickles)
30
83
  - Fix rack version problem for older rubies (rack 2.0 only works for ruby >= 2.2.2)
31
84
  - Updated deprecated syntax in tests for WebMock, RSpec
32
85
 
33
- Changes
34
- --------
86
+ ## Changes
87
+
35
88
  - Dropped official support for Ruby <= 1.9.2 and Rubinius
36
89
 
37
- 1.0.12 (2015-09-16)
38
- ===================
39
- Features
40
- --------
90
+ # 1.0.12 (2015-09-16)
91
+
92
+ Features
93
+
94
+ ---
95
+
41
96
  - Made thumb processor args for a specific geometry publicly accesible
42
97
 
43
- 1.0.11 (2015-09-04)
44
- ===================
45
- Fixes
46
- -----
98
+ # 1.0.11 (2015-09-04)
99
+
100
+ Fixes
101
+
102
+ ---
103
+
47
104
  - Make sure tempfiles are created with paths matching the meta name
48
105
 
49
- 1.0.10 (2015-05-14)
50
- ===================
51
- Features
52
- --------
106
+ # 1.0.10 (2015-05-14)
107
+
108
+ Features
109
+
110
+ ---
111
+
53
112
  - Allow method signified by symbol in storage_options to take an attachment object
54
113
  - Allow passing in "input_args" to convert processor
55
- Fixes
56
- -----
114
+ Fixes
115
+
116
+ ---
117
+
57
118
  - correct Rack version
58
119
 
59
- 1.0.9 (2015-04-29)
60
- ===================
61
- Fixes
62
- --------
120
+ # 1.0.9 (2015-04-29)
121
+
122
+ Fixes
123
+
124
+ ---
125
+
63
126
  - Remove sha parameter being echoed back on error for better security
64
127
 
65
- 1.0.8 (2015-04-23)
66
- ===================
67
- Fixes
68
- --------
128
+ # 1.0.8 (2015-04-23)
129
+
130
+ Fixes
131
+
132
+ ---
133
+
69
134
  - Job#close re-added, so that tempfiles are immediately removed after each request
70
135
  - Specs passing for 1.8.7, 1.9.2 (i18n gem version specified)
71
136
 
72
- 1.0.7 (2014-08-26)
73
- ===================
74
- Changes
75
- --------
137
+ # 1.0.7 (2014-08-26)
138
+
139
+ Changes
140
+
141
+ ---
142
+
76
143
  - Job#sha uses better algorithm
77
144
  - renamed `protect_from_dos_attacks` -> `verify_urls` and turn on by default
78
145
 
79
- 1.0.6 (2014-08-22)
80
- ===================
81
- Features
82
- --------
146
+ # 1.0.6 (2014-08-22)
147
+
148
+ Features
149
+
150
+ ---
151
+
83
152
  - env can be accessed by routed endpoint blocks
84
153
 
85
- Fixes
86
- -----
154
+ ## Fixes
155
+
87
156
  - analyser cache doesn't get stored in meta for a given piece of meta - can mess with stringifying analyser return values
88
157
  - removed default secret, forcing user to specify one explicitly
89
158
  - deal with "[" character problems in urls https://github.com/markevans/dragonfly/pull/337
90
159
 
91
- 1.0.5 (2014-05-15)
92
- ===================
93
- Fixes
94
- -----
160
+ # 1.0.5 (2014-05-15)
161
+
162
+ Fixes
163
+
164
+ ---
165
+
95
166
  - fetch_url wasn't correctly getting https endpoints on Ruby approx < 2
96
167
 
97
- 1.0.4 (2014-04-11)
98
- ===================
99
- Fixes
100
- -----
168
+ # 1.0.4 (2014-04-11)
169
+
170
+ Fixes
171
+
172
+ ---
173
+
101
174
  - fetch_url is more forgiving - assume escaped, if not escape
102
175
 
103
- 1.0.3 (2014-01-28)
104
- ===================
105
- Fixes
106
- -----
176
+ # 1.0.3 (2014-01-28)
177
+
178
+ Fixes
179
+
180
+ ---
181
+
107
182
  - changing meta on a job (e.g. `fetch('blah').encode('jpg')`) was interfering with meta on its parent job (e.g. `fetch('blah')`)
108
183
 
109
- 1.0.2 (2013-12-20)
110
- ===================
111
- Fixes
112
- -----
184
+ # 1.0.2 (2013-12-20)
185
+
186
+ Fixes
187
+
188
+ ---
189
+
113
190
  - more secure generation of secret in rails generator
114
191
  - ensure popen3 doesn't hang
115
192
 
116
- 1.0.1 (2013-11-28)
117
- ===================
118
- Changes
119
- -------
193
+ # 1.0.1 (2013-11-28)
194
+
195
+ Changes
196
+
197
+ ---
198
+
120
199
  - FileDataStore doesn't use hours_minutes_seconds in its path - it uses a random string instead (12_15_59_saf4fs_file.png -> sdf4c2G_file.png)
121
200
 
122
- Features
123
- --------
201
+ ## Features
202
+
124
203
  - model attribute `xxx_changed?` method (useful e.g. in validations)
125
204
 
126
- Fixes
127
- -----
205
+ ## Fixes
206
+
128
207
  - proper support for Ruby 1.8.7 and JRuby (version 1.7.8)
129
208
  - routed endpoints can deal with returned `Attachment` objects (rather than returned `Job` objects) and return 404 if the endpoint proc returns nil
130
209
  - default Content-Disposition header doesn't url-encode filename unless the request is from IE
131
210
  - `fetch_url` deals with urls that redirect to https (previously was blowing up)
132
211
 
133
- 1.0.0 (2013-11-24)
134
- ===================
135
- Changes
136
- -------
212
+ # 1.0.0 (2013-11-24)
213
+
214
+ Changes
215
+
216
+ ---
217
+
137
218
  - configuration
138
219
  - `Dragonfly[:images]` -> `Dragonfly.app` and `Dragonfly.app(:named_app)`
139
220
  - configuration block DSL overhaul
@@ -158,8 +239,8 @@ Changes
158
239
  - proper requires throughout the code instead of autoloading
159
240
  - simple 500 response for unknown errors
160
241
 
161
- Features
162
- --------
242
+ ## Features
243
+
163
244
  - model attachment default (by specifying a path to a e.g. a default image)
164
245
  - `convert` and `thumb` processors take a `'frame'` option
165
246
  - `thumb` takes a `'format'` option
@@ -172,82 +253,96 @@ Features
172
253
  - for each response
173
254
  - for shell commands
174
255
 
175
- Fixes
176
- -----
256
+ ## Fixes
257
+
177
258
  - inserting CookieMonster doesn't depend on existence of `ActionDispatch::Cookies`
178
259
  - `image?` returns false for pdfs
179
260
  - `fetch_url` raises more useful `ErrorResponse` on error
180
261
  - shell commands don't print warnings to stderr
181
262
  - ability to assign attachment/job from other app
182
263
 
183
- 0.9.15 (2013-05-04)
184
- ===================
185
- Features
186
- --------
264
+ # 0.9.15 (2013-05-04)
265
+
266
+ Features
267
+
268
+ ---
269
+
187
270
  - Allow turning off support of legacy urls
188
271
 
189
- Fixes
190
- -----
272
+ ## Fixes
273
+
191
274
  - More conservative URL escaping - back to Rack::Utils.escape_path
192
275
  - Don't check for malicious strings when deserializing from datastores (they're to be trusted)
193
276
 
194
- 0.9.14 (2013-02-13)
195
- ===================
196
- Features
197
- --------
277
+ # 0.9.14 (2013-02-13)
278
+
279
+ Features
280
+
281
+ ---
282
+
198
283
  - Attachment#b64_data
199
284
 
200
- Fixes
201
- -----
285
+ ## Fixes
286
+
202
287
  - Fix '+' character being converted to ' ' (revert to URI.escape instead of Rack::Utils.escape)
203
288
  - Support old-style deprecated urls (with a check for malicious ones)
204
289
  - Handle case where uid is an empty string
205
290
 
206
- 0.9.13 (2013-01-30)
207
- ===================
208
- Changes
209
- -------
291
+ # 0.9.13 (2013-01-30)
292
+
293
+ Changes
294
+
295
+ ---
296
+
210
297
  - URLS are encoded/decoded with JSON, not with Marshal
211
298
 
212
- 0.9.12 (2012-04-08)
213
- ===================
214
- Features
215
- -------
299
+ # 0.9.12 (2012-04-08)
300
+
301
+ Features
302
+
303
+ ---
304
+
216
305
  - Allow using a mongo replica set with mongo datastore
217
306
 
218
- Fixes
219
- -----
307
+ ## Fixes
308
+
220
309
  - `define_macro_on_include` was giving a stack error with multiple accessors on same app
221
310
 
222
- 0.9.11 (2012-03-12)
223
- ===================
224
- Features
225
- -------
311
+ # 0.9.11 (2012-03-12)
312
+
313
+ Features
314
+
315
+ ---
316
+
226
317
  - Allow the S3 base URL to be customised with `url_host` (or per-request)
227
318
  - Added App#name (name as per `Dragonfly[:app_name]`)
228
319
 
229
- Changes
230
- -------
320
+ ## Changes
321
+
231
322
  - Better inspect for App, Processor, Analyser, Encoder, Generator, Job, TempObject, RoutedEndpoint, JobEndpoint
232
323
 
233
- Fixes
234
- -----
324
+ ## Fixes
325
+
235
326
  - Rescue from Excon::Errors::Conflict which apparently gets raised sometimes (don't know why - see https://github.com/markevans/dragonfly/issues/167)
236
327
  - Alias portrait and landscape without question marks, so magic_attributes can be used with them
237
328
  - Fixed stack error when using `define_macro_on_include` twice
238
329
  - Use fog's `sync_clock` to overcome potential S3 time skew problems
239
330
  - Using :name in urls was causing problems when filenames had dashes in them
240
331
 
241
- 0.9.10 (2012-01-11)
242
- ===================
243
- Fixes
244
- -----
332
+ # 0.9.10 (2012-01-11)
333
+
334
+ Fixes
335
+
336
+ ---
337
+
245
338
  - FileDataStore was causing errors when the storage path was flat (not in a directory structure)
246
339
 
247
- 0.9.9 (2011-12-30)
248
- ==================
249
- Features
250
- --------
340
+ # 0.9.9 (2011-12-30)
341
+
342
+ Features
343
+
344
+ ---
345
+
251
346
  - Created tempfiles use the original file extension if known
252
347
  - Added `:case_sensitive` option to `validates_property` for dealing with upper-case extensions and mime-types.
253
348
  - Github Markup syntax on readme for code highlighting
@@ -256,16 +351,16 @@ Features
256
351
  - `to_file` creates intermediate subdirs by default, can be turned off with `:mkdirs => false` option
257
352
  - Added some more S3 regions
258
353
 
259
- Changes
260
- -------
354
+ ## Changes
355
+
261
356
  - Datastores now use `temp_object.meta`, not the second arg passed in to `store`
262
357
  - `meta`, `name`, etc. now lazily load the job on an attachment - previously you'd have to call `apply` to get the meta from the datastore
263
358
  - When assigning an image via the activemodel extensions, mark that uid attribute will change
264
359
  - `validates_property` uses Rails 3 validators
265
360
  - Deprecated saved 'heroku' config, in favour of configuring S3 explicitly
266
361
 
267
- Fixes
268
- -----
362
+ ## Fixes
363
+
269
364
  - Model attachment urls are consistent now - the name is appended to the url (with format "/:job/:name") ONLY if it has the "name" magic attribute
270
365
  - `identify` wasn't working properly for files with capital letter extensions
271
366
  - S3 datastore sets content mime_type by default
@@ -276,89 +371,107 @@ Fixes
276
371
  - S3DataStore was breaking on bucket_exists? when using AWS IAM
277
372
  - Put CookieMonster before ActionDispatch::Cookies in rack middleware stack - that way Rack::Cache won't come between them and mess things up
278
373
 
279
- 0.9.8 (2011-09-08)
280
- ==================
281
- Fixes
282
- -----
374
+ # 0.9.8 (2011-09-08)
375
+
376
+ Fixes
377
+
378
+ ---
379
+
283
380
  - Regenerated gemspec again with ruby 1.8.7 - didn't seem to be fixed
284
381
 
285
- 0.9.7 (2011-09-08)
286
- ==================
287
- Fixes
288
- -----
382
+ # 0.9.7 (2011-09-08)
383
+
384
+ Fixes
385
+
386
+ ---
387
+
289
388
  - Regenerated gemspec to overcome annoying yaml issue (http://blog.rubygems.org/2011/08/31/shaving-the-yaml-yacc.html)
290
389
 
291
- 0.9.6 (2011-09-06)
292
- ==================
293
- Features
294
- --------
390
+ # 0.9.6 (2011-09-06)
391
+
392
+ Features
393
+
394
+ ---
395
+
295
396
  - Allow setting `content_type` when storing in Mongo GridFS
296
397
 
297
- Changes
298
- -------
398
+ ## Changes
399
+
299
400
  - Tests use Rails 3.1
300
401
 
301
- Fixes
302
- -----
402
+ ## Fixes
403
+
303
404
  - Moved from fog's deprecated `get_object_url` to `get_object_https_url`
304
405
  - Allow initializing a TempObject with Rack::Test::UploadedFile
305
406
  - Tests working in Windows (except feature that uses FileCommandAnalyser)
306
407
  - Better shell quoting
307
408
 
308
- 0.9.5 (2011-07-27)
309
- ==================
310
- Features
311
- --------
409
+ # 0.9.5 (2011-07-27)
410
+
411
+ Features
412
+
413
+ ---
414
+
312
415
  - Added reflection method `app.analyser_methods`
313
416
 
314
- Fixes
315
- -----
417
+ ## Fixes
418
+
316
419
  - Fixed `convert` and `identify` for files with spaces
317
420
  - Fixed size validations for Rails 3.0.7
318
421
 
319
- 0.9.4 (2011-06-10)
320
- ==================
321
- Fixes
322
- -----
422
+ # 0.9.4 (2011-06-10)
423
+
424
+ Fixes
425
+
426
+ ---
427
+
323
428
  - Made use of Rack calling `close` on the response body to clean up tempfiles.
324
429
  The response body is now the job, which delegates `each` to the temp_object.
325
430
 
326
- 0.9.3 (2011-06-03)
327
- ==================
328
- Fixes
329
- -----
431
+ # 0.9.3 (2011-06-03)
432
+
433
+ Fixes
434
+
435
+ ---
436
+
330
437
  - TempObject#to_file sets file permissions 644 - copying wasn't previously guaranteeing this
331
438
  - Added TempObject#close and closed?, which Rack uses to clean up tempfiles
332
439
  - replaced '/' characters with '~' in base64 encoded urls (they were confusing url recognition)
333
440
 
334
- 0.9.2 (2011-05-19)
335
- ==================
336
- Features
337
- --------
441
+ # 0.9.2 (2011-05-19)
442
+
443
+ Features
444
+
445
+ ---
446
+
338
447
  - Added env['dragonfly.job'] for use in other Rack middlewares
339
448
  - Added CookieMonster middleware for removing 'Set-Cookie' headers
340
449
 
341
- Fixes
342
- -----
450
+ ## Fixes
451
+
343
452
  - Remove 'Set-Cookie' header from any requests coming from a rails route
344
453
 
345
- 0.9.1 (2011-05-11)
346
- ==================
347
- Features
348
- --------
454
+ # 0.9.1 (2011-05-11)
455
+
456
+ Features
457
+
458
+ ---
459
+
349
460
  - Added reflection methods `app.processor_methods`, `app.generator_methods` and `app.job_methods`
350
461
 
351
- Fixes
352
- -----
462
+ ## Fixes
463
+
353
464
  - Improved performance of `resize_and_crop` method, using imagemagick built-in '^' operator
354
465
  - Improved server security validations
355
466
  - Deal with Excon::Errors::SocketError: EOFError errors which get thrown sometimes from S3 connection
356
467
  - Allow files with '..' (but not '../') in the middle of their name in file data store
357
468
 
358
- 0.9.0 (2011-04-27)
359
- ==================
360
- Features
361
- --------
469
+ # 0.9.0 (2011-04-27)
470
+
471
+ Features
472
+
473
+ ---
474
+
362
475
  - Model accessors are configurable
363
476
  - added `after_assign` callback
364
477
  - added `after_unassign` callback
@@ -389,8 +502,8 @@ Features
389
502
  - Mongo datastore can reuse an existing connection/db
390
503
  - FileDataStore can be configured not to store meta (save on extra file)
391
504
 
392
- Changes
393
- -------
505
+ ## Changes
506
+
394
507
  - Removed `url_path_prefix` and `url_suffix` in favour of `url_format`
395
508
  - Middleware doesn't need mount point argument now
396
509
  - Removed support for rails 2.3
@@ -402,131 +515,143 @@ Changes
402
515
  - FileDataStore stores metadata in xxx.meta now, not xxx.extra
403
516
  - removed Job methods `uid_basename`, `uid_extname`, `encoded_format` and `encoded_extname` as they are now unnecessary
404
517
 
405
- Fixes
406
- -----
518
+ ## Fixes
519
+
407
520
  - Performance tweaks regarding temp_objects model accessors and job objects
408
521
 
409
- 0.8.5 (2011-05-11)
410
- ==================
411
- Fixes
412
- -----
522
+ # 0.8.5 (2011-05-11)
523
+
524
+ Fixes
525
+
526
+ ---
527
+
413
528
  - Allow filenames that have '..' in them (but not '../') in the filedatastore
414
529
  - Better security for server
415
530
 
416
- 0.8.4 (2011-04-27)
417
- ==================
418
- Fixes
419
- -----
531
+ # 0.8.4 (2011-04-27)
532
+
533
+ Fixes
534
+
535
+ ---
536
+
420
537
  - Security fix for file data store
421
538
 
422
- 0.8.2 (2011-01-11)
423
- ==================
424
- Fixes
425
- -----
539
+ # 0.8.2 (2011-01-11)
540
+
541
+ Fixes
542
+
543
+ ---
544
+
426
545
  - Renamed ActiveModel methods like 'attachments' to avoid name clashes
427
546
  - Respond properly to HEAD, POST, PUT and DELETE requests
428
547
  - Got it working with jRuby and Rubinius
429
548
  - Made DOS protection SHA (and ETag) consistent
430
549
 
431
- 0.8.1 (2010-11-22)
432
- ==================
433
- Fixes
434
- -----
550
+ # 0.8.1 (2010-11-22)
551
+
552
+ Fixes
553
+
554
+ ---
555
+
435
556
  Removed runtime dependencies that Jeweler automatically takes from the Gemfile
436
557
 
437
- 0.8.0 (2010-11-21)
438
- ==================
439
- Features
440
- --------
558
+ # 0.8.0 (2010-11-21)
559
+
560
+ ## Features
561
+
441
562
  - New ImageMagick generator, processor, encoder and analyser, which are now defaults
442
563
  (thanks to Henry Phan for work on this)
443
564
 
444
- Fixes
445
- -----
565
+ ## Fixes
566
+
446
567
  - Works with Rails 3.0.2 uploaded files (which has a changed API)
447
568
 
569
+ # 0.7.7 (2010-10-31)
570
+
571
+ ## Features
448
572
 
449
- 0.7.7 (2010-10-31)
450
- ==================
451
- Features
452
- --------
453
573
  - Added username/password authentication to mongo data store
454
574
 
455
- Fixes
456
- -----
575
+ ## Fixes
576
+
457
577
  - Fixes for Windows, inc. tempfile binmode and closing files
458
578
  - "IOError: closed stream" fix (hopefully!)
459
579
 
580
+ # 0.7.6 (2010-09-12)
581
+
582
+ ## Features
460
583
 
461
- 0.7.6 (2010-09-12)
462
- ==================
463
- Features
464
- --------
465
584
  - Added methods for querying job steps, and Job#uid, Job#uid_basename, etc.
466
585
  - Added Job#b64_data
467
586
  - Added configurable url_suffix
468
587
  - Added configurable content_disposition and content_filename
469
588
  - Can pass extra GET params to url_for
470
589
  - Can manually set uid on FileDataStore and S3DataStore
471
- (not yet documented because attachments have no way to pass it on yet)
590
+ (not yet documented because attachments have no way to pass it on yet)
472
591
  - Model attachments store meta info about themselves
473
592
 
474
- Changes
475
- -------
593
+ ## Changes
594
+
476
595
  - Configurable module doesn't implicitly call 'call' if attribute set as proc
477
596
  - Refactored Endpoint module -> Response object
478
597
 
479
- Fixes
480
- -----
598
+ ## Fixes
599
+
481
600
  - Ruby 1.9.2-p0 was raising encoding errors due to Tempfiles not being in binmode
482
601
 
602
+ # 0.7.5 (2010-09-01)
603
+
604
+ ## Changes
483
605
 
484
- 0.7.5 (2010-09-01)
485
- ==================
486
- Changes
487
- --------
488
606
  - RMagick processor, encoder, analyser and generator all use the filesystem now
489
607
  They can be configured to use in-memory strings with the use_filesystem config option.
490
608
  - Upgraded support from Rails 3.0.0.rc -> Rails.3.0.0
491
609
 
492
- 0.7.4 (2010-08-28)
493
- ==================
494
- Features
495
- --------
610
+ # 0.7.4 (2010-08-28)
611
+
612
+ Features
613
+
614
+ ---
615
+
496
616
  - Gave model accessors bang methods process! and encode!
497
617
 
498
- 0.7.3 (2010-08-27)
499
- ==================
500
- Fixes
501
- -----
618
+ # 0.7.3 (2010-08-27)
619
+
620
+ Fixes
621
+
622
+ ---
623
+
502
624
  - Seems as though inserting after Rails' Rack::Lock was worth it after all
503
625
 
504
- 0.7.2 (2010-08-27)
505
- ==================
506
- Fixes
507
- -----
626
+ # 0.7.2 (2010-08-27)
627
+
628
+ Fixes
629
+
630
+ ---
631
+
508
632
  - S3DataStore was breaking if previous data hadn't stored meta
509
633
 
510
- 0.7.1 (2010-08-26)
511
- ==================
512
- Fixes
513
- -----
634
+ # 0.7.1 (2010-08-26)
635
+
636
+ Fixes
637
+
638
+ ---
639
+
514
640
  - SimpleEndpoint was modifying env path_info so wasn't creating proper cache keys
515
641
  - to_response accepts env, so can use if-not-modified, etc.
516
642
 
517
- Features
518
- --------
643
+ ## Features
644
+
519
645
  - Doc tweaks: Added mongo page, notes about Capistrano
520
646
 
521
- Changes
522
- -------
647
+ ## Changes
648
+
523
649
  - ETags generated by hash of job.serialize - was getting a bit long
524
650
 
525
- 0.7.0 (2010-08-25)
526
- ==================
651
+ # 0.7.0 (2010-08-25)
652
+
653
+ ## Features
527
654
 
528
- Features
529
- --------
530
655
  - Ability to chain processing, encoding
531
656
  - Added Generators for arbitrary content generation
532
657
  - 'fetch_file' method for easily getting local files
@@ -547,16 +672,16 @@ Features
547
672
  - simple endpoints
548
673
  - more intelligent working out of Content-Type to send back
549
674
 
550
- Fixes
551
- -----
675
+ ## Fixes
676
+
552
677
  - proper use of ETags
553
678
  - remove whitespace from file/s3 datastore uids
554
679
  - dragonfly/rails/images url-encodes rack-cache config for windows users
555
680
  - Ruby 1.9.2 support
556
681
  - Better RMagick memory management using image.destroy!
557
682
 
558
- Changes
559
- -------
683
+ ## Changes
684
+
560
685
  - Dragonfly::App[:images] -> Dragonfly[:images]
561
686
  - Moved text/plasma generation into Generator
562
687
  - Use of lazy 'Job' objects
@@ -571,25 +696,24 @@ Changes
571
696
  - encoded urls
572
697
  - got rid of unnecessary configurable sha_length
573
698
 
699
+ # 0.6.2 (2010-06-24)
574
700
 
701
+ ## Features
575
702
 
576
- 0.6.2 (2010-06-24)
577
- ==================
578
- Features
579
- -----
580
703
  - Added ability for custom error messages in validations
581
704
 
582
- 0.6.1 (2010-05-16)
583
- ==================
584
- Fixes
585
- -----
705
+ # 0.6.1 (2010-05-16)
706
+
707
+ Fixes
708
+
709
+ ---
710
+
586
711
  - STI was breaking when the model had a mixin too
587
712
 
588
- 0.6.0 (2010-05-11)
589
- ==================
713
+ # 0.6.0 (2010-05-11)
714
+
715
+ ## Features
590
716
 
591
- Features
592
- --------
593
717
  - Added 'scale factor' for text generation, which gives better quality font rendering for smaller fonts
594
718
  - Configurable objects allow for passing args, and passing a block for extra config
595
719
  - Added more 'saved configurations', for easier setting up on e.g. Heroku
@@ -597,100 +721,87 @@ Features
597
721
  - Added greyscale to RMagickProcessor
598
722
  - S3DataStore is configurable as to whether it uses the filesystem or not (to save a tempfile)
599
723
 
600
- Fixes
601
- -----
724
+ ## Fixes
725
+
602
726
  - Some specs refactoring, including making text processing specs less brittle
603
727
  - RMagickEncoder::SUPPORTED_FORMATS was proving problematic - now we use a configurable list instead
604
728
  - Got Rails 3 beta3 cucumber features working
605
729
  - Added check to see if bucket already exists in S3DataStore - apparently this was problematic in EU
606
730
 
607
- Changes
608
- -------
731
+ ## Changes
732
+
609
733
  - temp_object.tempfile now returns a closed tempfile, which temp_object.file returns an open file.
610
- Can also pass a block to temp_object.file which closes the file automatically
734
+ Can also pass a block to temp_object.file which closes the file automatically
611
735
  - Processors/Analysers/Encoders know about app now so can log to app's log
612
736
  - Imagemagick errors in RMagick processor/analyser/encoder now throw unable_to_handle and log a warning
613
737
  - Removed Rails generators - better being more explicit with saved configurations which are more concise now
614
738
 
615
- 0.5.7 (2010-04-18)
616
- ==================
739
+ # 0.5.7 (2010-04-18)
740
+
741
+ ## Fixes
617
742
 
618
- Fixes
619
- --------
620
743
  - Strip file command mime_type value because some versions of file command were appending a line-break
621
744
 
622
- 0.5.6 (2010-04-13)
623
- ==================
745
+ # 0.5.6 (2010-04-13)
746
+
747
+ ## Fixes
624
748
 
625
- Fixes
626
- --------
627
749
  - Wasn't working properly with Single-Table Inheritance
628
750
 
629
- 0.5.5 (2010-04-13)
630
- ==================
751
+ # 0.5.5 (2010-04-13)
752
+
753
+ ## Fixes
631
754
 
632
- Fixes
633
- --------
634
755
  - Rails 3 has changed 'metaclass' -> 'singleton_class' so adapt accordingly
635
756
 
636
- 0.5.4 (2010-04-12)
637
- ==================
757
+ # 0.5.4 (2010-04-12)
758
+
759
+ ## Features
638
760
 
639
- Features
640
- --------
641
761
  - Allow setting the uid manually
642
762
 
643
- Fixes
644
- -----
763
+ ## Fixes
764
+
645
765
  - Assigning an accessor to nil wasn't working properly
646
766
 
767
+ # 0.5.3 (2010-03-27)
647
768
 
648
- 0.5.3 (2010-03-27)
649
- ==================
769
+ ## Fixes
650
770
 
651
- Fixes
652
- -----
653
771
  - Assigning an accessor to nil wasn't working properly
654
772
 
773
+ # 0.5.2 (2010-03-04)
655
774
 
656
- 0.5.2 (2010-03-04)
657
- ==================
775
+ ## Features
658
776
 
659
- Features
660
- --------
661
777
  - Added 'registered mime-types'
662
778
  - Enhanced docs
663
779
 
664
- Fixes
665
- -----
780
+ ## Fixes
781
+
666
782
  - RMagickEncoder only encodes if not already in that format
667
783
 
784
+ # 0.5.1 (2010-02-20)
668
785
 
669
- 0.5.1 (2010-02-20)
670
- ==================
786
+ ## Fixes
671
787
 
672
- Fixes
673
- -----
674
788
  - Fixed 'broken pipe' errors in FileCommandAnalyser due to outputting loads of stuff to the command line stdin
675
789
 
676
- 0.5.0 (2010-02-20)
677
- ==================
790
+ # 0.5.0 (2010-02-20)
678
791
 
679
- Added support
680
- -------------
681
- - support for Rails 3
792
+ ## Added support
682
793
 
794
+ - support for Rails 3
683
795
 
684
- 0.4.4 (2010-02-16)
685
- ==================
796
+ # 0.4.4 (2010-02-16)
686
797
 
687
798
  Better late than never to start logging change history...
688
799
 
689
- New features
690
- ------------
800
+ ## New features
801
+
691
802
  - added aspect_ratio to rmagick_analyser
692
803
 
693
- Added support
694
- -------------
804
+ ## Added support
805
+
695
806
  - support for ruby 1.9
696
807
  - added development dependencies to gemspec for easier setting up