lib/carrierwave-aliyun.rb in carrierwave-aliyun-0.9.0 vs lib/carrierwave-aliyun.rb in carrierwave-aliyun-1.0.0

- old
+ new

@@ -1,13 +1,19 @@ -require 'carrierwave/storage/aliyun' -require 'carrierwave/storage/aliyun_file' -require 'carrierwave/aliyun/bucket' -require 'carrierwave/aliyun/version' -require 'carrierwave/aliyun/configuration' +# frozen_string_literal: true +require "carrierwave" +require "carrierwave/storage/aliyun" +require "carrierwave/storage/aliyun_file" +require "carrierwave/aliyun/bucket" +require "carrierwave/aliyun/version" +require "carrierwave/aliyun/configuration" +require "aliyun/oss" + CarrierWave::Uploader::Base.send(:include, CarrierWave::Aliyun::Configuration) -if CarrierWave::VERSION <= '0.11.0' - require 'carrierwave/processing/mime_types' +if CarrierWave::VERSION <= "0.11.0" + require "carrierwave/processing/mime_types" CarrierWave::Uploader::Base.send(:include, CarrierWave::MimeTypes) CarrierWave::Uploader::Base.send(:process, :set_content_type) end + +Aliyun::Common::Logging.set_log_file("/dev/null")