CarrierWave v1.0.0.beta Release Notes

Release Date: 2016-09-08 // over 7 years ago
  • โž• Added

    • ๐Ÿš… Rails 5 support (@mshibuya)
    • โž• Add #width and #height methods to the RMagick processor (@mehlah #1805)
    • โž• Add a test matcher for the format (@yanivpr #1758)
    • ๐Ÿ‘Œ Support of MiniMagick's Combine options (@bernabas #1754)
    • Validate with the actual content-type of files (@eavgerinos)
    • ๐Ÿ‘Œ Support for multiple file uploads with mount_uploaders method (@jnicklas and @lisarutan #1481)
    • โž• Add a cache_only configuration option, useful for testing (@jeffkreeftmeijer #1456)
    • โž• Add #width and #height methods to MiniMagick processor (@ShivaVS #1405)
    • ๐Ÿ‘Œ Support for jRuby (@lephyrius #1377)
    • ๐Ÿ”ง Make cache storage configurable (@mshibuya #1312)
    • Errors on file size (@gautampunhani #1026)

    ๐Ÿ”„ Changed

    • Blank uploaders are now memoized on the model instance (@DarthSim #1860)
    • #content_type_whitelist and extension_whitelist now takes either a string, a regexp, or an array of values (same thing for blacklists) (@mehlah #1825)
    • [BREAKING CHANGE] Rename extension_white_list ~> extension_whitelist (@mehlah #1819)
    • [BREAKING CHANGE] Rename extension_black_list ~> extension_blacklist (@mehlah #1819)
    • [BREAKING CHANGE] Rename i18n keys extension_black_list_error ~> extension_blacklist_error and extension_white_list_error ~> extension_whitelist_error (@mehlah)
    • Accept an array of strings or regexps to white/blacklist content types (@mehlah #1816)
    • โž• Add counter to cache_id (@thomasfedb #1797)
    • 0๏ธโƒฃ [BREAKING CHANGE] Allow non-ASCII filename by default (@shuhei #1772)
    • [BREAKING CHANGE] to_json behavior changed when serializing an uploader (@jnicklas and @lisarutan #1481)
    • ๐Ÿ‘ Better error when the configured storage is unknown (@st0012 #1779)
    • ๐Ÿ‘ Allow to pass additionnal options to Rackspace authenticated_url (@duhast #1722)
    • โฌ‡๏ธ Reduced memory footprint (@schneems #1652, @simonprev #1706)
    • ๐Ÿ‘Œ Improve Fog Loading (@plribeiro3000 #1620, @eavgerinos)
    • All locales from config.i18n.available_locales are added to load_path (@printercu #1521)
    • ๐Ÿ‘ป Do not display RMagick exception in I18n message (manuelpradal #1361)
    • 0๏ธโƒฃ [BREAKING CHANGE] #default_url now accepts the same args passed to #url (@shekibobo #1347)

    โœ‚ Removed

    • All locale files other than en are now in carrierwave-i18n (@mehlah #1848)
    • โœ‚ Remove CarrierWave::MagicMimeTypes processor module (@mehlah #1816)
    • โœ‚ Remove dependency on ruby-filemagic in white/blacklist content types (@mehlah #1816)
    • โœ‚ Remove CarrierWave::MimeTypes processor module (@mehlah #1813)
    • โœ‚ Remove support for Rails 3.2 and Ruby 1.8/1.9 (@bensie 2517d668)

    ๐Ÿ›  Fixed

    • Don't raise an error when content_type is called on a deleted file (@jvenezia #1915)
    • #remove_previous fails to detect equality when mount_on option is set (@mshibuya 44cfb7c0)
    • ๐Ÿ›  Fix Mounter.blank? method (@Bonias #1746)
    • ๐Ÿšš Reset remove_#{column} after invoking remove_#{column} (@eavgerinos #1668)
    • ๐Ÿ”„ Change Google's url to the public_url (@m7moud #1683)
    • Do not write to ActiveModel::Dirty changes when assigning something blank to a mounter that was originally blank (@eavgerinos #1635)
    • ๐ŸŒ Various grammar and typos fixes to error messages translations
    • Don't error when size is called on a deleted file (@danielevans #1561)
    • Flush mounters on #dup of active record model (@danielevans #1544)
    • Fog::File.read returns its contents after upload instead of "closed stream" error (@stormsilver #1517)
    • Don't read file twice when calling sanitized_file or cache! (@felixbuenemann #1476)
    • ๐Ÿ”„ Change image extension when converting formats (@nashby #1446)
    • ๐Ÿ›  Fix file delete being called twice on remove (@adamcrown #1441)
    • ๐Ÿ‘ RSpec 3 support (@randoum #1421, @akiomik #1370)
    • 0๏ธโƒฃ MiniMagick convert to a format all the pages by default and accept an optional page number parameter to convert specific pages (@harikrishnan83 #1408)
    • ๐Ÿ›  Fix cache workfile collision between versions (@jvdp #1399)
    • Reset mounter cache on record reload (@semenyukdmitriy #1383)
    • Retrieve only active versions of files (@filipegiusti #1351)
    • Fix default gravity in MiniMagick resize_and_pad (@abevoelker #1358)
    • Skip loading RMagick if already loaded (@mshibuya #1346)
    • ๐Ÿšš Make the #remove_#{column} accessor set the mounted column as changed (@nikz #1326)
    • Tempfile and @content_type assignment (@bensie #1487)