paperclip 4.2.2 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.codeclimate.yml +17 -0
- data/.github/issue_template.md +3 -0
- data/.hound.yml +1055 -0
- data/.rubocop.yml +1 -0
- data/.travis.yml +17 -15
- data/Appraisals +4 -16
- data/CONTRIBUTING.md +19 -8
- data/Gemfile +5 -9
- data/LICENSE +1 -1
- data/MIGRATING-ES.md +317 -0
- data/MIGRATING.md +375 -0
- data/NEWS +184 -31
- data/README.md +371 -201
- data/RELEASING.md +17 -0
- data/Rakefile +2 -2
- data/UPGRADING +12 -9
- data/features/basic_integration.feature +10 -6
- data/features/migration.feature +0 -24
- data/features/step_definitions/attachment_steps.rb +41 -35
- data/features/step_definitions/html_steps.rb +2 -2
- data/features/step_definitions/rails_steps.rb +39 -38
- data/features/step_definitions/s3_steps.rb +2 -2
- data/features/step_definitions/web_steps.rb +1 -103
- data/features/support/env.rb +1 -0
- data/features/support/file_helpers.rb +2 -2
- data/features/support/paths.rb +1 -1
- data/features/support/rails.rb +0 -24
- data/gemfiles/4.2.gemfile +6 -8
- data/gemfiles/5.0.gemfile +17 -0
- data/lib/generators/paperclip/paperclip_generator.rb +9 -1
- data/lib/generators/paperclip/templates/paperclip_migration.rb.erb +1 -1
- data/lib/paperclip/attachment.rb +51 -26
- data/lib/paperclip/attachment_registry.rb +3 -2
- data/lib/paperclip/callbacks.rb +8 -6
- data/lib/paperclip/content_type_detector.rb +27 -11
- data/lib/paperclip/errors.rb +3 -1
- data/lib/paperclip/file_command_content_type_detector.rb +6 -8
- data/lib/paperclip/filename_cleaner.rb +0 -1
- data/lib/paperclip/geometry_detector_factory.rb +3 -3
- data/lib/paperclip/geometry_parser_factory.rb +1 -1
- data/lib/paperclip/glue.rb +1 -1
- data/lib/paperclip/has_attached_file.rb +9 -2
- data/lib/paperclip/helpers.rb +15 -11
- data/lib/paperclip/interpolations/plural_cache.rb +6 -5
- data/lib/paperclip/interpolations.rb +24 -14
- data/lib/paperclip/io_adapters/abstract_adapter.rb +32 -4
- data/lib/paperclip/io_adapters/attachment_adapter.rb +17 -6
- data/lib/paperclip/io_adapters/data_uri_adapter.rb +8 -8
- data/lib/paperclip/io_adapters/empty_string_adapter.rb +5 -4
- data/lib/paperclip/io_adapters/file_adapter.rb +12 -6
- data/lib/paperclip/io_adapters/http_url_proxy_adapter.rb +8 -7
- data/lib/paperclip/io_adapters/identity_adapter.rb +12 -6
- data/lib/paperclip/io_adapters/nil_adapter.rb +8 -5
- data/lib/paperclip/io_adapters/registry.rb +6 -2
- data/lib/paperclip/io_adapters/stringio_adapter.rb +9 -6
- data/lib/paperclip/io_adapters/uploaded_file_adapter.rb +10 -6
- data/lib/paperclip/io_adapters/uri_adapter.rb +43 -19
- data/lib/paperclip/logger.rb +1 -1
- data/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +4 -4
- data/lib/paperclip/media_type_spoof_detector.rb +13 -9
- data/lib/paperclip/processor.rb +15 -6
- data/lib/paperclip/rails_environment.rb +25 -0
- data/lib/paperclip/schema.rb +4 -10
- data/lib/paperclip/storage/filesystem.rb +13 -2
- data/lib/paperclip/storage/fog.rb +33 -20
- data/lib/paperclip/storage/s3.rb +89 -70
- data/lib/paperclip/style.rb +0 -1
- data/lib/paperclip/thumbnail.rb +24 -12
- data/lib/paperclip/url_generator.rb +17 -13
- data/lib/paperclip/validators/attachment_size_validator.rb +1 -7
- data/lib/paperclip/validators/media_type_spoof_detection_validator.rb +4 -0
- data/lib/paperclip/validators.rb +1 -1
- data/lib/paperclip/version.rb +3 -1
- data/lib/paperclip.rb +27 -13
- data/lib/tasks/paperclip.rake +33 -3
- data/paperclip.gemspec +18 -15
- data/spec/paperclip/attachment_definitions_spec.rb +1 -1
- data/spec/paperclip/attachment_processing_spec.rb +2 -5
- data/spec/paperclip/attachment_registry_spec.rb +84 -13
- data/spec/paperclip/attachment_spec.rb +147 -41
- data/spec/paperclip/content_type_detector_spec.rb +9 -2
- data/spec/paperclip/file_command_content_type_detector_spec.rb +15 -2
- data/spec/paperclip/filename_cleaner_spec.rb +0 -1
- data/spec/paperclip/geometry_spec.rb +1 -1
- data/spec/paperclip/glue_spec.rb +44 -0
- data/spec/paperclip/has_attached_file_spec.rb +24 -8
- data/spec/paperclip/integration_spec.rb +42 -5
- data/spec/paperclip/interpolations_spec.rb +21 -9
- data/spec/paperclip/io_adapters/abstract_adapter_spec.rb +106 -23
- data/spec/paperclip/io_adapters/attachment_adapter_spec.rb +6 -3
- data/spec/paperclip/io_adapters/data_uri_adapter_spec.rb +7 -1
- data/spec/paperclip/io_adapters/file_adapter_spec.rb +6 -3
- data/spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb +51 -14
- data/spec/paperclip/io_adapters/identity_adapter_spec.rb +1 -1
- data/spec/paperclip/io_adapters/registry_spec.rb +2 -2
- data/spec/paperclip/io_adapters/stringio_adapter_spec.rb +5 -1
- data/spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb +5 -5
- data/spec/paperclip/io_adapters/uri_adapter_spec.rb +126 -8
- data/spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb +10 -0
- data/spec/paperclip/matchers/validate_attachment_size_matcher_spec.rb +1 -1
- data/spec/paperclip/media_type_spoof_detector_spec.rb +75 -11
- data/spec/paperclip/paperclip_spec.rb +15 -40
- data/spec/paperclip/plural_cache_spec.rb +17 -16
- data/spec/paperclip/processor_spec.rb +4 -4
- data/spec/paperclip/rails_environment_spec.rb +33 -0
- data/spec/paperclip/schema_spec.rb +46 -46
- data/spec/paperclip/storage/fog_spec.rb +63 -3
- data/spec/paperclip/storage/s3_live_spec.rb +20 -14
- data/spec/paperclip/storage/s3_spec.rb +400 -215
- data/spec/paperclip/style_spec.rb +0 -1
- data/spec/paperclip/tempfile_factory_spec.rb +4 -0
- data/spec/paperclip/tempfile_spec.rb +35 -0
- data/spec/paperclip/thumbnail_spec.rb +59 -38
- data/spec/paperclip/url_generator_spec.rb +55 -45
- data/spec/paperclip/validators/attachment_size_validator_spec.rb +26 -20
- data/spec/paperclip/validators_spec.rb +5 -5
- data/spec/spec_helper.rb +7 -1
- data/spec/support/assertions.rb +12 -1
- data/spec/support/fake_model.rb +4 -0
- data/spec/support/fixtures/empty.xlsx +0 -0
- data/spec/support/matchers/have_column.rb +11 -2
- data/spec/support/mock_attachment.rb +2 -0
- data/spec/support/mock_url_generator_builder.rb +2 -2
- data/spec/support/model_reconstruction.rb +11 -3
- data/spec/support/reporting.rb +11 -0
- metadata +110 -63
- data/RUNNING_TESTS.md +0 -4
- data/cucumber/paperclip_steps.rb +0 -6
- data/gemfiles/3.2.gemfile +0 -19
- data/gemfiles/4.0.gemfile +0 -19
- data/gemfiles/4.1.gemfile +0 -19
- data/lib/paperclip/locales/de.yml +0 -18
- data/lib/paperclip/locales/es.yml +0 -18
- data/lib/paperclip/locales/ja.yml +0 -18
- data/lib/paperclip/locales/pt-BR.yml +0 -18
- data/lib/paperclip/locales/zh-CN.yml +0 -18
- data/lib/paperclip/locales/zh-HK.yml +0 -18
- data/lib/paperclip/locales/zh-TW.yml +0 -18
- data/spec/support/mock_model.rb +0 -2
- data/spec/support/rails_helpers.rb +0 -7
data/NEWS
CHANGED
@@ -1,8 +1,161 @@
|
|
1
|
-
|
1
|
+
6.1.0 (2018-07-27):
|
2
|
+
|
3
|
+
* BUGFIX: Don't double-encode URLs (Roderick Monje).
|
4
|
+
* BUGFIX: Only use the content_type when it exists (Jean-Philippe Doyle).
|
5
|
+
* STABILITY: Better handling of the content-disposition header. Now supports
|
6
|
+
file name that is either enclosed or not in double quotes and is case
|
7
|
+
insensitive as per RC6266 grammar (Hasan Kumar, Yves Riel).
|
8
|
+
* STABILITY: Change database column type of attachment file size from unsigned 4-byte
|
9
|
+
`integer` to unsigned 8-byte `bigint`. The former type limits attachment size
|
10
|
+
to just over 2GB, which can easily be exceeded by a large video file (Laurent
|
11
|
+
Arnoud, Alen Zamanyan).
|
12
|
+
* STABILITY: Better error message when thumbnail processing errors (Hayden Ball).
|
13
|
+
* STABILITY: Fix file linking issues around Windows (Akihiko Odaki).
|
14
|
+
* STABILITY: Files without an extension will now be checked for spoofing attempts
|
15
|
+
(George Walters II).
|
16
|
+
* STABILITY: Manually close Tempfiles when we are done with them (Erkki Eilonen).
|
17
|
+
|
18
|
+
6.0.0 (2018-03-09):
|
19
|
+
|
20
|
+
* Improvement: Depend only on `aws-sdk-s3` instead of `aws-sdk` (https://github.com/thoughtbot/paperclip/pull/2481)
|
21
|
+
|
22
|
+
5.3.0 (2018-03-09):
|
23
|
+
|
24
|
+
* Improvement: Use `FactoryBot` instead of `FactoryGirl` (https://github.com/thoughtbot/paperclip/pull/2501)
|
25
|
+
* Improvement: README updates (https://github.com/thoughtbot/paperclip/pull/2411, https://github.com/thoughtbot/paperclip/pull/2433, https://github.com/thoughtbot/paperclip/pull/2374, https://github.com/thoughtbot/paperclip/pull/2417, https://github.com/thoughtbot/paperclip/pull/2536)
|
26
|
+
* Improvement: Remove Ruby 2.4 deprecation warning (https://github.com/thoughtbot/paperclip/pull/2401)
|
27
|
+
* Improvement: Rails 5 migration compatibility (https://github.com/thoughtbot/paperclip/pull/2470)
|
28
|
+
* Improvement: Documentation around post processing (https://github.com/thoughtbot/paperclip/pull/2381)
|
29
|
+
* Improvement: S3 hostname example documentation (https://github.com/thoughtbot/paperclip/pull/2379)
|
30
|
+
* Bugfix: Allow paperclip to load in IRB (https://github.com/thoughtbot/paperclip/pull/2369)
|
31
|
+
* Bugfix: MIME type detection (https://github.com/thoughtbot/paperclip/issues/2527)
|
32
|
+
* Bugfix: Bad tempfile state after symlink failure (https://github.com/thoughtbot/paperclip/pull/2540)
|
33
|
+
* Bugfix: Rewind file after Fog bucket creation (https://github.com/thoughtbot/paperclip/pull/2572)
|
34
|
+
* Improvement: Use `Terrapin` instead of `Cocaine` (https://github.com/thoughtbot/paperclip/pull/2553)
|
35
|
+
|
36
|
+
5.2.1 (2018-01-25):
|
37
|
+
|
38
|
+
* Bugfix: Fix copying files on Windows. (#2532)
|
39
|
+
|
40
|
+
5.2.0 (2018-01-23):
|
41
|
+
|
42
|
+
* Security: Remove the automatic loading of URI adapters. Some of these
|
43
|
+
adapters can be specially crafted to expose your network topology. (#2435)
|
44
|
+
* Bugfix: The rake task no longer rescues `Exception`. (#2476)
|
45
|
+
* Bugfix: Handle malformed `Content-Disposition` headers (#2283)
|
46
|
+
* Bugfix: The `:only_process` option works when passed a lambda again. (#2289)
|
47
|
+
* Improvement: Added `:use_accelerate_endpoint` option when using S3 to enable
|
48
|
+
[Amazon S3 Transfer Acceleration](http://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html)
|
49
|
+
(#2291)
|
50
|
+
* Improvement: Make the fingerprint digest configurable per attachment. The
|
51
|
+
default remains MD5. Making this configurable means it can change in a future
|
52
|
+
version because it is not considered secure anymore against intentional file
|
53
|
+
corruption. For more info, see https://en.wikipedia.org/wiki/MD5#Security
|
54
|
+
|
55
|
+
You can change the digest used for an attachment by adding the
|
56
|
+
`:adapter_options` parameter to the `has_attached_file` options like this:
|
57
|
+
`has_attached_file :avatar, adapter_options: { hash_digest: Digest::SHA256 }`
|
58
|
+
|
59
|
+
Use the rake task to regenerate fingerprints with the new digest for a given
|
60
|
+
class. Note that this does **not** check the file integrity using the old
|
61
|
+
fingerprint. Run the following command to regenerate fingerprints for all
|
62
|
+
User attachments:
|
63
|
+
`CLASS=User rake paperclip:refresh:fingerprints`
|
64
|
+
You can optionally limit the attachment that will be processed, e.g:
|
65
|
+
`CLASS=User ATTACHMENT=avatar rake paperclip:refresh:fingerprints` (#2229)
|
66
|
+
* Improvement: The new `frame_index` option on the thumbnail processor allows
|
67
|
+
you to select a specific frame from an animated upload to use as a thumbnail.
|
68
|
+
Initial support is for mkv, avi, MP4, mov, MPEG, and GIF. (#2155)
|
69
|
+
* Improvement: Instead of copying files, use hard links. This is an
|
70
|
+
optimization. (#2120)
|
71
|
+
* Improvement: S3 storage option `:s3_prefixes_in_alias`. (#2287)
|
72
|
+
* Improvement: Fog option `:fog_public` can be a lambda. (#2302)
|
73
|
+
* Improvement: One fewer warning on JRuby. (#2352)
|
74
|
+
* Ruby 2.4.0 compatibility (doesn't use Fixnum anymore)
|
75
|
+
|
76
|
+
5.1.0 (2016-08-19):
|
77
|
+
|
78
|
+
* Add default `content_type_detector` to `UploadedFileAdapter` (#2270)
|
79
|
+
* Default S3 protocol to empty string (#2038)
|
80
|
+
* Don't write original file if it wasn't reprocessed (#1993)
|
81
|
+
* Disallow trailing newlines in regular expressions (#2266)
|
82
|
+
* Support for readbyte in Paperclip attachments (#2034)
|
83
|
+
* (port from 4.3) Uri io adapter uses the content-disposition filename (#2250)
|
84
|
+
* General refactors and documentation improvements
|
85
|
+
|
86
|
+
5.0.0 (2016-07-01):
|
87
|
+
|
88
|
+
* Improvement: Add `read_timeout` configuration for URI Adapter download_content method.
|
89
|
+
* README adjustments for Ruby beginners (add links, elucidate model in Quick Start)
|
90
|
+
* Bugfix: Now it's possible to save images from URLs with special characters [#1932]
|
91
|
+
* Bugfix: Return false when file to copy is not present in cloud storage [#2173]
|
92
|
+
* Automatically close file while checking mime type [#2016]
|
93
|
+
* Add `read_timeout` option to `UriAdapter#download_content` method [#2232]
|
94
|
+
* Fix a nil error in content type validation matcher [#1910]
|
95
|
+
* Documentation improvements
|
96
|
+
|
97
|
+
5.0.0.beta2 (2016-04-01):
|
98
|
+
|
99
|
+
* Bugfix: Dynamic fog directory option is now respected
|
100
|
+
* Bugfix: Fixes cocaine duplicated paths [#2169]
|
101
|
+
* Removal of dead code (older versions of Rails and AWS SDK)
|
102
|
+
* README adjustments
|
103
|
+
|
104
|
+
5.0.0.beta1 (2016-03-13):
|
105
|
+
|
106
|
+
* Bug Fix: megabytes of mime-types info in logs when a spoofed media type is detected.
|
107
|
+
* Drop support to end-of-life'd ruby 2.0.
|
108
|
+
* Drop support for end-of-life'd Rails 3.2 and 4.1
|
109
|
+
* Drop support for AWS v1
|
110
|
+
* Remove tests for JRuby and Rubinius from Travis CI (they were failing)
|
111
|
+
* Improvement: Add `fog_options` configuration to send options to fog when
|
112
|
+
storing files.
|
113
|
+
* Extracted repository for locales only: https://github.com/thoughtbot/paperclip-i18n
|
114
|
+
* Bugfix: Original file could be unlinked during `post_process_style`, producing failures
|
115
|
+
* Bugfix for image magick scaling images up
|
116
|
+
* Memory consumption improvements
|
117
|
+
* `url` on a unpersisted record returns `default_url` rather than `nil`
|
118
|
+
* Improvement: aws-sdk v2 support
|
119
|
+
https://github.com/thoughtbot/paperclip/pull/1903
|
120
|
+
|
121
|
+
If your Gemfile contains aws-sdk (>= 2.0.0) and aws-sdk-v1, paperclip will use
|
122
|
+
aws-sdk v2. With aws-sdk v2, S3 storage requires you to set the s3_region.
|
123
|
+
s3_region may be nested in s3_credentials, and (if not nested in
|
124
|
+
s3_credentials) it may be a Proc.
|
125
|
+
|
126
|
+
4.3
|
127
|
+
|
128
|
+
See patch versions in v4.3 NEWS:
|
129
|
+
https://github.com/thoughtbot/paperclip/blob/v4.3/NEWS
|
130
|
+
|
131
|
+
4.3.0 (2015-06-18):
|
132
|
+
|
133
|
+
* Improvement: Update aws-sdk and cucumber gem versions.
|
134
|
+
* Improvement: Add `length` alias for `size` method in AbstractAdapter.
|
135
|
+
* Improvement: Removed some cruft
|
136
|
+
* Improvement: deep_merge! Attachment definitions
|
137
|
+
* Improvement: Switch to mimemagic gem for content-type detection
|
138
|
+
* Improvement: Allows multiple content types for spoof detector
|
139
|
+
* Bug Fix: Don't assume we have Rails.env if we have Rails
|
140
|
+
* Performance: Decrease Memory footprint
|
141
|
+
* Ruby Versioning: Drop support for 1.9.3 (EOL'ed)
|
142
|
+
* Rails Versioning: Drop support for 4.0.0 (EOL'ed)
|
143
|
+
|
144
|
+
4.2.4 (2015-06-05):
|
145
|
+
|
146
|
+
* Rollback backwards incompatible change, allowing paperclip to run on
|
147
|
+
Ruby >= 1.9.2.
|
148
|
+
|
149
|
+
4.2.3:
|
150
|
+
|
151
|
+
* Fix dependency specifications (didn't work with Rails 4.1)
|
152
|
+
* Fix paperclip tests in CI
|
153
|
+
|
154
|
+
4.2.2:
|
2
155
|
|
3
156
|
* Security fix: Fix a potential security issue with spoofing
|
4
157
|
|
5
|
-
|
158
|
+
4.2.1:
|
6
159
|
|
7
160
|
* Improvement: Added `validate_media_type` options to allow/bypass spoof check
|
8
161
|
* Improvement: Added incremental backoff when AWS gives us a SlowDown error.
|
@@ -12,14 +165,14 @@ New in 4.2.1:
|
|
12
165
|
* Improvement: Better escaping for characters in URLs
|
13
166
|
* Improvement: Honor `fog_credentials[:scheme]`
|
14
167
|
* Improvement: Also look for custom processors in lib/paperclip
|
15
|
-
* Improvement: id partitioning for string IDs works
|
168
|
+
* Improvement: id partitioning for string IDs works like integer id
|
16
169
|
* Improvement: Can pass options to DB adapters in migrations
|
17
170
|
* Improvement: Update expiring_url creation for later versions of fog
|
18
171
|
* Improvement: `path` can be a Proc in S3 attachments
|
19
172
|
* Test Fix: Improves speed and reliability of the specs
|
20
173
|
* Bug Fix: #original_filename= does not error when passed `nil`
|
21
174
|
|
22
|
-
|
175
|
+
4.2.0:
|
23
176
|
|
24
177
|
* Improvement: Converted test suite from test/unit to RSpec
|
25
178
|
* Improvement: Refactored Paperclip::Attachment#assign
|
@@ -35,7 +188,7 @@ New in 4.2.0:
|
|
35
188
|
* Improvement: Allow `nil` geometry strings
|
36
189
|
* Improvement: Use `eager_load!`
|
37
190
|
|
38
|
-
|
191
|
+
4.1.1:
|
39
192
|
|
40
193
|
* Improvement: Add default translations for spoof validation
|
41
194
|
* Bug Fix: Don't check for spoofs if the file hasn't changed
|
@@ -46,7 +199,7 @@ New in 4.1.1:
|
|
46
199
|
* Improvement: Allow travis-ci to finish-fast
|
47
200
|
|
48
201
|
|
49
|
-
|
202
|
+
4.1.0:
|
50
203
|
|
51
204
|
* Improvement: Add :content_type_mappings to correct for missing spoof types
|
52
205
|
* Improvement: Credit Egor Homakov with discovering the content_type spoof bug
|
@@ -54,7 +207,7 @@ New in 4.1.0:
|
|
54
207
|
* Improvement: Make MIME type optional for Data URIs.
|
55
208
|
* Improvement: Add default format for styles
|
56
209
|
|
57
|
-
|
210
|
+
4.0.0:
|
58
211
|
|
59
212
|
* Security: Attachments are checked to make sure they're not pulling a fast one.
|
60
213
|
* Security: It is now *enforced* that every attachment has a file/mime validation.
|
@@ -62,7 +215,7 @@ New in 4.0.0:
|
|
62
215
|
* Improvement: Added bullets to the 3.5.3 list of changes. Very important.
|
63
216
|
* Improvement: Updated the copyright to 2014
|
64
217
|
|
65
|
-
|
218
|
+
3.5.3:
|
66
219
|
|
67
220
|
* Improvement: After three long, hard years... we know how to upgrade
|
68
221
|
* Bug Fix: #expiring_url returns 'missing' urls if nothing is attached
|
@@ -84,14 +237,14 @@ New in 3.5.3:
|
|
84
237
|
* Test Improvement: Ensure more files are properly closed during tests
|
85
238
|
* Test Bug Fix: Return the gemfile's syntax to normal
|
86
239
|
|
87
|
-
|
240
|
+
3.5.2:
|
88
241
|
|
89
242
|
* Security: Force cocaine to at least 0.5.3 to include a security fix
|
90
243
|
* Improvement: Fixed some README exmaples
|
91
244
|
* Feature: Added HTTP URL Proxy Adapter, can assign string URLs as attachments
|
92
245
|
* Improvement: Put validation errors on the base attribute and the sub-attribute
|
93
246
|
|
94
|
-
|
247
|
+
3.5.1:
|
95
248
|
|
96
249
|
* Bug Fix: Returned the class-level `attachment_definitions` method for compatability.
|
97
250
|
* Improvement: Ensured compatability with Rails 4
|
@@ -99,7 +252,7 @@ New in 3.5.1:
|
|
99
252
|
* Bug Fix: #1296, where validations were generating errors
|
100
253
|
* Improvement: Specify MIT license in the gemspec
|
101
254
|
|
102
|
-
|
255
|
+
3.5.0:
|
103
256
|
|
104
257
|
* Feature: Handle Base64-encoded data URIs as uploads
|
105
258
|
* Feature: Add a FilenameCleaner class to allow custom filename sanitation
|
@@ -115,7 +268,7 @@ New in 3.5.0:
|
|
115
268
|
* Improvement: Added Ruby 2.0.0 as a supported platform and removed 1.8.7
|
116
269
|
* Improvement: Fixed some incompatabilities in the test suite
|
117
270
|
|
118
|
-
|
271
|
+
3.4.2:
|
119
272
|
|
120
273
|
* Improvement: Use https for Gemfile urls
|
121
274
|
* Improvement: Updated and more correct documentation
|
@@ -125,7 +278,7 @@ New in 3.4.2:
|
|
125
278
|
* Improvement: Remove path clash checking, as it's unnecessary
|
126
279
|
* Bug Fix: Do not rely on checking version numbers for aws-sdk
|
127
280
|
|
128
|
-
|
281
|
+
3.4.1:
|
129
282
|
|
130
283
|
* Improvement: Various documentation fixes and improvements
|
131
284
|
* Bug Fix: Clearing an attachment with `preserve_files` on should still clear the attachment
|
@@ -138,7 +291,7 @@ New in 3.4.1:
|
|
138
291
|
* Improvement: Update to latest cocaine
|
139
292
|
* Improvement: Update copyrights, various typos
|
140
293
|
|
141
|
-
|
294
|
+
3.4.0:
|
142
295
|
|
143
296
|
* Bug Fix: Allow UploadedFileAdapter to force the use of `file`
|
144
297
|
* Bug Fix: Close the file handle when dealing with URIs
|
@@ -168,11 +321,11 @@ New In 3.3.1:
|
|
168
321
|
|
169
322
|
* Bug Fix: Moved Filesystem's copy_to_local_file to the right place.
|
170
323
|
|
171
|
-
|
324
|
+
3.3.0:
|
172
325
|
|
173
326
|
* Improvement: Upgrade cocaine to 0.4
|
174
327
|
|
175
|
-
|
328
|
+
3.2.0:
|
176
329
|
|
177
330
|
* Bug Fix: Use the new correct Amazon S3 encryption header.
|
178
331
|
* Bug Fix: The rake task respects the updated_at column.
|
@@ -181,14 +334,14 @@ New in 3.2.0:
|
|
181
334
|
* Feature: Automatically rotate images.
|
182
335
|
* Feature: Reduce class-oriented programming of the attachment definitions.
|
183
336
|
|
184
|
-
|
337
|
+
3.1.4:
|
185
338
|
|
186
339
|
* Bug Fix: Allow user to be able to set path without `:style` attribute and not raising an error.
|
187
340
|
This is a regression introduced in 3.1.3, and that feature will be postponed to another minor
|
188
341
|
release instead.
|
189
342
|
* Feature: Allow for URI Adapter as an optional paperclip io adapter.
|
190
343
|
|
191
|
-
|
344
|
+
3.1.3:
|
192
345
|
|
193
346
|
* Bug Fix: Copy empty attachment between instances is now working.
|
194
347
|
* Bug Fix: Correctly rescue Fog error.
|
@@ -200,17 +353,17 @@ New in 3.1.3:
|
|
200
353
|
* Bug Fix: Paperclip now gracefully handles msising file command.
|
201
354
|
* Bug Fix: `StringIOAdapter` now accepts content type.
|
202
355
|
|
203
|
-
|
356
|
+
3.1.2:
|
204
357
|
|
205
358
|
* Bug Fix: #remove_attachment on 3.1.0 and 3.1.1 mistakenly trying to remove the column that has
|
206
359
|
the same name as data type (such as :string, :datetime, :interger.) You're advised to update to
|
207
360
|
Paperclip 3.1.2 as soon as possible.
|
208
361
|
|
209
|
-
|
362
|
+
3.1.1:
|
210
363
|
|
211
364
|
* Bug Fix: Paperclip will only load Paperclip::Schema only when Active Record is available.
|
212
365
|
|
213
|
-
|
366
|
+
3.1.0:
|
214
367
|
|
215
368
|
* Feature: Paperclip now support new migration syntax (sexy migration) that reads better:
|
216
369
|
|
@@ -249,11 +402,11 @@ New in 3.1.0:
|
|
249
402
|
the best_content_type to throw an error on trying nil.content_type.
|
250
403
|
* Bug Fix: Fix problem when the gem cannot be installed on the system that has Asepsis installed.
|
251
404
|
|
252
|
-
|
405
|
+
3.0.4:
|
253
406
|
|
254
407
|
* Feature: Adds support for S3 scheme-less URL generation.
|
255
408
|
|
256
|
-
|
409
|
+
3.0.3:
|
257
410
|
|
258
411
|
* Bug Fix: ThumbnailProcessor now correctly detects and preserve animated GIF.
|
259
412
|
* Bug Fix: File extension is now preserved in generated Tempfile from adapter.
|
@@ -276,7 +429,7 @@ New in 3.0.3:
|
|
276
429
|
* Bug Fix: Fix attachment.reprocess! when using storage providers fog and s3.
|
277
430
|
* Bug Fix: Fix a problem with incorrect content_type detected with 'file' command for an empty file on Mac.
|
278
431
|
|
279
|
-
|
432
|
+
3.0.2:
|
280
433
|
|
281
434
|
* API CHANGE: Generated migration class name is now plural (AddAttachmentToUsers instead of AddAttachmentToUser)
|
282
435
|
* API CHANGE: Remove Rails plugin initialization code.
|
@@ -285,13 +438,13 @@ New in 3.0.2:
|
|
285
438
|
* Bug Fix: Fix a problem when there's no logger specified.
|
286
439
|
* Bug Fix: Fix a problem when attaching Rack::Test::UploadedFile instance.
|
287
440
|
|
288
|
-
|
441
|
+
3.0.1:
|
289
442
|
|
290
443
|
* Feature: Introduce Paperlip IO adapter.
|
291
444
|
* Bug Fix: Regression in AttachmentContentTypeValidator has been fixed.
|
292
445
|
* API CHANGE: #to_file has been removed. Use the #copy_to_local_file method instead.
|
293
446
|
|
294
|
-
|
447
|
+
3.0.0:
|
295
448
|
|
296
449
|
* API CHANGE: Paperclip now requires at least Ruby on Rails version 3.0.0
|
297
450
|
* API CHANGE: The default :url and :path have changed. The new scheme avoids
|
@@ -310,7 +463,7 @@ New in 3.0.0:
|
|
310
463
|
* Bug Fix: File given to S3 and Fog storage will now be rewinded after flush_write.
|
311
464
|
* Feature: You can now pass addional parameter to S3 expiring URL, such as :content_type.
|
312
465
|
|
313
|
-
|
466
|
+
2.7.0:
|
314
467
|
|
315
468
|
* Bug Fix: Checking the existence of a file on S3 handles all AWS errors.
|
316
469
|
* Bug Fix: Clear the fingerprint when removing an attachment.
|
@@ -319,25 +472,25 @@ New in 2.7.0:
|
|
319
472
|
* Compatibility: Support for ActiveSupport < 2.3.12.
|
320
473
|
* Compatibility: Support for Rails 3.2.
|
321
474
|
|
322
|
-
|
475
|
+
2.6.0:
|
323
476
|
|
324
477
|
* Bug Fix: Files are re-wound after reading.
|
325
478
|
* Feature: Remove Rails dependency from specs that need Paperclip.
|
326
479
|
* Feature: Validation matchers support conditionals.
|
327
480
|
|
328
|
-
|
481
|
+
2.5.2:
|
329
482
|
|
330
483
|
* Bug Fix: Can be installed on Windows.
|
331
484
|
* Feature: The Fog bucket name, authentication, and host can be determined at runtime via Proc.
|
332
485
|
* Feature: Special characters are replaced with underscores in #url and #path.
|
333
486
|
|
334
|
-
|
487
|
+
2.5.1:
|
335
488
|
|
336
489
|
* Feature: After we've computed the content type, pass it to Fog.
|
337
490
|
* Feature: S3 encryption with the new :s3_server_side_encryption option.
|
338
491
|
* Feature: Works without ActiveRecord, allowing for e.g. mongo backends.
|
339
492
|
|
340
|
-
|
493
|
+
2.5.0:
|
341
494
|
|
342
495
|
* Performance: Only connect to S3 when absolutely needed.
|
343
496
|
* Bug Fix: STI with cached classes respect new options.
|