Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
62264c65
Commit
62264c65
authored
Feb 22, 2013
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v3.4.1
parent
f820685d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
55 deletions
+94
-55
NEWS
+93
-54
lib/paperclip/version.rb
+1
-1
No files found.
NEWS
View file @
62264c65
New in 3.4.1:
* Improvement: Various documentation fixes and improvements
* Bug Fix: Clearing an attachment with `perserve_files` on should still clear the attachment
* Bug Fix: Instances are #changed? when a new file is assigned
* Bug Fix: Correctly deal with S3 styles when using a lambda
* Improvement: Accept and pass :credential_provider option to AWS-SDK
* Bug Fix: Sanitize original_filename more correctly in IO Adapters
* Improvement: s3_host_name can be a lambda
* Improvement: Cache some interpolations for speed
* Improvement: Update to latest cocaine
* Improvement: Update copyrights, various typos
New in 3.4.0:
* Bug Fix: Allow UploadedFileAdapter to force the use of `file`
* Bug Fix: Close the file handle when dealing with URIs
* Bug Fix: Ensure files are closed for writing when we're done.
* Bug Fix: Fixed 'type' being nil on Windows 7 error.
* Bug Fix: Fixed nil access when no s3 headers are defined
* Bug Fix: Fixes auto_orientation
* Bug Fix: Prevent a missing method error when switching from aws_sdk to fog
* Bug Fix: Properly fail to process invalid attachments
* Bug Fix: Server-side encryption is specified correctly
* Bug Fix: fog_public returned to true by default
* Bug Fix: Check attachment paths for duplicates, not URLs
* Feature: Add Attachment#blank?
* Feature: Add support for blacklisting certain content_types
* Feature: Add support for style-specific s3 headers and meta data
* Feature: Allow only_process to be a lambda
* Feature: Allow setting of escape url as a default option
* Feature: Create :override_file_permissions option for filesystem attachments
* Improvement: Add Attachment#as_json
* Improvement: Evaluate lambdas for fog_file properties
* Improvement: Extract geometry parsing into factories
* Improvement: Fixed various typos
* Improvement: Refactored some tests
* Improvement: Reuse S3 connections
New In 3.3.1:
* Bug
f
ix: Moved Filesystem's copy_to_local_file to the right place.
* Bug
F
ix: Moved Filesystem's copy_to_local_file to the right place.
New in 3.3.0:
...
...
@@ -8,41 +47,41 @@ New in 3.3.0:
New in 3.2.0:
* Bug
f
ix: Use the new correct Amazon S3 encryption header.
* Bug
f
ix: The rake task respects the updated_at column.
* Bug
f
ix: Strip newline from content type.
* Bug
F
ix: Use the new correct Amazon S3 encryption header.
* Bug
F
ix: The rake task respects the updated_at column.
* Bug
F
ix: Strip newline from content type.
* Feature: Fog file visibility can be specified per style.
* Feature: Automatically rotate images.
* Feature: Reduce class-oriented programming of the attachment definitions.
New in 3.1.4:
* Bug
f
ix: Allow user to be able to set path without `:style` attribute and not raising an error.
* Bug
F
ix: Allow user to be able to set path without `:style` attribute and not raising an error.
This is a regression introduced in 3.1.3, and that feature will be postponed to another minor
release instead.
* Feature: Allow for URI Adapter as an optional paperclip io adapter.
New in 3.1.3:
* Bug
f
ix: Copy empty attachment between instances is now working.
* Bug
f
ix: Correctly rescue Fog error.
* Bug
f
ix: Using default path and url options in Fog storage now work as expected.
* Bug
f
ix: `Attachment#s3_protocol` now returns a protocol without colon suffix.
* Bug
F
ix: Copy empty attachment between instances is now working.
* Bug
F
ix: Correctly rescue Fog error.
* Bug
F
ix: Using default path and url options in Fog storage now work as expected.
* Bug
F
ix: `Attachment#s3_protocol` now returns a protocol without colon suffix.
* Feature: Paperclip will now raise an error if multiple styles are defined but no `:style`
interpolation exists in `:path`.
* Feature: Add support for `#{attachment}_created_at` field
* Bug
f
ix: Paperclip now gracefully handles msising file command.
* Bug
f
ix: `StringIOAdapter` now accepts content type.
* Bug
F
ix: Paperclip now gracefully handles msising file command.
* Bug
F
ix: `StringIOAdapter` now accepts content type.
New in 3.1.2:
* Bug
f
ix: #remove_attachment on 3.1.0 and 3.1.1 mistakenly trying to remove the column that has
* Bug
F
ix: #remove_attachment on 3.1.0 and 3.1.1 mistakenly trying to remove the column that has
the same name as data type (such as :string, :datetime, :interger.) You're advised to update to
Paperclip 3.1.2 as soon as possible.
New in 3.1.1:
* Bug
f
ix: Paperclip will only load Paperclip::Schema only when Active Record is available.
* Bug
F
ix: Paperclip will only load Paperclip::Schema only when Active Record is available.
New in 3.1.0:
...
...
@@ -64,24 +103,24 @@ New in 3.1.0:
* Feature: Migration now support Rails 3.2+ `change` method.
* API CHANGE: Old `t.has_attached_file` and `drop_attached_file` are now deprecated. You're advised
to update your migration file before the next MAJOR version.
* Bug
f
ix: Tempfile now rewinded before generating fingerprint
* Bug
F
ix: Tempfile now rewinded before generating fingerprint
* API CHANGE: Tempfiles are now unlinked after `after_flush_writes`
If you need to interact with the generated tempfiles, please define an `after_flush_writes` method
in your model. You'll be able to access files via `@queue_for_write` instance variable.
* Bug
f
ix: `:s3_protocol` can now be defined as either String or Symbol
* Bug
f
ix: Tempfiles are now rewinded before get passed into `after_flush_writes`
* Bug
F
ix: `:s3_protocol` can now be defined as either String or Symbol
* Bug
F
ix: Tempfiles are now rewinded before get passed into `after_flush_writes`
* Feature: Added expiring_url method to Fog Storage
* API CHANGE: Paperclip now tested against AWS::SDK 1.5.2 onward
* Bug
f
ix: Improved the output of the content_type validator so the actual failure is displayed
* Bug
F
ix: Improved the output of the content_type validator so the actual failure is displayed
* Feature: Animated formats now identified using ImageMagick.
* Feature: AttachmentAdapter now support fetching attachment with specific style.
* Feature: Paperclip default options can now be configured in Rails.configuration.
* Feature: add Geometry#resize_to to calculate dimensions of new source.
* Bug
f
ix: Fixed a bug whereby a file type with multiple mime types but no official type would cause
* Bug
F
ix: Fixed a bug whereby a file type with multiple mime types but no official type would cause
the best_content_type to throw an error on trying nil.content_type.
* Bug
f
ix: Fix problem when the gem cannot be installed on the system that has Asepsis installed.
* Bug
F
ix: Fix problem when the gem cannot be installed on the system that has Asepsis installed.
New in 3.0.4:
...
...
@@ -89,14 +128,14 @@ New in 3.0.4:
New in 3.0.3:
* Bug
f
ix: ThumbnailProcessor now correctly detects and preserve animated GIF.
* Bug
f
ix: File extension is now preserved in generated Tempfile from adapter.
* Bug
f
ix: Uploading file with unicode file name now won't raise an error when
* Bug
F
ix: ThumbnailProcessor now correctly detects and preserve animated GIF.
* Bug
F
ix: File extension is now preserved in generated Tempfile from adapter.
* Bug
F
ix: Uploading file with unicode file name now won't raise an error when
logging in the AWS is turned on.
* Bug
f
ix: Task "paperclip:refresh:missing_styles" now work correctly.
* Bug
f
ix: Handle the case when :restricted_characters is nil.
* Bug
f
ix: Don't delete all the existing styles if we reprocess.
* Bug
f
ix: Content type is now ensured to not having a new line character.
* Bug
F
ix: Task "paperclip:refresh:missing_styles" now work correctly.
* Bug
F
ix: Handle the case when :restricted_characters is nil.
* Bug
F
ix: Don't delete all the existing styles if we reprocess.
* Bug
F
ix: Content type is now ensured to not having a new line character.
* API CHANGE: Non-Rails usage should include Paperclip::Glue directly.
`Paperclip::Railtie` was intended to be used with Ruby on Rails only. If you're
...
...
@@ -105,24 +144,24 @@ New in 3.0.3:
ActiveRecord::Base.send :include, Paperclip::Glue
* Bug
f
ix: AttachmentContentTypeValidator now allow you to specify :allow_blank/:allow_nil
* Bug
f
ix: Make sure content type always a String.
* Bug
f
ix: Fix attachment.reprocess! when using storage providers fog and s3.
* Bug
f
ix: Fix a problem with incorrect content_type detected with 'file' command for an empty file on Mac.
* Bug
F
ix: AttachmentContentTypeValidator now allow you to specify :allow_blank/:allow_nil
* Bug
F
ix: Make sure content type always a String.
* Bug
F
ix: Fix attachment.reprocess! when using storage providers fog and s3.
* Bug
F
ix: Fix a problem with incorrect content_type detected with 'file' command for an empty file on Mac.
New in 3.0.2:
* API CHANGE: Generated migration class name is now plural (AddAttachmentToUsers instead of AddAttachmentToUser)
* API CHANGE: Remove Rails plugin initialization code.
* API CHANGE: Explicitly require Ruby 1.9.2 in the Gemfile.
* Bug
f
ix: Fixes AWS::S3::Errors::RequestTimeout on Model#save.
* Bug
f
ix: Fix a problem when there's no logger specified.
* Bug
f
ix: Fix a problem when attaching Rack::Test::UploadedFile instance.
* Bug
F
ix: Fixes AWS::S3::Errors::RequestTimeout on Model#save.
* Bug
F
ix: Fix a problem when there's no logger specified.
* Bug
F
ix: Fix a problem when attaching Rack::Test::UploadedFile instance.
New in 3.0.1:
* Feature: Introduce Paperlip IO adapter.
* Bug
f
ix: Regression in AttachmentContentTypeValidator has been fixed.
* Bug
F
ix: Regression in AttachmentContentTypeValidator has been fixed.
* API CHANGE: #to_file has been removed. Use the #copy_to_local_file method instead.
New in 3.0.0:
...
...
@@ -139,29 +178,29 @@ New in 3.0.0:
:url => "/system/:attachment/:id/:style/:filename"
* Feature: Adding Rails 3 style validators, and adding `validates_attachment` method as a shorthand.
* Bug
f
ix: Paperclip's rake tasks now loading records in batch.
* Bug
f
ix: Attachment style name with leading number now not raising an error.
* Bug
f
ix: File given to S3 and Fog storage will now be rewinded after flush_write.
* Bug
F
ix: Paperclip's rake tasks now loading records in batch.
* Bug
F
ix: Attachment style name with leading number now not raising an error.
* Bug
F
ix: File given to S3 and Fog storage will now be rewinded after flush_write.
* Feature: You can now pass addional parameter to S3 expiring URL, such as :content_type.
New in 2.7.0:
* Bug
f
ix: Checking the existence of a file on S3 handles all AWS errors.
* Bug
f
ix: Clear the fingerprint when removing an attachment.
* Bug
f
ix: Attachment size validation message reads more nicely now.
* Bug
F
ix: Checking the existence of a file on S3 handles all AWS errors.
* Bug
F
ix: Clear the fingerprint when removing an attachment.
* Bug
F
ix: Attachment size validation message reads more nicely now.
* Feature: Style names can be either symbols or strings.
* Compatibility: Support for ActiveSupport < 2.3.12.
* Compatibility: Support for Rails 3.2.
New in 2.6.0:
* Bug
f
ix: Files are re-wound after reading.
* Bug
F
ix: Files are re-wound after reading.
* Feature: Remove Rails dependency from specs that need Paperclip.
* Feature: Validation matchers support conditionals.
New in 2.5.2:
* Bug
f
ix: Can be installed on Windows.
* Bug
F
ix: Can be installed on Windows.
* Feature: The Fog bucket name, authentication, and host can be determined at runtime via Proc.
* Feature: Special characters are replaced with underscores in #url and #path.
...
...
@@ -174,23 +213,23 @@ New in 2.5.1:
New in 2.5.0:
* Performance: Only connect to S3 when absolutely needed.
* Bug
f
ix: STI with cached classes respect new options.
* Bug
f
ix: conditional validations broke, and now work again.
* Bug
F
ix: STI with cached classes respect new options.
* Bug
F
ix: conditional validations broke, and now work again.
* Feature: URL generation is now parameterized and can be changed with plugins or custom code.
* Feature: :convert_options and :source_file_options to control the ImageMagick processing.
* Performance: String geometry specifications now parse more quickly.
* Bug
f
ix: Handle files with question marks in the filename.
* Bug
f
ix: Don't raise an error when generating an expiring URL on an unassigned attachment.
* Bug
f
ix: The rake task runs over all instances of an ActiveRecord model, ignoring default scopes.
* Bug
F
ix: Handle files with question marks in the filename.
* Bug
F
ix: Don't raise an error when generating an expiring URL on an unassigned attachment.
* Bug
F
ix: The rake task runs over all instances of an ActiveRecord model, ignoring default scopes.
* Feature: DB migration has_attached_file and drop_attached_file methods.
* Bug
f
ix: Switch from AWS::S3 to AWS::SDK for the S3 backend.
* Bug
f
ix: URL generator uses '?' in the URL unless it already appears and there is no prior '='.
* Bug
f
ix: Always convert the content type to a string before stripping blanks.
* Bug
F
ix: Switch from AWS::S3 to AWS::SDK for the S3 backend.
* Bug
F
ix: URL generator uses '?' in the URL unless it already appears and there is no prior '='.
* Bug
F
ix: Always convert the content type to a string before stripping blanks.
* Feature: The :keep_old_files option preserves the files in storage even when the attachment is cleared or changed.
* Performance: Optimize Fog's public_url access by avoiding it when possible.
* Bug
f
ix: Avoid a runtime error when generating the ID partition for an unsaved attachment.
* Bug
F
ix: Avoid a runtime error when generating the ID partition for an unsaved attachment.
* Performance: Do not calculate the fingerprint if it is never persisted.
* Bug
f
ix: Process the :original style before all others, in case of a dependency.
* Bug
F
ix: Process the :original style before all others, in case of a dependency.
* Feature: S3 headers can be set at runtime by passing a proc object as the value.
* Bug
f
ix: Generating missing attachment styles for a model which has had its attachment changed should not raise.
* Bug
f
ix: Do not collide with the built-in Ruby hashing method.
* Bug
F
ix: Generating missing attachment styles for a model which has had its attachment changed should not raise.
* Bug
F
ix: Do not collide with the built-in Ruby hashing method.
lib/paperclip/version.rb
View file @
62264c65
module
Paperclip
VERSION
=
"3.4.
0
"
unless
defined?
Paperclip
::
VERSION
VERSION
=
"3.4.
1
"
unless
defined?
Paperclip
::
VERSION
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment