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.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +17 -0
  3. data/.hound.yml +5 -16
  4. data/.travis.yml +15 -12
  5. data/Appraisals +4 -8
  6. data/CONTRIBUTING.md +16 -5
  7. data/Gemfile +3 -8
  8. data/LICENSE +1 -1
  9. data/NEWS +105 -31
  10. data/README.md +239 -153
  11. data/Rakefile +1 -1
  12. data/UPGRADING +12 -9
  13. data/features/basic_integration.feature +3 -2
  14. data/features/migration.feature +0 -24
  15. data/features/step_definitions/attachment_steps.rb +6 -6
  16. data/features/step_definitions/rails_steps.rb +29 -28
  17. data/features/step_definitions/s3_steps.rb +2 -2
  18. data/features/support/env.rb +1 -0
  19. data/features/support/paths.rb +1 -1
  20. data/features/support/rails.rb +0 -24
  21. data/gemfiles/4.2.gemfile +3 -5
  22. data/gemfiles/{3.2.gemfile → 5.0.gemfile} +4 -6
  23. data/lib/generators/paperclip/paperclip_generator.rb +9 -1
  24. data/lib/generators/paperclip/templates/paperclip_migration.rb.erb +1 -1
  25. data/lib/paperclip/attachment.rb +25 -14
  26. data/lib/paperclip/attachment_registry.rb +2 -1
  27. data/lib/paperclip/callbacks.rb +8 -6
  28. data/lib/paperclip/content_type_detector.rb +3 -2
  29. data/lib/paperclip/errors.rb +3 -1
  30. data/lib/paperclip/file_command_content_type_detector.rb +1 -1
  31. data/lib/paperclip/geometry_detector_factory.rb +2 -2
  32. data/lib/paperclip/glue.rb +1 -1
  33. data/lib/paperclip/has_attached_file.rb +7 -1
  34. data/lib/paperclip/helpers.rb +15 -11
  35. data/lib/paperclip/interpolations.rb +1 -1
  36. data/lib/paperclip/io_adapters/abstract_adapter.rb +29 -3
  37. data/lib/paperclip/io_adapters/attachment_adapter.rb +10 -5
  38. data/lib/paperclip/io_adapters/data_uri_adapter.rb +8 -8
  39. data/lib/paperclip/io_adapters/empty_string_adapter.rb +5 -4
  40. data/lib/paperclip/io_adapters/file_adapter.rb +12 -6
  41. data/lib/paperclip/io_adapters/http_url_proxy_adapter.rb +7 -7
  42. data/lib/paperclip/io_adapters/identity_adapter.rb +12 -6
  43. data/lib/paperclip/io_adapters/nil_adapter.rb +8 -5
  44. data/lib/paperclip/io_adapters/registry.rb +6 -2
  45. data/lib/paperclip/io_adapters/stringio_adapter.rb +9 -6
  46. data/lib/paperclip/io_adapters/uploaded_file_adapter.rb +10 -6
  47. data/lib/paperclip/io_adapters/uri_adapter.rb +17 -14
  48. data/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +4 -4
  49. data/lib/paperclip/media_type_spoof_detector.rb +3 -2
  50. data/lib/paperclip/processor.rb +5 -4
  51. data/lib/paperclip/schema.rb +4 -10
  52. data/lib/paperclip/storage/filesystem.rb +13 -2
  53. data/lib/paperclip/storage/fog.rb +19 -13
  54. data/lib/paperclip/storage/s3.rb +87 -58
  55. data/lib/paperclip/thumbnail.rb +18 -8
  56. data/lib/paperclip/url_generator.rb +18 -14
  57. data/lib/paperclip/validators/attachment_size_validator.rb +1 -7
  58. data/lib/paperclip/validators.rb +1 -1
  59. data/lib/paperclip/version.rb +3 -1
  60. data/lib/paperclip.rb +13 -12
  61. data/lib/tasks/paperclip.rake +18 -4
  62. data/paperclip.gemspec +13 -11
  63. data/spec/paperclip/attachment_processing_spec.rb +2 -4
  64. data/spec/paperclip/attachment_registry_spec.rb +28 -0
  65. data/spec/paperclip/attachment_spec.rb +72 -18
  66. data/spec/paperclip/content_type_detector_spec.rb +1 -1
  67. data/spec/paperclip/file_command_content_type_detector_spec.rb +15 -1
  68. data/spec/paperclip/has_attached_file_spec.rb +24 -8
  69. data/spec/paperclip/integration_spec.rb +4 -3
  70. data/spec/paperclip/io_adapters/abstract_adapter_spec.rb +76 -22
  71. data/spec/paperclip/io_adapters/attachment_adapter_spec.rb +6 -3
  72. data/spec/paperclip/io_adapters/data_uri_adapter_spec.rb +7 -1
  73. data/spec/paperclip/io_adapters/file_adapter_spec.rb +2 -2
  74. data/spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb +18 -1
  75. data/spec/paperclip/io_adapters/identity_adapter_spec.rb +1 -1
  76. data/spec/paperclip/io_adapters/registry_spec.rb +2 -2
  77. data/spec/paperclip/io_adapters/stringio_adapter_spec.rb +1 -1
  78. data/spec/paperclip/io_adapters/uploaded_file_adapter_spec.rb +5 -5
  79. data/spec/paperclip/io_adapters/uri_adapter_spec.rb +48 -3
  80. data/spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb +10 -0
  81. data/spec/paperclip/media_type_spoof_detector_spec.rb +15 -0
  82. data/spec/paperclip/paperclip_spec.rb +15 -45
  83. data/spec/paperclip/processor_spec.rb +4 -4
  84. data/spec/paperclip/storage/fog_spec.rb +26 -0
  85. data/spec/paperclip/storage/s3_live_spec.rb +20 -14
  86. data/spec/paperclip/storage/s3_spec.rb +357 -190
  87. data/spec/paperclip/tempfile_spec.rb +35 -0
  88. data/spec/paperclip/thumbnail_spec.rb +38 -35
  89. data/spec/paperclip/url_generator_spec.rb +53 -42
  90. data/spec/paperclip/validators/attachment_size_validator_spec.rb +26 -20
  91. data/spec/paperclip/validators_spec.rb +5 -5
  92. data/spec/spec_helper.rb +6 -2
  93. data/spec/support/assertions.rb +12 -1
  94. data/spec/support/conditional_filter_helper.rb +5 -0
  95. data/spec/support/mock_attachment.rb +2 -0
  96. data/spec/support/mock_url_generator_builder.rb +2 -2
  97. data/spec/support/model_reconstruction.rb +10 -2
  98. data/spec/support/reporting.rb +11 -0
  99. metadata +69 -75
  100. data/cucumber/paperclip_steps.rb +0 -6
  101. data/gemfiles/4.1.gemfile +0 -19
  102. data/lib/paperclip/deprecations.rb +0 -42
  103. data/lib/paperclip/locales/de.yml +0 -18
  104. data/lib/paperclip/locales/es.yml +0 -18
  105. data/lib/paperclip/locales/ja.yml +0 -18
  106. data/lib/paperclip/locales/pt-BR.yml +0 -18
  107. data/lib/paperclip/locales/zh-CN.yml +0 -18
  108. data/lib/paperclip/locales/zh-HK.yml +0 -18
  109. data/lib/paperclip/locales/zh-TW.yml +0 -18
  110. data/spec/paperclip/deprecations_spec.rb +0 -65
  111. data/spec/support/deprecations.rb +0 -9
  112. data/spec/support/rails_helpers.rb +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd00b8c071275698b448905432cda8deb49da46d477e6bfbd6cc1cf9f074c55b
