- 24 Mar, 2016 4 commits
-
-
* `AWS::Core` is an AWS SDK v1 API, we can drop it * We don't use the "I attach a" cucumber step
Tute Costa committed -
Brings back warning on not supported SDK versions. Related: https://github.com/thoughtbot/paperclip/commit/25be0b25d67923e28419c6146e8f8307741a974b#commitcomment-16831800
Tute Costa committed -
We don't support AWS SDK v1 any longer.
Tute Costa committed -
Drops Rails 3 branches. [fixes #2101]
Lucas Caton committed
-
- 23 Mar, 2016 15 commits
-
-
Update example to add mime-types to file extensions
Tute Costa committed -
Remove Rails 3 snippets
Tute Costa committed -
Rails 3 is not supported anymore. We can safely remove mentions and snippets for it. Drop unused variable definition (`options`).
Tute Costa committed -
The old example gives deprecation warnings from recent 2.x versions of mime-types. As of f0bd25ad the Gemfile also allows version 3.0 or newer. The new example should work regardless of the version of the mime-types gem. [skip ci]
Bart de Water committed -
`>= 2.0.34` is the proper restriction. We weren't allowing `2.0.33` before.
Esteban Pastorino committed -
Paperclip 5 no longer supports aws-sdk v1. Having a lot of constraints in one gem dependency caused issues when pushing the gem (ref: https://github.com/rubygems/rubygems/issues/1564). This commit simplifies the dependency restriction to `>= 2.0.33`.
Esteban Pastorino committed -
Pairing with @kitop
Tute Costa committed -
Update NEWS. [fixes #2134] [ci skip]
ycohn committed -
Add Rails master appraisals in preparation for Rails 5
Tute Costa committed -
While working on this branch, Kito found that this test fails due to: https://github.com/rails/rails/commit/6ec8ba16d85d5feaccb993c9756c1edcbbf0ba13#diff-fdcf8b65b5fb954372c6fe1ddf284c78R76 We are not yet sure if it's a bug in paperclip or in Rails itself. With current `ActiveModel::Errors` implementation the following happens: ``` record.errors # => @messages = {} record.errors.include?(:foo) # => false record.errors # => @messages = { :foo => [] } ``` Which bit us in: https://github.com/thoughtbot/paperclip/blob/69f18375333234b6f395300266e2612936bd242e/lib/paperclip/validators/attachment_file_name_validator.rb#L23 Another related Rails commit: https://github.com/rails/rails/commit/b97035df64f5b2f912425c4a7fcb6e6bb3ddab8d I worked around the issue by changing what we assert in this spec. I am still not sure that this is a bug in current Rails master. cc @kitop for review
Tute Costa committed -
Ref: https://github.com/rails/rails/commit/481e49c64f790e46f4aff3ed539ed227d2eb46cb `silence_stream` was deprecated in Rails 4.2 and removed in Rails 5 because it was not thread safe. Paperclip is not running the tests in threaded mode, it's safe to add the method back in a test support module.
Esteban Pastorino 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 -
`bundle exec rails -v` was taking seconds every time, making the test suite run very slow. This changes the code to compare the version against `ActiveRecord::VERSION`, which is going to be the same one as `rails -v`, making it much, much faster. Simplifies condition: we no longer support Rails < 4.2, so we test for `>= "5.0"` or fallback to `4.2` branch.
Esteban Pastorino 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
-
- 12 Mar, 2016 1 commit
-
-
Related with https://github.com/thoughtbot/paperclip/issues/2122 [ci skip]
Tute Costa committed
-
- 26 Feb, 2016 1 commit
-
- 26 Jan, 2016 2 commits
- 16 Jan, 2016 1 commit
-
-
Skip calculating fingerprint when it is not used
Jon Moss 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
-
- 14 Jan, 2016 1 commit
-
-
Modify the Gemfile for testing with mime-types 3
Jon Moss committed
-
- 13 Jan, 2016 2 commits
-
-
- 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.
Austin Ziegler committed -
Relax mimemagic version constraint to ~> 0.3.0
Jon Moss committed
-
- 04 Jan, 2016 1 commit
-
-
Jared Beck committed
-
- 03 Jan, 2016 4 commits
-
-
Updated copyright notices to 2016 [ci skip]
Jon Moss committed -
Atul Bhosale committed
-
Remove unused vars `column_(type|options)` from `remove_attachment` method
Jon Moss committed -
Replace File.exists? with File.exist? in paperclip.gemspec
Jon Moss committed
-
- 02 Jan, 2016 2 commits
-
-
File.exists? is deprecated and produces unecessary warning.
Marek L committed -
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
-
- 23 Dec, 2015 1 commit
-
-
Remove AWS v1 support
Tute Costa committed
-
- 22 Dec, 2015 4 commits
-
-
Tute Costa committed
-
TODO: Simpify lib/paperclip/storage/s3.rb See: * https://github.com/thoughtbot/paperclip/issues/2049
Tute Costa committed -
Removes Rails 3.2 and 4.1 support
Tute Costa committed -
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/ * https://github.com/thoughtbot/paperclip/issues/2049
Tute Costa committed
-