- 23 Mar, 2016 5 commits
-
-
Rails 3 is not supported anymore. We can safely remove mentions and snippets for it. Drop unused variable definition (`options`).
Tute Costa committed -
Update NEWS. [fixes #2134] [ci skip]
ycohn committed -
Ref: https://github.com/rails/rails/commit/2386daabe7f8c979b453010dc0de3e1f6bbf859d Specifically: > Chains of callbacks defined **with** a `:terminator` option will > maintain their existing behavior of halting as soon as a `before_` > callback matches the terminator's expectation. For instance, > ActiveModel's callbacks will still halt the chain when a `before_` > callback returns `false`. In terminator callbacks, the `result` value changed to be a lambda now. This change reflects that, updating the terminator to compare the result of the block to `false`. Also: * Removes Rails 4.1 branch (we don't support it anymore) * Rewrite for legibility: change `unless` for `if`
Tute Costa committed -
- Also bump Travis Ruby 2.2.x version to 2.2.4
maclover7 committed -
We found that uploading large files to S3 would result in a socket error ("connection reset by peer") occasionally and lately much more consistently. In researching this I saw that many people got this error when uploading too large of a file without multipart chunking. I would have assumed fog did this automatically but the default chunk size may be too high. In order to address this I wanted to drop the chunk size to 100MB. Rather than hard-code this I opted to expose a `fog_option` configuration option that lets me pass any additional options I want to the fog's `#create` call. This is similar to the `fog_attributes` option implemented in CarrierWave which [addresses the same problem](http://stackoverflow.com/a/11867978/201911). We've been running this now for a week in production and it seems to resolve the issue. https://github.com/thoughtbot/paperclip/pull/2135
Jeremy Wadsack committed
-
- 15 Jan, 2016 1 commit
-
-
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.
Matt Brictson committed
-
- 02 Jan, 2016 1 commit
-
-
These variables were introduced in: https://github.com/thoughtbot/paperclip/commit/6ea7c26512434a but their usage were canceled in: https://github.com/thoughtbot/paperclip/commit/c740fb171fe
Marek L committed
-
- 22 Dec, 2015 1 commit
-
-
Tute Costa committed
-
- 02 Dec, 2015 2 commits
-
-
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.
Tute Costa committed -
Andy Stewart committed
-
- 21 Nov, 2015 1 commit
-
-
Airton Sampaio de Sobral committed
-
- 19 Nov, 2015 1 commit
-
-
Dave Gynn committed
-
- 15 Nov, 2015 7 commits
-
-
Dave Gynn committed
-
the name string is used multiple times in interpolation so storing it reduces object creation
Dave Gynn committed -
Dave Gynn committed
-
this commit primarily uses frozen strings to reduce object creation during interpolation. the :basename method now uses File.basename(file, ".*") rather than a Regexp. basename may be called multiple times.
Dave Gynn committed -
by using the attachment name (symbol) and Class as keys we reduce the number of Strings created before hitting the cache
Dave Gynn committed -
Dave Gynn committed
-
Dave Gynn committed
-
- 12 Nov, 2015 1 commit
-
-
Alex Gusev committed
-
- 10 Nov, 2015 1 commit
-
-
Andy Stewart committed
-
- 23 Oct, 2015 1 commit
-
-
* Regression fix * Add specs for intermediate_files var in Paperclip::Attachment [fixes #1908]
Tieg Zaharia committed
-
- 09 Oct, 2015 1 commit
-
-
Before the error message was sometimes millions of characters long. > [paperclip] Content Type Spoof: Filename a.csv > (application/octet-stream from Headers, > [#<MIME::Type::Columnar:0x007f9f90f89fa8 > @container=#<MIME::Types:0x007f9f90b09d98 ... snip millions of > characters of output here ...>], @content_type="text/csv", > @raw_media_type="text", @raw_sub_type="csv", @simplified="text/csv", > @i18n_key="text.csv", @media_type="text", @sub_type="csv", > @extensions=["csv"]>] from Extension), content type discovered from > file command: application/zip. See documentation to allow this > combination. Now becomes: > [paperclip] Content Type Spoof: Filename a.csv > (application/octet-stream from Headers, > ["text/comma-separated-values", "text/csv"] from Extension), content > type discovered from file command: application/zip. See documentation > to allow this combination. [fixes #2017]
Andy Hartford committed
-
- 10 Sep, 2015 2 commits
-
-
Removes note for running paperclip in EOL'd version of Rails (2.3).
Tute Costa committed -
Removes `column_type` and `column_options` so that it works well in both versions. Backcported from master, to release a patch version with this bugfix. [closes #1947]
Andrew Hubbs committed
-
- 09 Sep, 2015 3 commits
-
-
Mehmet Cetin committed
-
Mehmet Cetin committed
-
[fixes #1977]
Anshul Sharma committed
-
- 01 Sep, 2015 4 commits
-
-
Isaac Betesh committed
-
Isaac Betesh committed
-
Isaac Betesh committed
-
Isaac Betesh committed
-
- 27 Aug, 2015 4 commits
-
-
Arjun Anand committed
-
Arjun Anand committed
-
Stefano B committed
-
Stefano B committed
-
- 24 Aug, 2015 1 commit
-
-
Removes `column_type` and `column_options` so that it works well in both versions. [closes #1947]
Andrew Hubbs committed
-
- 21 Aug, 2015 1 commit
-
- 20 Aug, 2015 2 commits
-
-
Jon Yurek committed
-
David Chen committed
-