4
- data.tar.gz: 19f0befcb9bb798cec6ed607d5edaa954234ac1ebc73cdb293cb73ae3ff65f27
3
+ metadata.gz: c43af20e1568a3caee7670d68c39e71f86a0b0342fdaaf0acb7b6ae81204a731
4
+ data.tar.gz: 781342013a902bb2d1d21f805680418eb61f8976b20793f5eaedb86fdfdeb74a
5
5
  SHA512:
6
- metadata.gz: d49ce499a2eed8325929286eb30b0f8d5ca5106bde785241d985f800601d43145ae05d5eeae86c66bd292e2042551f8bed2fa7a4d4a3b6ae60fa4e92de45ef52
7
- data.tar.gz: aac6a59388d81e56fdd8b5758120520f8f0958df550970c840f7247f277c5873f728ded21bc83d50b1a652e14cef80a923339fbbcc429e2e08a8a571a6ed6b1a
6
+ metadata.gz: 02b011a01c730ef79202a87367d778fde59ae39584465fd63981905890e550bf86718a028bce46a6cb6826324b2f37f78a19e73402428b771922b70cc0180a5a
7
+ data.tar.gz: 17cc690b1c20421a3b35b395eda2076235e70962b6f4cc10855285c6e268ad4a7bdc92e6212a660bc01d9945e9ae60496c6e3bb34c9bfd37546195cc4cfa3d24
data/.codeclimate.yml ADDED
@@ -0,0 +1,17 @@
1
+ ---
2
+ engines:
3
+ duplication:
4
+ enabled: true
5
+ config:
6
+ languages:
7
+ - ruby
8
+ fixme:
9
+ enabled: true
10
+ rubocop:
11
+ enabled: true
12
+ ratings:
13
+ paths:
14
+ - "**.rb"
15
+ exclude_paths:
16
+ - features/
17
+ - spec/
data/.hound.yml CHANGED
@@ -20,7 +20,8 @@ AllCops:
20
20
  - "db/schema.rb"
