paperclip 5.0.0.beta1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of paperclip might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +10 -4
- data/NEWS +22 -1
- data/README.md +49 -45
- data/UPGRADING +3 -0
- data/features/migration.feature +0 -24
- data/features/step_definitions/rails_steps.rb +0 -6
- data/features/step_definitions/s3_steps.rb +2 -6
- data/gemfiles/5.0.awsv2.0.gemfile +1 -1
- data/gemfiles/5.0.awsv2.1.gemfile +1 -1
- data/gemfiles/5.0.awsv2.gemfile +1 -6
- data/lib/paperclip/attachment.rb +3 -2
- data/lib/paperclip/content_type_detector.rb +3 -2
- data/lib/paperclip/errors.rb +3 -1
- data/lib/paperclip/helpers.rb +14 -10
- data/lib/paperclip/io_adapters/http_url_proxy_adapter.rb +1 -1
- data/lib/paperclip/io_adapters/uri_adapter.rb +3 -1
- data/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb +4 -4
- data/lib/paperclip/schema.rb +1 -6
- data/lib/paperclip/storage/fog.rb +9 -6
- data/lib/paperclip/storage/s3.rb +16 -38
- data/lib/paperclip/validators/attachment_size_validator.rb +1 -7
- data/lib/paperclip/version.rb +3 -1
- data/lib/paperclip.rb +2 -1
- data/lib/tasks/paperclip.rake +1 -1
- data/paperclip.gemspec +1 -2
- data/spec/paperclip/attachment_processing_spec.rb +2 -4
- data/spec/paperclip/attachment_spec.rb +1 -4
- data/spec/paperclip/io_adapters/http_url_proxy_adapter_spec.rb +12 -0
- data/spec/paperclip/io_adapters/uri_adapter_spec.rb +27 -0
- data/spec/paperclip/matchers/validate_attachment_content_type_matcher_spec.rb +10 -0
- data/spec/paperclip/media_type_spoof_detector_spec.rb +12 -3
- data/spec/paperclip/paperclip_spec.rb +3 -1
- data/spec/paperclip/storage/fog_spec.rb +10 -0
- data/spec/paperclip/storage/s3_spec.rb +92 -215
- data/spec/paperclip/validators/attachment_size_validator_spec.rb +26 -20
- data/spec/paperclip/validators_spec.rb +1 -0
- metadata +10 -8
- data/cucumber/paperclip_steps.rb +0 -6
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Yurek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -156,7 +156,7 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 2.0.
|
159
|
+
version: 2.0.34
|
160
160
|
- - "<"
|
161
161
|
- !ruby/object:Gem::Version
|
162
162
|
version: '3.0'
|
@@ -166,7 +166,7 @@ dependencies:
|
|
166
166
|
requirements:
|
167
167
|
- - ">="
|
168
168
|
- !ruby/object:Gem::Version
|
169
|
-
version: 2.0.
|
169
|
+
version: 2.0.34
|
170
170
|
- - "<"
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: '3.0'
|
@@ -400,7 +400,6 @@ files:
|
|
400
400
|
- RELEASING.md
|
401
401
|
- Rakefile
|
402
402
|
- UPGRADING
|
403
|
-
- cucumber/paperclip_steps.rb
|
404
403
|
- features/basic_integration.feature
|
405
404
|
- features/migration.feature
|
406
405
|
- features/rake_tasks.feature
|
@@ -594,6 +593,9 @@ post_install_message: |
|
|
594
593
|
note that the format of the permissions changed from using an underscore to
|
595
594
|
using a hyphen. For example, `:public_read` needs to be changed to
|
596
595
|
`public-read`.
|
596
|
+
|
597
|
+
For a walkthrough of upgrading from 4 to 5 and aws-sdk >= 2.0 you can watch
|
598
|
+
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
|
597
599
|
rdoc_options: []
|
598
600
|
require_paths:
|
599
601
|
- lib
|
@@ -604,13 +606,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
604
606
|
version: 2.1.0
|
605
607
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
606
608
|
requirements:
|
607
|
-
- - "
|
609
|
+
- - ">="
|
608
610
|
- !ruby/object:Gem::Version
|
609
|
-
version:
|
611
|
+
version: '0'
|
610
612
|
requirements:
|
611
613
|
- ImageMagick
|
612
614
|
rubyforge_project:
|
613
|
-
rubygems_version: 2.
|
615
|
+
rubygems_version: 2.6.2
|
614
616
|
signing_key:
|
615
617
|
specification_version: 4
|
616
618
|
summary: File attachments as attributes for ActiveRecord
|
data/cucumber/paperclip_steps.rb
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
When /^I attach an? "([^\"]*)" "([^\"]*)" file to an? "([^\"]*)" on S3$/ do |attachment, extension, model|
|
2
|
-
stub_paperclip_s3(model, attachment, extension)
|
3
|
-
attach_file attachment,
|
4
|
-
"features/support/paperclip/#{model.gsub(" ", "_").underscore}/#{attachment}.#{extension}"
|
5
|
-
end
|
6
|
-
|