Skip to content


Subversion checkout URL

You can clone with
Download ZIP
100644 172 lines (132 sloc) 8.22 KB
3ad7b01 @sikachu Update NEWS file
sikachu authored
1 New in 3.1.3:
3 * Bug fix: Copy empty attachment between instances is now working.
4 * Bug fix: Correctly rescue Fog error.
5 * Bug fix: Using default path and url options in Fog storage now work as expected.
6 * Bug fix: `Attachment#s3_protocol` now returns a protocol without colon suffix.
7 * Feature: Paperclip will now raise an error if multiple styles are defined but no `:style`
8 interpolation exists in `:path`.
9 * Feature: Add support for `#{attachment}_created_at` field
10 * Bug fix: Paperclip now gracefully handles msising file command.
11 * Bug fix: `StringIOAdapter` now accepts content type.
0eae7db @sikachu Bump to 3.1.2
sikachu authored
13 New in 3.1.2:
15 * Bug fix: #remove_attachment on 3.1.0 and 3.1.1 mistakenly trying to remove the column that has
16 the same name as data type (such as :string, :datetime, :interger.) You're advised to update to
17 Paperclip 3.1.2 as soon as possible.
271008d @sikachu Bump to 3.1.1
sikachu authored
19 New in 3.1.1:
21 * Bug fix: Paperclip will only load Paperclip::Schema only when Active Record is available.
5a138fd @sikachu Update NEWS file
sikachu authored
23 New in 3.1.0:
25 * Feature: Paperclip now support new migration syntax (sexy migration) that reads better:
27 class AddAttachmentToUsers < ActiveRecord::Migration
28 def self.up
29 create_table :users do |t|
30 t.attachment :avatar
31 end
32 end
33 end
35 Also, schema-definition level syntax has been added:
37 add_attachment :users, :avatar
38 remove_attachment :users, :avatar
40 * Feature: Migration now support Rails 3.2+ `change` method.
41 * API CHANGE: Old `t.has_attached_file` and `drop_attached_file` are now deprecated. You're advised
42 to update your migration file before the next MAJOR version.
43 * Bug fix: Tempfile now rewinded before generating fingerprint
44 * API CHANGE: Tempfiles are now unlinked after `after_flush_writes`
46 If you need to interact with the generated tempfiles, please define an `after_flush_writes` method
47 in your model. You'll be able to access files via `@queue_for_write` instance variable.
49 * Bug fix: `:s3_protocol` can now be defined as either String or Symbol
50 * Bug fix: Tempfiles are now rewinded before get passed into `after_flush_writes`
51 * Feature: Added expiring_url method to Fog Storage
52 * API CHANGE: Paperclip now tested against AWS::SDK 1.5.2 onward
53 * Bug fix: Improved the output of the content_type validator so the actual failure is displayed
54 * Feature: Animated formats now identified using ImageMagick.
55 * Feature: AttachmentAdapter now support fetching attachment with specific style.
56 * Feature: Paperclip default options can now be configured in Rails.configuration.
57 * Feature: add Geometry#resize_to to calculate dimensions of new source.
58 * Bug fix: Fixed a bug whereby a file type with multiple mime types but no official type would cause
59 the best_content_type to throw an error on trying nil.content_type.
60 * Bug fix: Fix problem when the gem cannot be installed on the system that has Asepsis installed.
62 New in 3.0.4:
64 * Feature: Adds support for S3 scheme-less URL generation.
01406e1 @sikachu Bump to 3.0.3
sikachu authored
66 New in 3.0.3:
3831498 @sikachu Update NEWS file for upcoming changes
sikachu authored
48736ce @sikachu Force Tempfile extension when creating a Tempfile
sikachu authored
68 * Bug fix: ThumbnailProcessor now correctly detects and preserve animated GIF.
69 * Bug fix: File extension is now preserved in generated Tempfile from adapter.
cc52a26 @sikachu Update NEWS file
sikachu authored
70 * Bug fix: Uploading file with unicode file name now won't raise an error when
71 logging in the AWS is turned on.
50635d3 @sikachu Fix typos in the NEWS file
sikachu authored
72 * Bug fix: Task "paperclip:refresh:missing_styles" now work correctly.
73 * Bug fix: Handle the case when :restricted_characters is nil.
74 * Bug fix: Don't delete all the existing styles if we reprocess.
75 * Bug fix: Content type is now ensured to not having a new line character.
76 * API CHANGE: Non-Rails usage should include Paperclip::Glue directly.
cc52a26 @sikachu Update NEWS file
sikachu authored
78 `Paperclip::Railtie` was intended to be used with Ruby on Rails only. If you're
79 using Paperclip without Rails, you should include `Paperclip::Glue` into
80 `ActiveRecord::Base` instead of requiring `paperclip/railtie`:
82 ActiveRecord::Base.send :include, Paperclip::Glue
3831498 @sikachu Update NEWS file for upcoming changes
sikachu authored
84 * Bug fix: AttachmentContentTypeValidator now allow you to specify :allow_blank/:allow_nil
85 * Bug fix: Make sure content type always a String.
86 * Bug fix: Fix attachment.reprocess! when using storage providers fog and s3.
87 * Bug fix: Fix a problem with incorrect content_type detected with 'file' command for an empty file on Mac.
89 New in 3.0.2:
91 * API CHANGE: Generated migration class name is now plural (AddAttachmentToUsers instead of AddAttachmentToUser)
92 * API CHANGE: Remove Rails plugin initialization code.
93 * API CHANGE: Explicitly require Ruby 1.9.2 in the Gemfile.
94 * Bug fix: Fixes AWS::S3::Errors::RequestTimeout on Model#save.
95 * Bug fix: Fix a problem when there's no logger specified.
96 * Bug fix: Fix a problem when attaching Rack::Test::UploadedFile instance.
98 New in 3.0.1:
237675d @sikachu Update NEWS file
sikachu authored
100 * Feature: Introduce Paperlip IO adapter.
101 * Bug fix: Regression in AttachmentContentTypeValidator has been fixed.
103 New in 3.0.0:
105 * API CHANGE: Paperclip now requires at least Ruby on Rails version 3.0.0
26f4d40 @mike-burns Change the default :url and :path to avoid conflicts. Closes #727.
mike-burns authored
106 * API CHANGE: The default :url and :path have changed. The new scheme avoids
107 filesystem conflicts and scales to handle larger numbers of uploads.
109 The easiest way to upgrade is to add an explicit :url and :path to your
110 has_attached_file calls:
237675d @sikachu Update NEWS file
sikachu authored
26f4d40 @mike-burns Change the default :url and :path to avoid conflicts. Closes #727.
mike-burns authored
112 has_attached_file :avatar,
113 :path => ":rails_root/public/system/:attachment/:id/:style/:filename",
114 :url => "/system/:attachment/:id/:style/:filename"
237675d @sikachu Update NEWS file
sikachu authored
116 * Feature: Adding Rails 3 style validators, and adding `validates_attachment` method as a shorthand.
117 * Bug fix: Paperclip's rake tasks now loading records in batch.
118 * Bug fix: Attachment style name with leading number now not raising an error.
119 * Bug fix: File given to S3 and Fog storage will now be rewinded after flush_write.
120 * Feature: You can now pass addional parameter to S3 expiring URL, such as :content_type.
760a4e0 @mike-burns Bump to 2.7.0
mike-burns authored
122 New in 2.7.0:
124 * Bug fix: Checking the existence of a file on S3 handles all AWS errors.
125 * Bug fix: Clear the fingerprint when removing an attachment.
126 * Bug fix: Attachment size validation message reads more nicely now.
127 * Feature: Style names can be either symbols or strings.
128 * Compatibility: Support for ActiveSupport < 2.3.12.
129 * Compatibility: Support for Rails 3.2.
71d3f46 @mike-burns Bump to 2.6.0.
mike-burns authored
131 New in 2.6.0:
133 * Bug fix: Files are re-wound after reading.
134 * Feature: Remove Rails dependency from specs that need Paperclip.
135 * Feature: Validation matchers support conditionals.
137 New in 2.5.2:
139 * Bug fix: Can be installed on Windows.
140 * Feature: The Fog bucket name, authentication, and host can be determined at runtime via Proc.
141 * Feature: Special characters are replaced with underscores in #url and #path.
ec4793e @mike-burns Bump to 2.5.1
mike-burns authored
143 New in 2.5.1:
145 * Feature: After we've computed the content type, pass it to Fog.
146 * Feature: S3 encryption with the new :s3_server_side_encryption option.
147 * Feature: Works without ActiveRecord, allowing for e.g. mongo backends.
071c938 @mike-burns Bump to 2.5.0
mike-burns authored
149 New in 2.5.0:
151 * Performance: Only connect to S3 when absolutely needed.
152 * Bug fix: STI with cached classes respect new options.
153 * Bug fix: conditional validations broke, and now work again.
154 * Feature: URL generation is now parameterized and can be changed with plugins or custom code.
155 * Feature: :convert_options and :source_file_options to control the ImageMagick processing.
156 * Performance: String geometry specifications now parse more quickly.
157 * Bug fix: Handle files with question marks in the filename.
158 * Bug fix: Don't raise an error when generating an expiring URL on an unassigned attachment.
159 * Bug fix: The rake task runs over all instances of an ActiveRecord model, ignoring default scopes.
160 * Feature: DB migration has_attached_file and drop_attached_file methods.
161 * Bug fix: Switch from AWS::S3 to AWS::SDK for the S3 backend.
162 * Bug fix: URL generator uses '?' in the URL unless it already appears and there is no prior '='.
163 * Bug fix: Always convert the content type to a string before stripping blanks.
164 * Feature: The :keep_old_files option preserves the files in storage even when the attachment is cleared or changed.
165 * Performance: Optimize Fog's public_url access by avoiding it when possible.
166 * Bug fix: Avoid a runtime error when generating the ID partition for an unsaved attachment.
167 * Performance: Do not calculate the fingerprint if it is never persisted.
168 * Bug fix: Process the :original style before all others, in case of a dependency.
169 * Feature: S3 headers can be set at runtime by passing a proc object as the value.
170 * Bug fix: Generating missing attachment styles for a model which has had its attachment changed should not raise.
171 * Bug fix: Do not collide with the built-in Ruby hashing method.
Something went wrong with that request. Please try again.