nowa / carrierwave-upyun

UpYun storage for CarrierWave
161 stars 27 forks source link

Need to implement #cache! if you want to use CarrierWave::Storage::UpYun as a cache storage #33

Closed windy closed 5 years ago

windy commented 5 years ago

when I upgrade carrierwave to 2.0.0, using carrierwave-upyun 0.2.2

call this exception:

image

      def cache!(new_file)
        raise NotImplementedError.new("Need to implement #cache! if you want to use #{self.class.name} as a cache storage.")
      end

      def retrieve_from_cache!(identifier)
        raise NotImplementedError.new("Need to implement #retrieve_from_cache! if you want to use #{self.class.name} as a cache storage.")
      end

      def delete_dir!(path)
        raise NotImplementedError.new("Need to implement #delete_dir! if you want to use #{self.class.name} as a cache storage.")
      end

      def clean_cache!(seconds)
        raise NotImplementedError.new("Need to implement #clean_cache! if you want to use #{self.class.name} as a cache storage.")
      end

At new carrierwave version, these interfaces need be implmented.

huacnlee commented 5 years ago

Use 1.0.0

windy commented 5 years ago

Nice, thx!