Bump carrierwave
This commit is contained in:
parent
0c4d9bb702
commit
dc3bef6a93
6 changed files with 18 additions and 10 deletions
2
Gemfile
2
Gemfile
|
|
@ -79,7 +79,7 @@ gem "activerecord-import", "1.1.0"
|
||||||
|
|
||||||
# File uploading
|
# File uploading
|
||||||
|
|
||||||
gem "carrierwave", "1.3.2"
|
gem "carrierwave", "2.2.2"
|
||||||
gem "fog-aws", "3.5.2"
|
gem "fog-aws", "3.5.2"
|
||||||
gem "mini_magick", "4.10.1"
|
gem "mini_magick", "4.10.1"
|
||||||
|
|
||||||
|
|
|
||||||
18
Gemfile.lock
18
Gemfile.lock
|
|
@ -89,10 +89,13 @@ GEM
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
regexp_parser (>= 1.5, < 3.0)
|
regexp_parser (>= 1.5, < 3.0)
|
||||||
xpath (~> 3.2)
|
xpath (~> 3.2)
|
||||||
carrierwave (1.3.2)
|
carrierwave (2.2.2)
|
||||||
activemodel (>= 4.0.0)
|
activemodel (>= 5.0.0)
|
||||||
activesupport (>= 4.0.0)
|
activesupport (>= 5.0.0)
|
||||||
mime-types (>= 1.16)
|
addressable (~> 2.6)
|
||||||
|
image_processing (~> 1.1)
|
||||||
|
marcel (~> 1.0.0)
|
||||||
|
mini_mime (>= 0.1.3)
|
||||||
ssrf_filter (~> 1.0)
|
ssrf_filter (~> 1.0)
|
||||||
celluloid (0.17.4)
|
celluloid (0.17.4)
|
||||||
celluloid-essentials
|
celluloid-essentials
|
||||||
|
|
@ -340,6 +343,9 @@ GEM
|
||||||
actionpack (>= 3.0.0)
|
actionpack (>= 3.0.0)
|
||||||
i18n-inflector (~> 2.6)
|
i18n-inflector (~> 2.6)
|
||||||
railties (>= 3.0.0)
|
railties (>= 3.0.0)
|
||||||
|
image_processing (1.12.1)
|
||||||
|
mini_magick (>= 4.9.5, < 5)
|
||||||
|
ruby-vips (>= 2.0.17, < 3)
|
||||||
ipaddress (0.8.3)
|
ipaddress (0.8.3)
|
||||||
jasmine (3.7.0)
|
jasmine (3.7.0)
|
||||||
jasmine-core (~> 3.7.0)
|
jasmine-core (~> 3.7.0)
|
||||||
|
|
@ -658,6 +664,8 @@ GEM
|
||||||
rubocop (>= 0.90.0, < 2.0)
|
rubocop (>= 0.90.0, < 2.0)
|
||||||
ruby-oembed (0.12.0)
|
ruby-oembed (0.12.0)
|
||||||
ruby-progressbar (1.11.0)
|
ruby-progressbar (1.11.0)
|
||||||
|
ruby-vips (2.1.2)
|
||||||
|
ffi (~> 1.12)
|
||||||
rubyzip (2.3.0)
|
rubyzip (2.3.0)
|
||||||
rugged (1.0.1)
|
rugged (1.0.1)
|
||||||
sass (3.4.25)
|
sass (3.4.25)
|
||||||
|
|
@ -799,7 +807,7 @@ DEPENDENCIES
|
||||||
bootstrap-sass (= 3.4.1)
|
bootstrap-sass (= 3.4.1)
|
||||||
bootstrap-switch-rails (= 3.3.3)
|
bootstrap-switch-rails (= 3.3.3)
|
||||||
capybara (= 3.35.3)
|
capybara (= 3.35.3)
|
||||||
carrierwave (= 1.3.2)
|
carrierwave (= 2.2.2)
|
||||||
chrome_remote (= 0.3.0)
|
chrome_remote (= 0.3.0)
|
||||||
compass-rails (= 3.1.0)
|
compass-rails (= 3.1.0)
|
||||||
configurate (= 0.5.0)
|
configurate (= 0.5.0)
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ class ExportedUser < SecureUploader
|
||||||
"uploads/users"
|
"uploads/users"
|
||||||
end
|
end
|
||||||
|
|
||||||
def extension_whitelist
|
def extension_allowlist
|
||||||
%w[gz]
|
%w[gz]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ class ProcessedImage < CarrierWave::Uploader::Base
|
||||||
"uploads/images"
|
"uploads/images"
|
||||||
end
|
end
|
||||||
|
|
||||||
def extension_whitelist
|
def extension_allowlist
|
||||||
%w[jpg jpeg png gif]
|
%w[jpg jpeg png gif]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class UnprocessedImage < CarrierWave::Uploader::Base
|
||||||
"uploads/images"
|
"uploads/images"
|
||||||
end
|
end
|
||||||
|
|
||||||
def extension_whitelist
|
def extension_allowlist
|
||||||
%w[jpg jpeg png gif]
|
%w[jpg jpeg png gif]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,9 @@
|
||||||
ENV['SSL_CERT_FILE'] = AppConfig.environment.certificate_authorities.get
|
ENV['SSL_CERT_FILE'] = AppConfig.environment.certificate_authorities.get
|
||||||
CarrierWave.configure do |config|
|
CarrierWave.configure do |config|
|
||||||
if !Rails.env.test? && AppConfig.environment.s3.enable?
|
if !Rails.env.test? && AppConfig.environment.s3.enable?
|
||||||
config.fog_provider = "fog/aws"
|
|
||||||
require "carrierwave/storage/fog"
|
require "carrierwave/storage/fog"
|
||||||
config.storage = :fog
|
config.storage = :fog
|
||||||
|
config.cache_storage = :file
|
||||||
config.cache_dir = Rails.root.join('tmp', 'uploads').to_s
|
config.cache_dir = Rails.root.join('tmp', 'uploads').to_s
|
||||||
config.fog_credentials = {
|
config.fog_credentials = {
|
||||||
provider: 'AWS',
|
provider: 'AWS',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue