Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull regions from styles #1

Open
wants to merge 44 commits into
base: master
Choose a base branch
from

Conversation

mmangino
Copy link

This makes a change to allow specifying bucket and region per style in the s3 storage class

tonidas and others added 30 commits November 21, 2015 17:10
Remove duplication by reusing existing method.
Fix condition to include Schema, using 'ActiveRecord::Base' instead o…
Extract another repository only concerned with locales:
https://github.com/thoughtbot/paperclip-i18n

A user of paperclip might choose to add `paperclip-i18n` as a dependency
for their application, or copy over the related locale file into their
project.

This is a first step in splitting some parts of the codebase into other
projects. Simple and relevant contributions like new translations might
get lost in the shuffle of dozens of PRs awaiting for approval, that
take time to review and merge.

Locales are a simple enough problem to be handled in an external
repository, where tests for consistency across translations run in less
than a second, and PRs can almost trivially be merged in.
In preparation for Rails 5, which, when it is released, will make Rails
3.2 and 4.1 unsupported.

See:

* http://weblog.rubyonrails.org/2015/12/18/Rails-5-0-beta1/
* thoughtbot#2049
…ted-rails

Removes Rails 3.2 and 4.1 support
TODO: Simpify lib/paperclip/storage/s3.rb

See:

* thoughtbot#2049
…ethod

These variables were introduced in:
thoughtbot@6ea7c26512434a
but their usage were canceled in:
thoughtbot@c740fb171fe
File.exists? is deprecated and produces unecessary warning.
Replace File.exists? with File.exist? in paperclip.gemspec
Remove unused vars `column_(type|options)` from `remove_attachment` method
Updated copyright notices to 2016 [ci skip]
Relax mimemagic version constraint to ~> 0.3.0
-   Also modify the appraisals to be more flexibly specified.
-   The specs are '>= 1.16' and '< 4.0' because the major versions of
    mime-types have steadily restricted the supported versions of Ruby at a
    different rate than Rails. The Appraisal for Rails 5 can be specified as
    either '>= 2.0, '< 4.0' or '~> 3.0' depending on how other gems restrict
    mime-types versions.

    -   mime-types 1.x supports any version of Ruby, but no longer receives any
        updates (it hit EOL on 27 October 2015).
    -   mime-types 2.x supports Ruby >= 1.9.2, but will only receive security
        and data updates until 21 November 2017.
    -   mime-types 3.x supports Ruby >= 2.0 and is the active development
        version of mime-types.

-   The APIs that paperclip uses are compatible between all three versions of
    mime-types.
Modify the Gemfile for testing with mime-types 3
The MD5 sum of an attachment is only necessary if the model has a corresponding
_fingerprint column. If this column is absent, there is no need to calculate the
MD5, which can be an expensive operation for large files.

Accomplish this by deferring the fingerprint calculation using a block. If the
_fingerprint column is absent, the block is never called, and the calculation
is avoided.
Skip calculating fingerprint when it is not used
Remove attr_protected related specs (was removed in rails 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.