Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit c0ea0d5

Browse files
beteshtute
authored andcommitted
updated NEWS and UPGRADING with details of #1903
1 parent 32ce531 commit c0ea0d5

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

NEWS

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
4.3.0:
1+
master:
2+
3+
* Improvement: Paperclip now supports aws-sdk v2 (@betesh, @davetchen, https://github.com/thoughtbot/paperclip/pull/1903)
4+
If your Gemfile contains aws-sdk (>= 2.0.0) and aws-sdk-v1, paperclip will use aws-sdk v2.
5+
With aws-sdk v2, S3 storage requires you to set the s3_region. s3_region may be nested in s3_credentials, and (if not nested in s3_credentials) it may be a Proc.
6+
7+
4.3.0 (6/18/2015):
28

39
* Improvement: Update aws-sdk and cucumber gem versions.
410
* Improvement: Add `length` alias for `size` method in AbstractAdapter.
@@ -11,7 +17,7 @@
1117
* Ruby Versioning: Drop support for 1.9.3 (EOL'ed)
1218
* Rails Versioning: Drop support for 4.0.0 (EOL'ed)
1319

14-
4.2.4:
20+
4.2.4 (6/5/2015):
1521

1622
* Rollback backwards incompatible change, allowing paperclip to run on
1723
Ruby >= 1.9.2.

UPGRADING

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
##################################################
2-
# NOTE FOR UPGRADING FROM PRE-3.0 VERSION #
2+
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER #
33
##################################################
44

5-
Paperclip 3.0 introduces a non-backward compatible change in your attachment
6-
path. This will help to prevent attachment name clashes when you have
7-
multiple attachments with the same name. If you didn't alter your
8-
attachment's path and are using Paperclip's default, you'll have to add
9-
`:path` and `:url` to your `has_attached_file` definition. For example:
5+
Paperclip is now compatible with aws-sdk >= 2.0.0.
106

11-
has_attached_file :avatar,
12-
:path => ":rails_root/public/system/:attachment/:id/:style/:filename",
13-
:url => "/system/:attachment/:id/:style/:filename"
7+
If you are using S3 storage, aws-sdk >= 2.0.0 requires you to set the s3_region.
148

9+
If you want to continue using an earlier version of aws-sdk, replace
10+
aws-sdk with aws-sdk-v1 in your Gemfile.
11+
12+
If both are in your Gemfile, paperclip will use aws-sdk v2.

0 commit comments

Comments
 (0)