All notable changes to this project will be documented in this file.
The format is based now on Keep a Changelog and this project adheres to Semantic Versioning.
- Add mongoid support for
mount_uploadcare_file
andmount_uploadcare_file_group
methods.
- Drop support for Rails 6.1x in line with the currently supported Rails versions: https://rubyonrails.org/maintenance
- For
Uploadcare::ConversionApi
addedget_document_conversion_formats_info
method to get the possible document conversion formats.
- Added API support for
AWS Rekognition Moderation
Add-On.
- Fixed invalid group id error when >= 10 files are uploaded when using
mount_uploadcare_file_group
.
- Documentation issue with
uploadcare_include_tag
- Drop support for Ruby < 3.x
- Drop support for Rails < 6.1x
- Skipped network requests when the file attribute was unchanged (fixed #127)
- Improved readme to look better at ruby-doc
- Updated links in the gemspec
- Fixed an issue with the configuration
- Updated the gem documentation
- Updated gem description
- Respect data-multiple in helper options (#119)
Guarantee support of maintainable versions of Ruby and Rails.
Drop support of unmaintainable Ruby 2.4, 2.5, 2.6 and Rails before 6.0.
Add support of Ruby 3.1 and 3.2 and Rails 7.0.
This version supports latest Uploadcare REST API — v0.7, which introduces new file management features:
- For
Uploadcare::FileApi#get_file
- File information doesn't return
image_info
andvideo_info
fields anymore - Removed
rekognition_info
in favor ofappdata
- Parameter
add_fields
was renamed toinclude
- File information doesn't return
- For
Uploadcare::FileApi#get_files
- Removed the option of sorting the file list by file size
- For
Uploadcare::GroupApi#store_group
- Changed response format
- For
Uploadcare::FileApi
- Removed method
copy_file
in favor oflocal_copy_file
andremote_copy_file
methods
- Removed method
- For
Uploadcare::FileApi#get_file
- Field
content_info
that includes mime-type, image (dimensions, format, etc), video information (duration, format, bitrate, etc), audio information, etc - Field
metadata
that includes arbitrary metadata associated with a file - Field
appdata
that includes dictionary of application names and data associated with these applications
- Field
- Add Uploadcare API interface:
Uploadcare::FileMetadataApi
Uploadcare::AddonsApi
- Added an option to delete a Group
- For
Uploadcare::FileApi
addlocal_copy_file
andremote_copy_file
methods
Fixed Rails 4 tests by enforcing https.
- Option
signing_secret
in theUploadcare::WebhookApi
.
- Add Uploadcare API interface:
- Uploadcare::FileApi
- Uploadcare::UploadApi
- Uploadcare::GroupApi
- Uploadcare::ConversionApi
- Uploadcare::ProjectApi
- Uploadcare::WebhookApi
- Add uploadcare_widget_tag helper for views
- Add methods File#store, File#delete, File#load
- Add methods Group#transform_file_urls, Group#store, Group#load
- Change File Uploader widget view helpers
- Rename has_uploadcare_file -> mount_uploadcare_file
- Rename has_uploadcare_group -> mount_uploadcare_file_group
- Change generated config path from config/uploadcare.yml to config/initializers/uploadcare.rb and add more options
- Rename the class
Uploadcare::Rails::Settings
toUploadcare::Rails::Configuration
- Rename the class
Uploadcare::Rails::Operations
toUploadcare::Rails::Transformations::ImageTransformations
. Configuration object is available asUploadcare::Rails.configuration
now - Change methods File#url -> File#transform_url
- Change methods Group#urls -> Group#file_urls
- Change methods Group#load_data -> Group#load
- Remove uploadcare_uploader_tag helper
- Remove uploadcare_multiple_uploader_field helper
- Remove uploadcare_single_uploader_field helper
- Remove uploadcare_uploader_options (now options are included in uploadcare_widget_tag)
- Remove FormBuilder support
- Remove Formtastic support
- Remove SimpleForm support
- Remove caching files and groups on delete
- Remove callback
ruby after_save after_save "store_#{ attribute }".to_sym
. Now managed by thedo_not_store
option inconfig/initializers/uploadcare.rb
- Remove methods File#prepared_operations, File#to_builder, File#to_json, File#as_json, File#marshal_dump, File#image
- Remove methods Group#cache_data, Group#to_json, Group#as_json, Group#map_files, Group#load_data!, Group#marshal_dump
- Allow to use multiple files or groups
- Require
uploadcare/rails/version
inlib/uploadcare-rails.rb
- Gem now reports us your
uploadcare-rails
andrails
versions using the User-Agent header (overridable via config) uploadcare-ruby
gem version bumped to 1.2.x
- Allow gem in rails 5.2
- Update default widget version to 3.x
- Tests against Ruby 2.0 and 2.1 that had reached their EOL
- Uploadcare config generator
- Issues preventing the gem to be used with rails 5.1
- Removed widget from the asset pipeline. It is expected to use helper or to append to the asset pipeline manually.
- Operations for image_tag helpers.
- Bug with creating object with empty file or file_group.
- Workaround to remove unnecessary API-calls for groups of images.
- Tests have been refactored, VCR appended to development environment.
- Tests performance improvements.