kt-paperclip 4.4.0 → 5.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +17 -0
- data/.hound.yml +5 -16
- data/.travis.yml +15 -12
- data/Appraisals +4 -8
- data/CONTRIBUTING.md +16 -5
- data/Gemfile +3 -8
- data/LICENSE +1 -1
- data/NEWS +105 -31
- data/README.md +239 -153
- data/Rakefile +1 -1
- data/UPGRADING +12 -9
- data/features/basic_integration.feature +3 -2
- data/features/migration.feature +0 -24
- data/features/step_definitions/attachment_steps.rb +6 -6
- data/features/step_definitions/rails_steps.rb +29 -28
- data/features/step_definitions/s3_steps.rb +2 -2
- data/features/support/env.rb +1 -0
- data/features/support/paths.rb +1 -1
- data/features/support/rails.rb +0 -24
- data/gemfiles/4.2.gemfile +3 -5
- data/gemfiles/{3.2.gemfile → 5.0.gemfile} +4 -6
- data/lib/generators/paperclip/paperclip_generator.rb +9 -1
- data/lib/generators/paperclip/templates/paperclip_migration.rb.erb +1 -1
- data/lib/paperclip/attachment.rb +25 -14
- data/lib/paperclip/attachment_registry.rb +2 -1
- data/lib/paperclip/callbacks.rb +8 -6
- data/lib/paperclip/content_type_detector.rb +3 -2
- data/lib/paperclip/errors.rb +3 -1
- data/lib/paperclip/file_command_content_type_detector.rb +1 -1
- data/lib/paperclip/geometry_detector_factory.rb +2 -2
- data/lib/paperclip/glue.rb +1 -1
- data/lib/paperclip/has_attached_file.rb +7 -1
- data/lib/paperclip/helpers.rb +15 -11
- data/lib/paperclip/interpolations.rb +1 -1
- data/lib/paperclip/io_adapters/abstract_adapter.rb +29 -3
- data/lib/paperclip/io_adapters/attachment_adapter.rb +10 -5
- data/lib/paperclip/io_adapters/data_uri_adapter.rb +8 -8
- data/lib/paperclip/io_adapters/empty_string_adapter.rb +5 -4
- data/lib/paperclip/io_adapters/file_adapter.rb +12 -6
- data/lib/paperclip/io_adapters/http_url_proxy_adapter.rb +7 -7
- data/lib/paperclip/io_adapters/identity_adapter.rb +12 -6
- data/lib/paperclip/io_adapters/nil_adapter.rb +8 -5
- data/lib/paperclip/io_adapters/registry.rb +6 -2
- data/lib/paperclip/io_adapters/stringio_adapter.rb +9 -6
- data/lib/paperclip/io_adapters/uploaded_file_adapter.rb +10 -6
- data/lib/paperclip/io_adapters/uri_adapter.rb +17 -14
- data/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +4 -4
- data/lib/paperclip/media_type_spoof_detector.rb +3 -2
- data/lib/paperclip/processor.rb +5 -4
- data/lib/paperclip/schema.rb +4 -10
- data/lib/paperclip/storage/filesystem.rb +13 -2
- data/lib/paperclip/storage/fog.rb +19 -13
- data/lib/paperclip/storage/s3.rb +87 -58
- data/lib/paperclip/thumbnail.rb +18 -8
- data/lib/paperclip/url_generator.rb +18 -14
- data/lib/paperclip/validators/attachment_size_validator.rb +1 -7
- data/lib/paperclip/validators.rb +1 -1
- data/lib/paperclip/version.rb +3 -1
- data/lib/paperclip.rb +13 -12
- data/lib/tasks/paperclip.rake +18 -4
- data/paperclip.gemspec +13 -11
- data/spec/paperclip/attachment_processing_spec.rb +2 -4
- data/spec/paperclip/attachment_registry_spec.rb +28 -0
- data/spec/paperclip/attachment_spec.rb +72 -18
- data/spec/paperclip/content_type_detector_spec.rb +1 -1
- data/spec/paperclip/file_command_content_type_detector_spec.rb +15 -1
- data/spec/paperclip/has_attached_file_spec.rb +24 -8
- data/spec/paperclip/integration_spec.rb +4 -3
- data/spec/paperclip/io_adapters/abstract_adapter_spec.rb +76 -22
- data/spec/paperclip/io_adapters/attachment_adapter_spec.rb +6 -3
- data/spec/paperclip/io_adapters/data_uri_adapter_spec.rb +7 -1
- data/spec/paperclip/io_adapters/file_adapter_spec.rb +2 -2
- data/spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb +18 -1
- data/spec/paperclip/io_adapters/identity_adapter_spec.rb +1 -1
- data/spec/paperclip/io_adapters/registry_spec.rb +2 -2
- data/spec/paperclip/io_adapters/stringio_adapter_spec.rb +1 -1
- data/spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb +5 -5
- data/spec/paperclip/io_adapters/uri_adapter_spec.rb +48 -3
- data/spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb +10 -0
- data/spec/paperclip/media_type_spoof_detector_spec.rb +15 -0
- data/spec/paperclip/paperclip_spec.rb +15 -45
- data/spec/paperclip/processor_spec.rb +4 -4
- data/spec/paperclip/storage/fog_spec.rb +26 -0
- data/spec/paperclip/storage/s3_live_spec.rb +20 -14
- data/spec/paperclip/storage/s3_spec.rb +357 -190
- data/spec/paperclip/tempfile_spec.rb +35 -0
- data/spec/paperclip/thumbnail_spec.rb +38 -35
- data/spec/paperclip/url_generator_spec.rb +53 -42
- data/spec/paperclip/validators/attachment_size_validator_spec.rb +26 -20
- data/spec/paperclip/validators_spec.rb +5 -5
- data/spec/spec_helper.rb +6 -2
- data/spec/support/assertions.rb +12 -1
- data/spec/support/conditional_filter_helper.rb +5 -0
- data/spec/support/mock_attachment.rb +2 -0
- data/spec/support/mock_url_generator_builder.rb +2 -2
- data/spec/support/model_reconstruction.rb +10 -2
- data/spec/support/reporting.rb +11 -0
- metadata +69 -75
- data/cucumber/paperclip_steps.rb +0 -6
- data/gemfiles/4.1.gemfile +0 -19
- data/lib/paperclip/deprecations.rb +0 -42
- data/lib/paperclip/locales/de.yml +0 -18
- data/lib/paperclip/locales/es.yml +0 -18
- data/lib/paperclip/locales/ja.yml +0 -18
- data/lib/paperclip/locales/pt-BR.yml +0 -18
- data/lib/paperclip/locales/zh-CN.yml +0 -18
- data/lib/paperclip/locales/zh-HK.yml +0 -18
- data/lib/paperclip/locales/zh-TW.yml +0 -18
- data/spec/paperclip/deprecations_spec.rb +0 -65
- data/spec/support/deprecations.rb +0 -9
- data/spec/support/rails_helpers.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c43af20e1568a3caee7670d68c39e71f86a0b0342fdaaf0acb7b6ae81204a731
|
4
|
+
data.tar.gz: 781342013a902bb2d1d21f805680418eb61f8976b20793f5eaedb86fdfdeb74a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02b011a01c730ef79202a87367d778fde59ae39584465fd63981905890e550bf86718a028bce46a6cb6826324b2f37f78a19e73402428b771922b70cc0180a5a
|
7
|
+
data.tar.gz: 17cc690b1c20421a3b35b395eda2076235e70962b6f4cc10855285c6e268ad4a7bdc92e6212a660bc01d9945e9ae60496c6e3bb34c9bfd37546195cc4cfa3d24
|
data/.codeclimate.yml
ADDED
data/.hound.yml
CHANGED
@@ -20,7 +20,8 @@ AllCops:
|
|
20
20
|
- "db/schema.rb"
|
21
21
|
- 'vendor/**/*'
|
22
22
|
- 'gemfiles/vendor/**/*'
|
23
|
-
|
23
|
+
Rails:
|
24
|
+
Enabled: false
|
24
25
|
DisplayCopNames: false
|
25
26
|
StyleGuideCopsOnly: false
|
26
27
|
Style/AccessModifierIndentation:
|
@@ -434,7 +435,7 @@ Style/TrailingBlankLines:
|
|
434
435
|
SupportedStyles:
|
435
436
|
- final_newline
|
436
437
|
- final_blank_line
|
437
|
-
Style/
|
438
|
+
Style/TrailingCommaInLiteral:
|
438
439
|
Description: Checks for trailing comma in parameter lists and literals.
|
439
440
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
|
440
441
|
Enabled: false
|
@@ -560,11 +561,6 @@ Rails/ActionFilter:
|
|
560
561
|
- filter
|
561
562
|
Include:
|
562
563
|
- app/controllers/**/*.rb
|
563
|
-
Rails/DefaultScope:
|
564
|
-
Description: Checks if the argument passed to default_scope is a block.
|
565
|
-
Enabled: true
|
566
|
-
Include:
|
567
|
-
- app/models/**/*.rb
|
568
564
|
Rails/HasAndBelongsToMany:
|
569
565
|
Description: Prefer has_many :through to has_and_belongs_to_many.
|
570
566
|
Enabled: true
|
@@ -685,10 +681,6 @@ Style/DefWithParentheses:
|
|
685
681
|
Description: Use def with parentheses when there are arguments.
|
686
682
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
|
687
683
|
Enabled: true
|
688
|
-
Style/DeprecatedHashMethods:
|
689
|
-
Description: Checks for use of deprecated Hash methods.
|
690
|
-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
|
691
|
-
Enabled: false
|
692
684
|
Style/Documentation:
|
693
685
|
Description: Document classes and non-namespace modules.
|
694
686
|
Enabled: false
|
@@ -840,7 +832,7 @@ Style/SelfAssignment:
|
|
840
832
|
used.
|
841
833
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
|
842
834
|
Enabled: false
|
843
|
-
Style/
|
835
|
+
Style/SpaceBeforeFirstArg:
|
844
836
|
Description: Checks that exactly one space is used between a method name and the
|
845
837
|
first argument for method calls without parentheses.
|
846
838
|
Enabled: true
|
@@ -852,7 +844,7 @@ Style/SpaceAfterComma:
|
|
852
844
|
Description: Use spaces after commas.
|
853
845
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
|
854
846
|
Enabled: true
|
855
|
-
Style/
|
847
|
+
Style/SpaceAroundKeyword:
|
856
848
|
Description: Use spaces after if/elsif/unless/while/until/case/when.
|
857
849
|
Enabled: true
|
858
850
|
Style/SpaceAfterMethodName:
|
@@ -881,9 +873,6 @@ Style/SpaceAroundOperators:
|
|
881
873
|
Description: Use spaces around operators.
|
882
874
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
|
883
875
|
Enabled: true
|
884
|
-
Style/SpaceBeforeModifierKeyword:
|
885
|
-
Description: Put a space before the modifier keyword.
|
886
|
-
Enabled: true
|
887
876
|
Style/SpaceInsideBrackets:
|
888
877
|
Description: No spaces after [ or before ].
|
889
878
|
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
|
data/.travis.yml
CHANGED
@@ -1,23 +1,26 @@
|
|
1
|
+
language: ruby
|
2
|
+
sudo: false
|
3
|
+
|
1
4
|
rvm:
|
2
|
-
- 2.0
|
3
5
|
- 2.1
|
4
|
-
- 2.2
|
5
|
-
-
|
6
|
-
-
|
6
|
+
- 2.2
|
7
|
+
- 2.3
|
8
|
+
- 2.4
|
7
9
|
- 2.7
|
8
10
|
|
9
11
|
script: "bundle exec rake clean spec cucumber"
|
10
12
|
|
13
|
+
addons:
|
14
|
+
apt:
|
15
|
+
packages:
|
16
|
+
- ghostscript
|
17
|
+
|
11
18
|
gemfile:
|
12
|
-
- gemfiles/3.2.gemfile
|
13
|
-
- gemfiles/4.1.gemfile
|
14
19
|
- gemfiles/4.2.gemfile
|
20
|
+
- gemfiles/5.0.gemfile
|
15
21
|
|
16
22
|
matrix:
|
17
23
|
fast_finish: true
|
18
|
-
|
19
|
-
-
|
20
|
-
|
21
|
-
|
22
|
-
sudo: false
|
23
|
-
cache: bundler
|
24
|
+
exclude:
|
25
|
+
- gemfile: gemfiles/5.0.gemfile
|
26
|
+
rvm: 2.1
|
data/Appraisals
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -1,20 +1,31 @@
|
|
1
1
|
Contributing
|
2
2
|
============
|
3
3
|
|
4
|
-
We love pull requests.
|
4
|
+
We love pull requests from everyone. By participating in this project, you agree
|
5
|
+
to abide by the thoughtbot [code of conduct].
|
6
|
+
|
7
|
+
[code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
|
8
|
+
|
9
|
+
Here's a quick guide for contributing:
|
5
10
|
|
6
11
|
1. Fork the repo.
|
7
12
|
|
8
|
-
|
13
|
+
1. Make sure you have ImageMagick and Ghostscript installed. See [this section]
|
14
|
+
(./README.md#image-processor) of the README.
|
15
|
+
|
16
|
+
1. Run the tests. We only take pull requests with passing tests, and it's great
|
9
17
|
to know that you have a clean slate: `bundle && bundle exec rake`
|
10
18
|
|
11
|
-
|
19
|
+
1. Add a test for your change. Only refactoring and documentation changes
|
12
20
|
require no new tests. If you are adding functionality or fixing a bug, we need
|
13
21
|
a test!
|
14
22
|
|
15
|
-
|
23
|
+
1. Make the test pass.
|
24
|
+
|
25
|
+
1. Mention how your changes affect the project to other developers and users in
|
26
|
+
the `NEWS.md` file.
|
16
27
|
|
17
|
-
|
28
|
+
1. Push to your fork and submit a pull request.
|
18
29
|
|
19
30
|
At this point you're waiting on us. We like to at least comment on, if not
|
20
31
|
accept, pull requests within seven business days (most of the work on Paperclip
|
data/Gemfile
CHANGED
@@ -3,19 +3,14 @@ source "https://rubygems.org"
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
gem 'sqlite3', '~> 1.3.8', :platforms => :ruby
|
6
|
-
|
7
|
-
gem 'jruby-openssl', :platforms => :jruby
|
8
|
-
gem 'activerecord-jdbcsqlite3-adapter', :platforms => :jruby
|
9
|
-
|
10
|
-
gem 'rubysl', :platforms => :rbx
|
11
|
-
gem 'racc', :platforms => :rbx
|
12
|
-
|
13
6
|
gem 'pry'
|
14
7
|
|
15
8
|
# Hinting at development dependencies
|
16
9
|
# Prevents bundler from taking a long-time to resolve
|
17
10
|
group :development, :test do
|
18
|
-
gem '
|
11
|
+
gem 'activerecord-import'
|
12
|
+
gem 'mime-types'
|
19
13
|
gem 'builder'
|
20
14
|
gem 'rubocop', require: false
|
15
|
+
gem 'rspec'
|
21
16
|
end
|
data/LICENSE
CHANGED
@@ -3,7 +3,7 @@ LICENSE
|
|
3
3
|
|
4
4
|
The MIT License
|
5
5
|
|
6
|
-
Copyright (c) 2008-
|
6
|
+
Copyright (c) 2008-2016 Jon Yurek and thoughtbot, inc.
|
7
7
|
|
8
8
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
9
9
|
of this software and associated documentation files (the "Software"), to deal
|
data/NEWS
CHANGED
@@ -1,39 +1,113 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
*
|
4
|
-
* Improvement:
|
5
|
-
* Improvement:
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
*
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
*
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
*
|
18
|
-
|
19
|
-
|
1
|
+
5.3.0 (2018-03-09):
|
2
|
+
|
3
|
+
* Improvement: Use `FactoryBot` instead of `FactoryGirl` (https://github.com/thoughtbot/paperclip/pull/2501)
|
4
|
+
* Improvement: README updates (https://github.com/thoughtbot/paperclip/pull/2411, https://github.com/thoughtbot/paperclip/pull/2433, https://github.com/thoughtbot/paperclip/pull/2374, https://github.com/thoughtbot/paperclip/pull/2417, https://github.com/thoughtbot/paperclip/pull/2536)
|
5
|
+
* Improvement: Remove Ruby 2.4 deprecation warning (https://github.com/thoughtbot/paperclip/pull/2401)
|
6
|
+
* Improvement: Rails 5 migration compatibility (https://github.com/thoughtbot/paperclip/pull/2470)
|
7
|
+
* Improvement: Documentation around post processing (https://github.com/thoughtbot/paperclip/pull/2381)
|
8
|
+
* Improvement: S3 hostname example documentation (https://github.com/thoughtbot/paperclip/pull/2379)
|
9
|
+
* Bugfix: Allow paperclip to load in IRB (https://github.com/thoughtbot/paperclip/pull/2369)
|
10
|
+
* Bugfix: MIME type detection (https://github.com/thoughtbot/paperclip/issues/2527)
|
11
|
+
* Bugfix: Bad tempfile state after symlink failure (https://github.com/thoughtbot/paperclip/pull/2540)
|
12
|
+
* Bugfix: Rewind file after Fog bucket creation (https://github.com/thoughtbot/paperclip/pull/2572)
|
13
|
+
* Improvement: Use `Terrapin` instead of `Cocaine` (https://github.com/thoughtbot/paperclip/pull/2553)
|
14
|
+
|
15
|
+
5.2.1 (2018-01-25):
|
16
|
+
|
17
|
+
* Bugfix: Fix copying files on Windows. (#2532)
|
18
|
+
|
19
|
+
5.2.0 (2018-01-23):
|
20
|
+
|
21
|
+
* Security: Remove the automatic loading of URI adapters. Some of these
|
22
|
+
adapters can be specially crafted to expose your network topology. (#2435)
|
23
|
+
* Bugfix: The rake task no longer rescues `Exception`. (#2476)
|
24
|
+
* Bugfix: Handle malformed `Content-Disposition` headers (#2283)
|
25
|
+
* Bugfix: The `:only_process` option works when passed a lambda again. (#2289)
|
26
|
+
* Improvement: Added `:use_accelerate_endpoint` option when using S3 to enable
|
27
|
+
[Amazon S3 Transfer Acceleration](http://docs.aws.amazon.com/AmazonS3/latest/dev/transfer-acceleration.html)
|
28
|
+
(#2291)
|
29
|
+
* Improvement: Make the fingerprint digest configurable per attachment. The
|
30
|
+
default remains MD5. Making this configurable means it can change in a future
|
31
|
+
version because it is not considered secure anymore against intentional file
|
32
|
+
corruption. For more info, see https://en.wikipedia.org/wiki/MD5#Security
|
33
|
+
|
34
|
+
You can change the digest used for an attachment by adding the
|
35
|
+
`:adapter_options` parameter to the `has_attached_file` options like this:
|
36
|
+
`has_attached_file :avatar, adapter_options: { hash_digest: Digest::SHA256 }`
|
37
|
+
|
38
|
+
Use the rake task to regenerate fingerprints with the new digest for a given
|
39
|
+
class. Note that this does **not** check the file integrity using the old
|
40
|
+
fingerprint. Run the following command to regenerate fingerprints for all
|
41
|
+
User attachments:
|
42
|
+
`CLASS=User rake paperclip:refresh:fingerprints`
|
43
|
+
You can optionally limit the attachment that will be processed, e.g:
|
44
|
+
`CLASS=User ATTACHMENT=avatar rake paperclip:refresh:fingerprints` (#2229)
|
45
|
+
* Improvement: The new `frame_index` option on the thumbnail processor allows
|
46
|
+
you to select a specific frame from an animated upload to use as a thumbnail.
|
47
|
+
Initial support is for mkv, avi, MP4, mov, MPEG, and GIF. (#2155)
|
48
|
+
* Improvement: Instead of copying files, use hard links. This is an
|
49
|
+
optimization. (#2120)
|
50
|
+
* Improvement: S3 storage option `:s3_prefixes_in_alias`. (#2287)
|
51
|
+
* Improvement: Fog option `:fog_public` can be a lambda. (#2302)
|
52
|
+
* Improvement: One fewer warning on JRuby. (#2352)
|
53
|
+
* Ruby 2.4.0 compatibility (doesn't use Fixnum anymore)
|
54
|
+
|
55
|
+
5.1.0 (2016-08-19):
|
56
|
+
|
57
|
+
* Add default `content_type_detector` to `UploadedFileAdapter` (#2270)
|
58
|
+
* Default S3 protocol to empty string (#2038)
|
59
|
+
* Don't write original file if it wasn't reprocessed (#1993)
|
60
|
+
* Disallow trailing newlines in regular expressions (#2266)
|
61
|
+
* Support for readbyte in Paperclip attachments (#2034)
|
62
|
+
* (port from 4.3) Uri io adapter uses the content-disposition filename (#2250)
|
63
|
+
* General refactors and documentation improvements
|
64
|
+
|
65
|
+
5.0.0 (2016-07-01):
|
66
|
+
|
67
|
+
* Improvement: Add `read_timeout` configuration for URI Adapter download_content method.
|
68
|
+
* README adjustments for Ruby beginners (add links, elucidate model in Quick Start)
|
69
|
+
* Bugfix: Now it's possible to save images from URLs with special characters [#1932]
|
70
|
+
* Bugfix: Return false when file to copy is not present in cloud storage [#2173]
|
71
|
+
* Automatically close file while checking mime type [#2016]
|
72
|
+
* Add `read_timeout` option to `UriAdapter#download_content` method [#2232]
|
73
|
+
* Fix a nil error in content type validation matcher [#1910]
|
74
|
+
* Documentation improvements
|
75
|
+
|
76
|
+
5.0.0.beta2 (2016-04-01):
|
77
|
+
|
78
|
+
* Bugfix: Dynamic fog directory option is now respected
|
79
|
+
* Bugfix: Fixes cocaine duplicated paths [#2169]
|
80
|
+
* Removal of dead code (older versions of Rails and AWS SDK)
|
81
|
+
* README adjustments
|
20
82
|
|
21
|
-
|
83
|
+
5.0.0.beta1 (2016-03-13):
|
22
84
|
|
23
|
-
|
85
|
+
* Bug Fix: megabytes of mime-types info in logs when a spoofed media type is detected.
|
86
|
+
* Drop support to end-of-life'd ruby 2.0.
|
87
|
+
* Drop support for end-of-life'd Rails 3.2 and 4.1
|
88
|
+
* Drop support for AWS v1
|
89
|
+
* Remove tests for JRuby and Rubinius from Travis CI (they were failing)
|
90
|
+
* Improvement: Add `fog_options` configuration to send options to fog when
|
91
|
+
storing files.
|
92
|
+
* Extracted repository for locales only: https://github.com/thoughtbot/paperclip-i18n
|
93
|
+
* Bugfix: Original file could be unlinked during `post_process_style`, producing failures
|
94
|
+
* Bugfix for image magick scaling images up
|
95
|
+
* Memory consumption improvements
|
96
|
+
* `url` on a unpersisted record returns `default_url` rather than `nil`
|
97
|
+
* Improvement: aws-sdk v2 support
|
98
|
+
https://github.com/thoughtbot/paperclip/pull/1903
|
24
99
|
|
25
|
-
|
100
|
+
If your Gemfile contains aws-sdk (>= 2.0.0) and aws-sdk-v1, paperclip will use
|
101
|
+
aws-sdk v2. With aws-sdk v2, S3 storage requires you to set the s3_region.
|
102
|
+
s3_region may be nested in s3_credentials, and (if not nested in
|
103
|
+
s3_credentials) it may be a Proc.
|
26
104
|
|
27
|
-
4.3
|
105
|
+
4.3
|
28
106
|
|
29
|
-
|
30
|
-
|
31
|
-
* Fix GeometryParser regex for usage of '@>' flag
|
32
|
-
* `url` on a unpersisted record returns default_url
|
33
|
-
* spec deprecation warnings and failures
|
34
|
-
* README adjustments
|
107
|
+
See patch versions in v4.3 NEWS:
|
108
|
+
https://github.com/thoughtbot/paperclip/blob/v4.3/NEWS
|
35
109
|
|
36
|
-
4.3.0 (
|
110
|
+
4.3.0 (2015-06-18):
|
37
111
|
|
38
112
|
* Improvement: Update aws-sdk and cucumber gem versions.
|
39
113
|
* Improvement: Add `length` alias for `size` method in AbstractAdapter.
|
@@ -46,7 +120,7 @@
|
|
46
120
|
* Ruby Versioning: Drop support for 1.9.3 (EOL'ed)
|
47
121
|
* Rails Versioning: Drop support for 4.0.0 (EOL'ed)
|
48
122
|
|
49
|
-
4.2.4:
|
123
|
+
4.2.4 (2015-06-05):
|
50
124
|
|
51
125
|
* Rollback backwards incompatible change, allowing paperclip to run on
|
52
126
|
Ruby >= 1.9.2.
|