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