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