21
21
  - 'vendor/**/*'
22
22
  - 'gemfiles/vendor/**/*'
23
- RunRailsCops: false
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/TrailingComma:
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/SingleSpaceBeforeFirstArg:
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/SpaceAfterControlKeyword:
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.2
5
- - jruby-19mode
6
- - rbx-2
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
- allow_failures:
19
- - rvm: jruby-19mode
20
- - rvm: rbx-2
21
-
22
- sudo: false
23
- cache: bundler
24
+ exclude:
25
+ - gemfile: gemfiles/5.0.gemfile
26
+ rvm: 2.1
data/Appraisals CHANGED
@@ -1,11 +1,7 @@
1
- appraise "3.2" do
2
- gem "rails", "~> 3.2.0"
3
- end
4
-
5
- appraise "4.1" do
6
- gem "rails", "~> 4.1.0"
7
- end
8
-
9
1
  appraise "4.2" do
10
2
  gem "rails", "~> 4.2.0"
11
3
  end
4
+
5
+ appraise "5.0" do
6
+ gem "rails", "~> 5.0.0"
7
+ end
data/CONTRIBUTING.md CHANGED
@@ -1,20 +1,31 @@
1
1
  Contributing
2
2
  ============
3
3
 
4
- We love pull requests. Here's a quick guide:
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
- 2. Run the tests. We only take pull requests with passing tests, and it's great
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
- 3. Add a test for your change. Only refactoring and documentation changes
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
- 4. Make the test pass.
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
- 5. Push to your fork and submit a pull request.
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 'mime-types', '~> 1.16'
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-2015 Jon Yurek and thoughtbot, inc.
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
- 4.3.7 (7/1/2016):
2
-
3
- * Add deprecation warnings
4
- * Improvement: Add `fog_options` configuration to send options to fog when storing files.
5
- * Improvement: the `URI adapter` now uses the content-disposition header to name the downloaded file.
6
-
7
- 4.3.6 (3/13/2016):
8
-
9
- * Bug Fix: When a spoofed media type is detected, megabytes of mime-types info are added to logs. See https://cwe.mitre.org/data/definitions/779.html.
10
-
11
- 4.3.5 (2/8/2016):
12
-
13
- * Bug Fix: Remove deprecation warnings for v5.0 for now. Will re-add once the version has landed.
14
-
15
- 4.3.4 (2/2/2016):
16
-
17
- * Bug Fix: Fix incompatible change from v4.3.3.
18
-
19
- 4.3.3 (1/29/2016):
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
- * Improvement: Add deprecation warnings in preparation for release of v5.0
83
+ 5.0.0.beta1 (2016-03-13):
22
84
 
23
- 4.3.2 (11/18/2015):
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
- * Performance: Reduce memory allocations (#2056)
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.1 (9/9/2015):
105
+ 4.3
28
106
 
29
- * Backport of bugfix to `remove_column`, so it works in Rails 3 and 4
30
- c740fb171fe2f88c60b999d2a1c2122f2b8f43e9
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 (6/18/2015):
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.